Exporting Server Certificate to File in Mozilla Firefox

This section provides a tutorial example on how to export an HTTPS server certificate to a certificate file in PEM (Privacy Enhanced Mail) format.

In previous tutorials, I learned how to view an HTTPS server certificate and its certificate chain. Now I want to learn how to save a server certificate to a certificate file.

1. Visit https://login.yahoo.com with Firefox, and open the server certificate again as shown in the previous tutorial.

2. Scroll down to the Miscellaneous section. I see 2 download links: "PEM (cert)" and "PEM (chain)".

3. Click "PEM (cert)". The selected certificate will be exported to a certificate file in PEM format in the download directory.

4. Click "PEM (chain)". The entire certificate chain will be exported to a certificate file in PEM format in the download directory.

Export Server Certificate in Mozilla Firefox 116
Export Server Certificate in Mozilla Firefox 116

If you are using an older version, Firefox uses a dialog box to display the HTTPS server certificate with two tabs: "General" and "Details". The server "Export" function is accessible in the "Details" tab as shown below:

Export Server Certificate in Mozilla Firefox 61
Export Server Certificate in Mozilla Firefox 61

The older version also gives you the option to export the certificate into different file formats:

X.509 Certificate (PEM) (*.crt,*.pem)
X.509 Certificate with chain (PEM) (*.crt,*.pem)
X.509 Certificate (DER) (*.der)
X.509 Certificate (PKCS#7) (*.p7c)
X.509 Certificate with chain (PKCS#7) (*.p7c)

Table of Contents

 About This Book

 Introduction of PKI (Public Key Infrastructure)

 Introduction of HTTPS (Hypertext Transfer Protocol Secure)

 Using HTTPS with Google Chrome

Using HTTPS with Mozilla Firefox

 Visiting "https" Website with Mozilla Firefox

 Viewing Server Certificate in Mozilla Firefox

 Server Certificate General Information

 Viewing Server Certificate Chain in Mozilla Firefox

Exporting Server Certificate to File in Mozilla Firefox

 Viewing Pre-Installed Certificates in Mozilla Firefox

 Listing of Trusted Root CA in Mozilla Firefox

 Exporting Root Certificate to File from Mozilla Firefox

 Deleting Root CA Certificates from Mozilla Firefox

 Mozilla Firefox Displaying Certificate Error Page

 Adding Security Exception in Mozilla Firefox

 Failing to Import Root CA Certificates to Mozilla Firefox

 Certificate Trust Settings in Mozilla Firefox

 Using HTTPS with Microsoft Edge

 Using HTTPS with Apple Safari

 Using HTTPS with IE (Internet Explorer)

 Android and Server Certificate

 iPhone and Server Certificate

 Windows Certificate Stores and Console

 RDP (Remote Desktop Protocol) and Server Certificate

 macOS Certificate Stores and Keychain Access

 Linux Certificate Stores and Tools

 Perl Scripts Communicating with HTTPS Servers

 PHP Scripts Communicating with HTTPS Servers

 Python Scripts Communicating with HTTPS Servers

 Java Programs Communicating with HTTPS Servers

 .NET Programs Communicating with HTTPS Servers

 CAcert.org - Root CA Offering Free Certificates

 PKI CA Administration - Issuing Certificates

 Comodo Free Personal Certificate

 Digital Signature - Microsoft Word

 Digital Signature - OpenOffice.org 3

 S/MIME and Email Security

 PKI (Public Key Infrastructure) Terminology

 Archived Tutorials

 References

 Full Version in PDF/EPUB