Someday you may need to get the SSL certificate of a website and save it locally.
- Download Certificate From Website Mac Os
- Download Certificate From Website Mac Os
- Download Certificate From Website Mac Software
On the resulting Certificates page, you will see a box titled “Drag files received from your certificate vendor here”, drag-and-drop Your Server Certificate (.crt or.cer) into this box and click Ok. Go back to the main Certificates page. From the Server App window, under Server, click Certificates. In the Keychain Access app on your Mac, in the Category list, select a category. Double-click a certificate. Click the Trust disclosure triangle to display the trust policies for the certificate. To override the trust policies, choose new trust settings from the pop-up menus. SSL Certificates need to be issued from a trusted Certificate Authority. Usually, browsers and operating systems get a list of trusted CA root certificates. You can buy certificate from different authority (the cost starts from 30€) such as GlobalSign, DigiCert, and go on. I have this website which contains an untrusted certificate (self signed). Now I want to download this certificate. But, for example, in Chrome, you only can 'Proceed' or go back (no download option). I'm on a Mac, so I've checked the Keychain access tool but it contains a lot.
For 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.
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.
Cool Tip: Create a self-signed SSL Certificate! Read more →
Download Certificate From Website Mac Os

Export SSL Certificate
Google Chrome
Export the SSL certificate of a website using Google Chrome:
- Click the
Securebutton (a padlock) in an address bar - Click the
Show certificatebutton - Go to the
Detailstab - Click the
Exportbutton - Specify the name of the file you want to save the SSL certificate to, keep the “Base64-encoded ASCII, single certificate” format and click the
Savebutton
Download Certificate From Website Mac Os
Mozilla Firefox
Export the SSL certificate of a website using Mozilla Firefox:
- Click the
Site Identitybutton (a padlock) in an address bar - Click the
Show connection detailsarrow - Click the
More Informationbutton - Click the
View Certificatebutton - Go to the
Detailstab - Click the
Exportbutton - Specify the name of the file you want to save the SSL certificate to, keep the “X.509 Certificate (PEM)” format and click the
Savebutton
Cool Tip: Check the expiration date of the SSL Certificate from the Linux command line! The fastest way! Read more →
Download Certificate From Website Mac Software
Internet Explorer
Download and save the SSL certificate of a website using Internet Explorer:
- Click the
Security reportbutton (a padlock) in an address bar - Click the
View Certificatebutton - Go to the
Detailstab - Click the
Copy to File...button - Click the
Nextbutton - Select the “Base-64 encoded X.509 (.CER)” format and click the
Nextbutton - Specify the name of the file you want to save the SSL certificate to
- Click the
Nextand theFinishbuttons
OpenSSL
Get the SSL certificate of a website using openssl command:
Short explanation:
| Option | Description |
|---|---|
-connect HOST:PORT | The host and port to connect to |
-servername NAME | The TLS SNI (Server Name Indication) extension (website) |
certificate.crt | Save SSL certificate to this file |
Example:
Keychain Access User Guide
A certificate file can be shared between computers. You can add certificates to your keychain for quick access to secure websites and other resources.
On your Mac, drag the certificate file onto the Keychain Access icon or double-click the certificate file.
To view the contents of the certificate before you add it, click Show Certificates in the dialog, then click OK when you’re done.
If you’re asked to provide a name and password, type the name and password for an administrator user on this computer.
