Last active
March 11, 2025 14:17
-
-
Save rms1000watt/f970c15f3ba5df067bbc0c1f951cae5d to your computer and use it in GitHub Desktop.
Openssl get full chain of trust from website
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
# The first one in that file is the actual cert of the website | |
# The following ones in that file is the chain. Possibly this should separate full-chain.pem to chain.pem + cert.pem | |
openssl s_client -host www.google.com -port 443 -showcerts 2>&1 | sed -n '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' > ~/Desktop/full-chain.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment