Commit 2f3b13fb authored by Lukas Schauer's avatar Lukas Schauer

travis: use fullchain to verify ssl certificate

parent 1eb6f6d2
......@@ -26,6 +26,7 @@ script:
- ./letsencrypt.sh --cron
- ./letsencrypt.sh
- openssl x509 -in "certs/${TMP_URL}/cert.pem" -noout -text
- openssl verify -verbose -CAfile "certs/lets-encrypt-staging.pem" -purpose sslserver "certs/${TMP_URL}/cert.pem"
- errout="$(openssl verify -verbose -CAfile "certs/${TMP_URL}/fullchain.pem" -purpose sslserver "certs/${TMP_URL}/fullchain.pem" | grep -v ': OK$')"
- if [[ ! -z "${errout}" ]]; then printf -- "${errout}"; exit 1; fi
- rm private_key.pem
- ./letsencrypt.sh --revoke "certs/${TMP_URL}/cert.pem" --privkey "certs/${TMP_URL}/privkey.pem"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment