Skip to content

Instantly share code, notes, and snippets.

@brianmriley
Forked from jpf/fetch-ssl-from-okta-com.sh
Created October 22, 2019 23:02
Show Gist options
  • Save brianmriley/ae2bb806361dd462e9342c4cee714eb1 to your computer and use it in GitHub Desktop.
Save brianmriley/ae2bb806361dd462e9342c4cee714eb1 to your computer and use it in GitHub Desktop.
How to fetch the SSL certificate from www.okta.com
echo '' | openssl s_client -connect www.okta.com:443
@brianmriley
Copy link
Author

Additionally we can list the entire cert chain with:

openssl s_client -showcerts -verify 5 -connect www.okta.com:443 < /dev/null

@brianmriley
Copy link
Author

openssl s_client -host dev-808161.okta.com -port 443 -prexit -showcerts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment