Skip to content

Instantly share code, notes, and snippets.

@Nooshu
Last active September 7, 2019 14:03
Show Gist options
  • Save Nooshu/836949de9d7c6279e3b688f432ed5099 to your computer and use it in GitHub Desktop.
Save Nooshu/836949de9d7c6279e3b688f432ed5099 to your computer and use it in GitHub Desktop.
Testing the OCSP stapling of Cloudfront and Fastly
# 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
# 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