Last active
September 7, 2019 14:03
-
-
Save Nooshu/836949de9d7c6279e3b688f432ed5099 to your computer and use it in GitHub Desktop.
Testing the OCSP stapling of Cloudfront and Fastly
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
# cloudfront test | |
# requires: https://github.com/rcoh/angle-grinder | |
while true; do bash -c 'echo hello | openssl s_client -connect www.digitalmarketplace.service.gov.uk:443 -tls1_2 -tlsextdebug -status -servername www.digitalmarketplace.service.gov.uk 2>&1 | grep -q "OCSP Response Status: successful" ; echo $?'; sleep 0.5; done | agrind '* | parse "*" as code | count by code' | |
# Is OCSP stapling used? | |
# code _count | |
# -------------------------- | |
# 1 (no) 151 | |
# 0 (yes) 49 |
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
# fastly test | |
# requires: https://github.com/rcoh/angle-grinder | |
while true; do bash -c 'echo hello | openssl s_client -connect www.gov.uk:443 -tls1_2 -tlsextdebug -status -servername www.gov.uk 2>&1 | grep -q "OCSP Response Status: successful" ; echo $?'; sleep 0.5; done | agrind '* | parse "*" as code | count by code' | |
# Is OCSP stapling used? | |
# code _count | |
# -------------------------- | |
# 0 (yes) 201 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment