mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 13:59:02 -04:00
no auth reuse plz
This commit is contained in:
parent
9741f78afe
commit
b0fa063ef3
2 changed files with 6 additions and 5 deletions
|
|
@ -52,7 +52,7 @@ http {
|
|||
listen 8081;
|
||||
# IPv6.
|
||||
listen [::]:8081 default ipv6only=on;
|
||||
server_name nginx.wtf;
|
||||
server_name nginx.wtf nginx2.wtf;
|
||||
|
||||
root $root/webroot;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,18 +23,19 @@ certbot_test_nginx () {
|
|||
}
|
||||
|
||||
test_deployment_and_rollback() {
|
||||
# Arguments: certname
|
||||
echo | openssl s_client -connect localhost:5001 \
|
||||
| openssl x509 -out $root/nginx.pem
|
||||
diff -q $root/nginx.pem $root/conf/live/nginx.wtf/cert.pem
|
||||
diff -q $root/nginx.pem "$root/conf/live/$certname/cert.pem"
|
||||
|
||||
certbot_test_nginx rollback --checkpoints 9001
|
||||
diff -q <(echo "$original") $nginx_conf
|
||||
}
|
||||
|
||||
certbot_test_nginx --domains nginx.wtf run
|
||||
test_deployment_and_rollback
|
||||
certbot_test_nginx --domains nginx.wtf --force-renewal --preferred-challenges http
|
||||
test_deployment_and_rollback
|
||||
test_deployment_and_rollback nginx.wtf
|
||||
certbot_test_nginx --domains nginx2.wtf --preferred-challenges http
|
||||
test_deployment_and_rollback nginx2.wtf
|
||||
|
||||
# note: not reached if anything above fails, hence "killall" at the
|
||||
# top
|
||||
|
|
|
|||
Loading…
Reference in a new issue