| @ -0,0 +1,11 @@ | |||
| { | |||
| "pebble": { | |||
| "listenAddress": "0.0.0.0:14000", | |||
| "managementListenAddress": "0.0.0.0:15000", | |||
| "httpPort": 80, | |||
| "tlsPort": 443, | |||
| "ocspResponderURL": "", | |||
| "externalAccountBindingRequired": false | |||
| } | |||
| } | |||
| @ -0,0 +1,28 @@ | |||
| #! /bin/bash | |||
| set -e | |||
| # Test setup | |||
| if [[ -d /root/.getssl ]]; then | |||
| rm -r /root/.getssl | |||
| fi | |||
| HOST=getssl.test | |||
| wget --no-clobber https://raw.githubusercontent.com/letsencrypt/pebble/master/test/certs/pebble.minica.pem | |||
| # cat /etc/pki/tls/certs/ca-bundle.crt /root/pebble.minica.pem > /root/pebble-ca-bundle.crt | |||
| cat /etc/ssl/certs/ca-certificates.crt /root/pebble.minica.pem > /root/pebble-ca-bundle.crt | |||
| export CURL_CA_BUNDLE=/root/pebble-ca-bundle.crt | |||
| for prefix in a b c d e f g h i j k; do | |||
| curl -X POST -d '{"host":"'$prefix.$HOST'", "addresses":["10.30.50.4"]}' http://10.30.50.3:8055/add-a | |||
| done | |||
| # Test #1 - http-01 verification | |||
| echo Test \#1 - http-01 verification | |||
| cp /getssl/test/test-config/nginx-ubuntu-no-ssl /etc/nginx/sites-enabled/default | |||
| service nginx restart | |||
| /getssl/getssl -c $HOST | |||
| cp /getssl/test/test-config/getssl-http01-10-hosts.cfg /root/.getssl/${HOST}/getssl.cfg | |||
| /getssl/getssl -f $HOST | |||
| @ -0,0 +1,46 @@ | |||
| #! /bin/bash | |||
| set -e | |||
| # Test setup | |||
| if [[ -d /root/.getssl ]]; then | |||
| rm -r /root/.getssl | |||
| fi | |||
| HOST=getssl.test | |||
| wget --no-clobber https://raw.githubusercontent.com/letsencrypt/pebble/master/test/certs/pebble.minica.pem | |||
| # cat /etc/pki/tls/certs/ca-bundle.crt /root/pebble.minica.pem > /root/pebble-ca-bundle.crt | |||
| cat /etc/ssl/certs/ca-certificates.crt /root/pebble.minica.pem > /root/pebble-ca-bundle.crt | |||
| export CURL_CA_BUNDLE=/root/pebble-ca-bundle.crt | |||
| curl -X POST -d '{"host":"'$HOST'", "addresses":["10.30.50.4"]}' http://10.30.50.3:8055/add-a | |||
| # Test #1 - http-01 verification | |||
| echo Test \#1 - http-01 verification | |||
| cp /getssl/test/test-config/nginx-ubuntu-no-ssl /etc/nginx/sites-enabled/default | |||
| service nginx restart | |||
| /getssl/getssl -c $HOST | |||
| cp /getssl/test/test-config/getssl-http01-dual-rsa-ecdsa.cfg /root/.getssl/${HOST}/getssl.cfg | |||
| /getssl/getssl -f $HOST | |||
| # Test #2 - http-01 forced renewal | |||
| echo Test \#2 - http-01 forced renewal | |||
| /getssl/getssl $HOST -f | |||
| # Test cleanup | |||
| rm -r /root/.getssl | |||
| # Test #3 - dns-01 verification | |||
| echo Test \#3 - dns-01 verification | |||
| cp /getssl/test/test-config/nginx-ubuntu-no-ssl /etc/nginx/sites-enabled/default | |||
| service nginx restart | |||
| /getssl/getssl -c $HOST | |||
| cp /getssl/test/test-config/getssl-dns01-dual-rsa-ecdsa.cfg /root/.getssl/${HOST}/getssl.cfg | |||
| /getssl/getssl $HOST | |||
| # Test #4 - dns-01 forced renewal | |||
| echo Test \#4 - dns-01 forced renewal | |||
| /getssl/getssl $HOST -f | |||
| @ -0,0 +1,28 @@ | |||
| # Uncomment and modify any variables you need | |||
| # see https://github.com/srvrco/getssl/wiki/Config-variables for details | |||
| # see https://github.com/srvrco/getssl/wiki/Example-config-files for example configs | |||
| CA="https://pebble:14000/dir" | |||
| # Additional domains - this could be multiple domains / subdomains in a comma separated list | |||
| # Note: this is Additional domains - so should not include the primary domain. | |||
| SANS="a.getssl.test,b.getssl.test,c.getssl.test,d.getssl.test,e.getssl.test,f.getssl.test,g.getssl.test,h.getssl.test,i.getssl.test,j.getssl.test,k.getssl.test" | |||
| # Acme Challenge Location. | |||
| ACL=('/var/www/html/.well-known/acme-challenge') | |||
| # Use a single ACL for all checks | |||
| USE_SINGLE_ACL="true" | |||
| # Location for all your certs, these can either be on the server (full path name) | |||
| DOMAIN_CERT_LOCATION="/etc/nginx/pki/server.crt" | |||
| DOMAIN_KEY_LOCATION="/etc/nginx/pki/private/server.key" | |||
| CA_CERT_LOCATION="/etc/nginx/pki/chain.crt" | |||
| DOMAIN_CHAIN_LOCATION="" # this is the domain cert and CA cert | |||
| DOMAIN_PEM_LOCATION="" # this is the domain_key, domain cert and CA cert | |||
| # The command needed to reload apache / nginx or whatever you use | |||
| RELOAD_CMD="cp /getssl/test/test-config/nginx-ubuntu-ssl /etc/nginx/sites-enabled/default && service nginx restart" | |||
| #SERVER_TYPE="https" | |||
| #CHECK_REMOTE="true" | |||