Skip to content

Instantly share code, notes, and snippets.

@stand-sure
Created June 5, 2023 18:28
Show Gist options
  • Save stand-sure/1980021992f17741e232ec42d4100eea to your computer and use it in GitHub Desktop.
Save stand-sure/1980021992f17741e232ec42d4100eea to your computer and use it in GitHub Desktop.
openssl s_client # get cert chain
openssl s_client -showcerts -connect SERVER_NAME:443 -showcerts </dev/null 2>/dev/null|openssl x509 -outform PEM >mycertfile.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment