Skip to content

Instantly share code, notes, and snippets.

@naartjie
Last active February 2, 2022 20:57
Show Gist options
  • Select an option

  • Save naartjie/1fd847130e457dbcb905e9d9639b9ff2 to your computer and use it in GitHub Desktop.

Select an option

Save naartjie/1fd847130e457dbcb905e9d9639b9ff2 to your computer and use it in GitHub Desktop.
SSL certs
openssl s_client -showcerts -verify 5 -connect gitlab.standardbank.co.za:443 < /dev/null

Verify a certificate against a CA file:

$ openssl verify -verbose -CAfile ca-certificates.crt example.crt

To view the full details of a site's cert:

$ echo | \
    openssl s_client -servername www.example.com -connect www.example.com:443 2>/dev/null | \
    openssl x509 -text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment