Commit 97d8f71e authored by Lukas Schauer's avatar Lukas Schauer

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

parent 373b739e
...@@ -3,4 +3,5 @@ domains.txt ...@@ -3,4 +3,5 @@ domains.txt
config.sh config.sh
certs/* certs/*
!certs/lets-encrypt-x1-cross-signed.pem !certs/lets-encrypt-x1-cross-signed.pem
!certs/lets-encrypt-staging.pem
.acme-challenges/* .acme-challenges/*
...@@ -15,9 +15,11 @@ before_script: ...@@ -15,9 +15,11 @@ before_script:
- if [[ -z "${TMP_URL}" ]]; then exit 1; fi - if [[ -z "${TMP_URL}" ]]; then exit 1; fi
- echo 'CA="https://acme-staging.api.letsencrypt.org/directory"' > config.sh - echo 'CA="https://acme-staging.api.letsencrypt.org/directory"' > config.sh
- echo 'WELLKNOWN=".acme-challenges/.well-known/acme-challenge"' >> 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 - echo "${TMP_URL}" > domains.txt
script: script:
- ./letsencrypt.sh - ./letsencrypt.sh
- openssl x509 -in "certs/${TMP_URL}/cert.pem" -noout -text - 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" - ./letsencrypt.sh revoke "certs/${TMP_URL}/cert.pem"
-----BEGIN CERTIFICATE-----
MIIDETCCAfmgAwIBAgIJAJzxkS6o1QkIMA0GCSqGSIb3DQEBCwUAMB8xHTAbBgNV
BAMMFGhhcHB5IGhhY2tlciBmYWtlIENBMB4XDTE1MDQwNzIzNTAzOFoXDTI1MDQw
NDIzNTAzOFowHzEdMBsGA1UEAwwUaGFwcHkgaGFja2VyIGZha2UgQ0EwggEiMA0G
CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDCCkd5mgXFErJ3F2M0E9dw+Ta/md5i
8TDId01HberAApqmydG7UZYF3zLTSzNjlNSOmtybvrSGUnZ9r9tSQcL8VM6WUOM8
tnIpiIjEA2QkBycMwvRmZ/B2ltPdYs/R9BqNwO1g18GDZrHSzUYtNKNeFI6Glamj
7GK2Vr0SmiEamlNIR5ktAFsEErzf/d4jCF7sosMsJpMCm1p58QkP4LHLShVLXDa8
BMfVoI+ipYcA08iNUFkgW8VWDclIDxcysa0psDDtMjX3+4aPkE/cefmP+1xOfUuD
HOGV8XFynsP4EpTfVOZr0/g9gYQ7ZArqXX7GTQkFqduwPm/w5qxSPTarAgMBAAGj
UDBOMB0GA1UdDgQWBBT7eE8S+WAVgyyfF380GbMuNupBiTAfBgNVHSMEGDAWgBT7
eE8S+WAVgyyfF380GbMuNupBiTAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUA
A4IBAQAd9Da+Zv+TjMv7NTAmliqnWHY6d3UxEZN3hFEJ58IQVHbBZVZdW7zhRktB
vR05Kweac0HJeK91TKmzvXl21IXLvh0gcNLU/uweD3no/snfdB4OoFompljThmgl
zBqiqWoKBJQrLCA8w5UB+ReomRYd/EYXF/6TAfzm6hr//Xt5mPiUHPdvYt75lMAo
vRxLSbF8TSQ6b7BYxISWjPgFASNNqJNHEItWsmQMtAjjwzb9cs01XH9pChVAWn9L
oeMKa+SlHSYrWG93+EcrIH/dGU76uNOiaDzBSKvaehG53h25MHuO1anNICJvZovW
rFo4Uv1EnkKJm3vJFe50eJGhEKlx
-----END CERTIFICATE-----
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