Skip to content

Instantly share code, notes, and snippets.

@vpnwall-services
Last active July 5, 2023 21:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vpnwall-services/84ea6eaa197e4584414a1c8dac94b6fd to your computer and use it in GitHub Desktop.
Save vpnwall-services/84ea6eaa197e4584414a1c8dac94b6fd to your computer and use it in GitHub Desktop.
[OPENSSL 101] OPENSSL 101 #openssl #ssl #101 #validity #check

OPENSSL 101

  • Convert DER to CRT openssl x509 -inform DER -in certificate.cer > certificate.crt

  • Retrieve CA Certificate openssl x509 -text -noout -in mycertificatefile.crt

  • Check validity of remote certificate

DOM="xxx.xxxxxxx.xxx";PORT="443";printf Q | openssl s_client -servername $DOM -connect $DOM:$PORT | openssl x509 -noout -dates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment