added staging-ca certificate and added verification test to travis config

This commit is contained in:
Lukas Schauer
2015-12-08 18:37:27 +01:00
parent 373b739e2d
commit 97d8f71e88
3 changed files with 22 additions and 0 deletions

View File

@@ -15,9 +15,11 @@ before_script:
- if [[ -z "${TMP_URL}" ]]; then exit 1; fi
- echo 'CA="https://acme-staging.api.letsencrypt.org/directory"' > config.sh
- echo 'WELLKNOWN=".acme-challenges/.well-known/acme-challenge"' >> config.sh
- echo 'ROOTCERT="lets-encrypt-staging.pem"' >> config.sh
- echo "${TMP_URL}" > domains.txt
script:
- ./letsencrypt.sh
- openssl x509 -in "certs/${TMP_URL}/cert.pem" -noout -text
- openssl verify -verbose -CAfile "certs/${ROOTCERT}" -purpose sslserver "certs/${TMP_URL}/cert.pem"
- ./letsencrypt.sh revoke "certs/${TMP_URL}/cert.pem"