Skip to content

Commit 508131a

Browse files
authored
Generate a larger random password when creating self-signed certificates to avoid: (#80)
Generate Guardians CA key: 11:30:33 Generating RSA private key, 4096 bit long modulus (2 primes) 11:30:33 .......................++++ 11:30:33 ...............................................++++ 11:30:34 e is 65537 (0x010001) 11:30:34 139763271575360:error:28078065:UI routines:UI_set_result_ex:result too small:crypto/ui/ui_lib.c:905:You must type in 4 to 1023 characters 11:30:34 139763271575360:error:28078065:UI routines:UI_set_result_ex:result too small:crypto/ui/ui_lib.c:905:You must type in 4 to 1023 characters 11:30:34 139763271575360:error:0906906F:PEM routines:PEM_ASN1_write_bio:read key:crypto/pem/pem_lib.c:357: 11:30:34
1 parent 15dd31f commit 508131a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/keys.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fi
2929
mkdir -p "${CERTS_DIR}"
3030

3131
# Generate random passwords for each run
32-
CAPASS="${RANDOM}"
32+
CAPASS=$(uuidgen | sha256sum | cut -f 1 -d " ")
3333

3434
echo Generate Guardians CA key:
3535
echo "${CAPASS}" | openssl genrsa -passout stdin -aes256 \

0 commit comments

Comments
 (0)