Skip to content
Snippets Groups Projects
Commit f27c7902 authored by nimrod's avatar nimrod
Browse files

Don't set default_days since certs are still set for 30 days, use the flag explicitly.

parent d2133595
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,6 @@ certs = \$dir/certs ...@@ -12,7 +12,6 @@ certs = \$dir/certs
certificate = \$dir/CA.crt certificate = \$dir/CA.crt
private_key = \$dir/CA.key private_key = \$dir/CA.key
default_md = sha256 default_md = sha256
default_days = 365
email_in_dn = no email_in_dn = no
RANDFILE = /dev/urandom RANDFILE = /dev/urandom
database = /dev/null database = /dev/null
...@@ -75,6 +74,7 @@ init () { ...@@ -75,6 +74,7 @@ init () {
-new \ -new \
-key CA.key \ -key CA.key \
-extensions v3_ca \ -extensions v3_ca \
-days 3650 \
-out CA.crt -out CA.crt
fi fi
if [ -e CA.p12 ] if [ -e CA.p12 ]
...@@ -123,6 +123,7 @@ sign_key () { ...@@ -123,6 +123,7 @@ sign_key () {
-set_serial $seed \ -set_serial $seed \
-extensions v3_req \ -extensions v3_req \
-extfile openssl.cnf \ -extfile openssl.cnf \
-days 3650 \
-CAkey CA.key -CAkey CA.key
rm "$csr" rm "$csr"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment