Skip to content

Instantly share code, notes, and snippets.

@rms1000watt
Last active September 19, 2022 00:31
Show Gist options
  • Save rms1000watt/f970c15f3ba5df067bbc0c1f951cae5d to your computer and use it in GitHub Desktop.
Save rms1000watt/f970c15f3ba5df067bbc0c1f951cae5d to your computer and use it in GitHub Desktop.
Openssl get full chain of trust from website
# 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