-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update container tests to check server info
- Loading branch information
Showing
9 changed files
with
146 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,40 +177,59 @@ jobs: | |
-U https://acme.example.com:8443 \ | ||
acme-info | ||
- name: Verify certbot in client container | ||
- name: Register ACME account | ||
run: | | ||
docker exec client certbot register \ | ||
--server http://acme.example.com:8080/acme/directory \ | ||
--email [email protected] \ | ||
--agree-tos \ | ||
--non-interactive | ||
- name: Enroll client cert | ||
run: | | ||
docker exec client certbot certonly \ | ||
--server http://acme.example.com:8080/acme/directory \ | ||
-d client.example.com \ | ||
--key-type rsa \ | ||
--standalone \ | ||
--non-interactive | ||
docker exec client openssl x509 -text -noout -in /etc/letsencrypt/live/client.example.com/fullchain.pem | ||
- name: Check client cert | ||
run: | | ||
docker exec client openssl x509 \ | ||
-text \ | ||
-noout \ | ||
-in /etc/letsencrypt/live/client.example.com/fullchain.pem | ||
- name: Renew client cert | ||
run: | | ||
docker exec client certbot renew \ | ||
--server http://acme.example.com:8080/acme/directory \ | ||
--cert-name client.example.com \ | ||
--force-renewal \ | ||
--no-random-sleep-on-renew \ | ||
--non-interactive | ||
# | ||
# By default the pki-acme container uses NSS issuer (instead of | ||
# PKI issuer) which does not support cert revocation, so the | ||
# revocation test is disabled. | ||
# | ||
# docker exec client certbot revoke \ | ||
# --server http://acme.example.com:8080/acme/directory \ | ||
# --cert-name client.example.com \ | ||
# --non-interactive | ||
# | ||
# - name: Revoke client cert | ||
# run: | | ||
# By default the pki-acme container uses NSS issuer (instead of | ||
# PKI issuer) which does not support cert revocation, so the | ||
# revocation test is disabled. | ||
# | ||
# docker exec client certbot revoke \ | ||
# --server http://acme.example.com:8080/acme/directory \ | ||
# --cert-name client.example.com \ | ||
# --non-interactive | ||
|
||
- name: Update ACME account | ||
run: | | ||
docker exec client certbot update_account \ | ||
--server http://acme.example.com:8080/acme/directory \ | ||
--email [email protected] \ | ||
--non-interactive | ||
- name: Remove ACME account | ||
run: | | ||
docker exec client certbot unregister \ | ||
--server http://acme.example.com:8080/acme/directory \ | ||
--non-interactive | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.