Fix valid till date

$ openssl x509 -enddate -noout -in full_key0.pem
notAfter=Sep  6 16:04:17 2319 GMT
This commit is contained in:
Mikhail Novosyolov 2019-11-17 19:05:37 +03:00
parent 8cbe5dd96d
commit ef09314737

2
key.sh
View file

@ -7,7 +7,6 @@ cat << EOF > "x509_${NUM}.genkey"
prompt = no prompt = no
default_bits = 4096 default_bits = 4096
default_md = sha512 default_md = sha512
days = 109500
default_keyfile = full_key${NUM}.pem default_keyfile = full_key${NUM}.pem
distinguished_name = req_distinguished_name distinguished_name = req_distinguished_name
[ req_distinguished_name ] [ req_distinguished_name ]
@ -17,6 +16,7 @@ emailAddress = ${EMAIL}
EOF EOF
openssl req -new -nodes -utf8 -batch -x509 \ openssl req -new -nodes -utf8 -batch -x509 \
-days 109500 \
-config "x509_${NUM}.genkey" \ -config "x509_${NUM}.genkey" \
-outform PEM \ -outform PEM \
-out "full_key${NUM}.pem" \ -out "full_key${NUM}.pem" \