Generate jwt secret

This commit is contained in:
David Boreham 2023-07-23 22:54:55 -06:00
parent b14488d040
commit af6d755036
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
if [[ -n "$CERC_SCRIPT_DEBUG" ]]; then
set -x
fi

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
if [[ -n "$CERC_SCRIPT_DEBUG" ]]; then
set -x
fi

View File

@ -25,7 +25,7 @@ def setup(ctx):
def create(ctx):
# Generate the JWT secret and save to its config file
secret = token_hex(16)
secret = token_hex(32)
jwt_file_path = ctx.deployment_dir.joinpath("data", "mainnet_eth_config_data", "jwtsecret")
with open(jwt_file_path, 'w+') as jwt_file:
jwt_file.write(secret)