Skip to content

Instantly share code, notes, and snippets.

@jpmens
Created March 4, 2020 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpmens/272bc9ecc656d2733cfbedd4fba1b06c to your computer and use it in GitHub Desktop.
Save jpmens/272bc9ecc656d2733cfbedd4fba1b06c to your computer and use it in GitHub Desktop.
Let's Encrypt grep

find my domain's serial in Let's Encrypt CAA file

grep "^serial $(openssl s_client -connect example.com:443 -showcerts </dev/null 2>/dev/null |
     openssl x509 -serial -noout  |
     cut -d= -f2 |
     tr '[A-Z]' '[a-z]')" caa-rechecking-incident-affected-serials.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment