Shortened ssl test keys to 1024 to make tests faster

Fixed memory error in SSL code
This commit is contained in:
Olof hagsand 2021-04-05 12:24:05 +02:00
parent 6a64cf5ff1
commit d874a696f7
2 changed files with 77 additions and 53 deletions

View file

@ -19,7 +19,7 @@ default_crl_days = 9999
default_md = md5
[ req ]
default_bits = 2048
default_bits = 1024
days = 1
distinguished_name = req_distinguished_name
attributes = req_attributes
@ -58,7 +58,7 @@ subjectAltName = DNS:clicon.org
EOF
# Generate server key
openssl genrsa -out $srvkey 2048
openssl genrsa -out $srvkey 1024
# Generate CSR (signing request)
openssl req -new -config $dir/srv.cnf -key $srvkey -out $certdir/srv_csr.pem