How to Download SSL Certificate from a URL Using openssl

This is a note to myself because I don’t do this often enough to remember the whole thing…

openssl s_client -showcerts -connect < /dev/null | openssl x509 -outform DER >

You obviously have to have openssl on your machine. Install Cygwin if you are on Windows and that will give you an ability to execute openssl.

Leave a Reply

Your email address will not be published.