Last active
May 17, 2022 07:49
-
-
Save xpl0t/d7073e809622d329089716fc72e62a43 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/sh | |
# Downloads the public certificate of the certificate authority | |
echo quit | openssl s_client -showcerts -servername example.com -connect example.com:443 2> /dev/null | awk '/BEGIN/,/END/{ if(/BEGIN/){c=""};c=c $0 "\n"}END{print c}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment