Certificates · Published
How to back up your signing certificate and move it to another computer
Exporting your certificate with its private key to a .p12 or .pfx file from the Mac keychain, from Windows or from Firefox, importing it on the new machine, and not leaving behind a copy that lets someone sign as you.
You’re getting a new computer, or you want to sign from your laptop as well as the office machine, and your signing certificate lives on the old one. You don’t need a new certificate: you export a copy to a file, carry it across and import it. It takes ten minutes. The part that really matters is what you do with that file afterwards.
What the backup is, and why it needs care
The backup is a .p12 or .pfx file. They are the same format, PKCS #12, under two extensions. Inside are your certificate and its private key, protected by a password you choose when you export it.
The private key is what signs. Anyone who has the file and its password can sign as you, so it is for your own use and nothing else: it is never sent to a colleague, a provider or a support desk.
You can also export a certificate without its private key. That copy is fine for showing someone your certificate, but nothing can sign with it.
And if your certificate is on a smart card or a USB token, there is no file to make: those devices are built so the private key never leaves them. A backup is for certificates stored in software.
From the Mac keychain
If you installed the certificate with Safari or Chrome, or imported a file into it, it is in your keychain. Apple’s Keychain Access guide gives the steps:
- Open Keychain Access. Spotlight finds it.
- Under My Certificates, select yours.
- Choose File > Export Items.
- Pick a name and a location, choose the file format, and click Save.
- Type the password that will protect the file.
Spain’s FNMT, which walks its users through the same steps in its FAQ (in Spanish), notes that the result is a .p12 file. If Export Items is dimmed, Apple says at least one of the selected items can’t be exported.
From Windows
On Windows the certificate lives in the system certificate store, which Edge and Chrome use too. The tool for it is the certificate manager for your user: press Windows + R, type certmgr.msc and press Enter, as Microsoft Learn explains. Then, following Microsoft’s steps for exporting a certificate with its private key:
- Open Personal > Certificates and select your certificate.
- Right-click it, then All Tasks > Export. The Certificate Export Wizard opens.
- Choose Yes, export the private key.
- Keep the PKCS #12 format. Leave Delete the private key if the export is successful unticked, unless you really mean to remove it from this computer.
- Set the file’s password and confirm it.
- Choose where to save the file, then Next and Finish.
What if Yes, export the private key is greyed out? Microsoft says that option appears only when the private key is marked as exportable and you have access to it. If it wasn’t marked as exportable when it was imported, this computer can’t give you a copy; you’ll need the original file, or a new certificate from your provider.
From Firefox
Firefox keeps certificates in a store of its own, separate from the system’s. If you requested or installed yours through Firefox, it isn’t in the Mac keychain or the Windows store, and other apps can’t see it. The steps WIPO gives its users are a good summary:
- In Firefox’s settings, go to Privacy & Security and, under Certificates, click View Certificates.
- On the Your Certificates tab, select yours and click Backup.
- Choose where to save it.
- Set the password that will protect the backup, and confirm it.
Menu names move between Firefox versions. If Firefox asks for its own Primary Password first, that is a different password from the one protecting the file. And check the file name ends in .p12: the FNMT warns that on a Mac you have to type the extension yourself.
The password
It is the password of the file, the one you chose when exporting, not your computer’s. You’ll be asked for it on import, and if you lose it, the file is useless.
Don’t leave it blank. Since the file lets anyone sign in your name, make the password long and use it nowhere else.
Moving it without leaving a trail
- Don’t email it to yourself or drop it in a shared or synced folder. A USB stick you control, wiped when you’re done, is the simplest route.
- Never send the file and its password together, or over the same channel.
- Delete the stray copies: the one in Downloads, the one on the desktop, the one on the stick. Keep a single backup somewhere only you control.
- If you think someone may have the file and its password, ask your provider to revoke the certificate. What happens then to what you have already signed is in my certificate has expired: are the PDFs I signed still valid?
Importing it on the other computer
On a Mac, in Keychain Access choose File > Import Items, select the file, pick the login keychain as the destination and type the file’s password (Apple’s guide). Safari, Chrome and apps that read the keychain will see it.
On Windows, double-click the .pfx or .p12 file to start the Certificate Import Wizard, as Microsoft’s documentation describes, and import it for the current user. Consider marking the private key as exportable, so you can make another backup from this machine later. Then check in certmgr.msc that it appears under Personal > Certificates with its private key.
In Firefox, use Import on the Your Certificates tab.
Sign a test document to make sure it works. And if you’re selling or giving away the old computer, remove the certificate from it first.
And with PDFsigna
PDFsigna doesn’t keep certificates of its own: it uses the system’s.
On the Mac it reads the keychain, and it can also import the file for you without opening Keychain Access. Import a .p12 File…, in the signing panel and in Settings, adds it to your login keychain, shows you what went in and lets you undo the import. The file’s password isn’t stored anywhere. The Mac version is on the Mac App Store.
On Windows, the app reads your user’s personal certificate store and has no import of its own: bring the file in with the Windows wizard, as above, and PDFsigna will find it. The Windows version is on the Microsoft Store.
The rest of the way, up to a signed PDF, is in how to sign a PDF with a digital certificate on a Mac and on Windows.
This article was written with the help of artificial intelligence.
This article is general information, not professional advice. Laws, prices and how software works change over time: before you decide, check the official, up-to-date documentation from each authority or vendor.