Blog | G5 Cyber Security

Certificate Backup Guide

TL;DR

Back up your locally stored certificates regularly to a safe location (external drive, cloud storage) and verify the backups are working. This guide shows you how.

1. Understand Your Certificates

Before backing up, know what you’re dealing with. Certificates usually come in these formats:

You’ll likely find them in folders like:

2. Choose a Backup Location

Select a secure backup location:

Important: Do not store backups on the same drive as your original certificates.

3. Backup Methods

  1. Simple Copying: For .cer/.crt files, simply copy them to your backup location.
  2. Export from Keychain Access (macOS):
    • Open Keychain Access.
    • Select the certificate you want to back up.
    • File > Export Items…
    • Choose a secure location and set a password if prompted (.p12 format is recommended).
  3. Export from Windows Certificate Manager:
    • Open the Microsoft Management Console (mmc.exe).
    • Add the Certificates snap-in for ‘Local Computer’ account.
    • Navigate to the certificate you want to back up.
    • Right-click > All Tasks > Export…
    • Follow the wizard, choosing a secure location and setting a strong password (Personal Information Exchange – .pfx format is recommended). Ensure ‘Export private key’ is checked if needed.
  4. OpenSSL (Linux/Advanced): If you have certificates in plain text formats (.key, etc.), use OpenSSL to create a PKCS#12 bundle:
    openssl pkcs12 -export -out certificate.pfx -inkey private.key -in certificate.crt -certfile ca.crt

4. Automate Backups (Optional)

For regular backups, consider automation:

5. Verify Your Backups

Crucially, test your backups!

Exit mobile version