

The version of OpenSSL that you are running, and the options it was compiled. The TLS SNI (Server Name Indication) extension (website)Įxample: $ echo | openssl s_client -servername -connect :443 |\ The openssl version command can be used to check which version you are running. Sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > certificate.crt Get the SSL certificate of a website using openssl command: $ echo | openssl s_client -servername NAME -connect HOST:PORT |\ Specify the name of the file you want to save the SSL certificate to.Select the “Base-64 encoded X.509 (.CER)” format and click the Next button.

#OPENSSL GET CERTIFICATE HOW TO#
In the following article i am showing how to export the SSL certificate from a server (site URL) using Google Chrome, Mozilla Firefox and Internet Explorer browsers as well as how to get SSL certificate from the command line, using openssl command.Ĭool Tip: Create a self-signed SSL Certificate! Read more → Export SSL Certificate Google ChromeĮxport the SSL certificate of a website using Google Chrome:
#OPENSSL GET CERTIFICATE DOWNLOAD#
Someday you may need to get the SSL certificate of a website and save it locally.įor example, you could get an error saying that you can’t clone a Git repository due to a self-signed certificate and to resolve this issue you would need to download the SSL certificate and make it trusted by your Git client.
