diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-06-22 18:09:42 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-06-22 23:23:09 +0100 |
commit | b58614d7f5f98571b2c0bb2fb3df48f4b48a7e92 (patch) | |
tree | ea200a5e9c1b3eeb867c4504ec0c3ed95ba58b0f /test/certs | |
parent | 768a3eca39a78b46cfba66b731956a2d2edf4683 (diff) |
Fix generation of expired CA certificate.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'test/certs')
-rwxr-xr-x | test/certs/mkcert.sh | 4 | ||||
-rwxr-xr-x | test/certs/setup.sh | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/test/certs/mkcert.sh b/test/certs/mkcert.sh index 39e3a1e28c..ced08ea091 100755 --- a/test/certs/mkcert.sh +++ b/test/certs/mkcert.sh @@ -8,7 +8,9 @@ # 100 years should be enough for now # -DAYS=36525 +if [ -z "$DAYS" ]; then + DAYS=36525 +fi if [ -z "$OPENSSL_SIGALG" ]; then OPENSSL_SIGALG=sha256 diff --git a/test/certs/setup.sh b/test/certs/setup.sh index 4eaf511ef4..b8c10863d3 100755 --- a/test/certs/setup.sh +++ b/test/certs/setup.sh @@ -86,7 +86,7 @@ openssl x509 -in sroot-cert.pem -trustout \ ./mkcert.sh genca "CA" ca-key2 ca-cert2 root-key root-cert ./mkcert.sh genca "CA2" ca-key ca-name2 root-key root-cert ./mkcert.sh genca "CA" ca-key ca-root2 root-key2 root-cert2 -./mkcert.sh genca "CA" ca-key ca-expired root-key root-cert -days -1 +DAYS=-1 ./mkcert.sh genca "CA" ca-key ca-expired root-key root-cert # openssl x509 -in ca-cert.pem -trustout \ -addtrust serverAuth -out ca+serverAuth.pem |