| 182,7 → 182,7 |
| # CA key |
| rm -f $CAKEY |
| echo "*********CAKEY*********" > $DIR_TMP/openssl-log |
| openssl genrsa -out $CAKEY 1024 2>> $DIR_TMP/openssl-log |
| openssl genrsa -out $CAKEY 2048 2>> $DIR_TMP/openssl-log |
| |
| # CA certificate |
| rm -f $CACERT |
| 193,13 → 193,13 |
| $ORGANIZATION |
| Certification Authority for $hostname |
| ALCASAR-local-CA |
| $CAMAIL" | |
| openssl req -config $DIR_TMP/ssl.conf -new -x509 -days $CACERT_LIFETIME -key $CAKEY -out $CACERT 2>> $DIR_TMP/openssl-log |
| $CAMAIL" | |
| openssl req -config $DIR_TMP/ssl.conf -new -x509 -sha256 -days $CACERT_LIFETIME -key $CAKEY -out $CACERT 2>> $DIR_TMP/openssl-log |
| |
| # Server key |
| rm -f $SRVKEY |
| echo "*********SRVKEY*********" >> $DIR_TMP/openssl-log |
| openssl genrsa -out $SRVKEY 1024 2>> $DIR_TMP/openssl-log |
| openssl genrsa -out $SRVKEY 2048 2>> $DIR_TMP/openssl-log |
| |
| # Server certificate "request" |
| echo "*********SRVRQST*********" >> $DIR_TMP/openssl-log |