How to Force Firefox to Accept a Certificate
In this article
Firefox will only trust a certificate that is either signed by a root authority it already trusts or that you have explicitly imported into its own certificate store. To force it to accept a self-signed or internal certificate, open Settings > Privacy & Security > Certificates > View Certificates, go to the Authorities tab, click Import, select the certificate file, tick Trust this CA to identify websites, and restart Firefox. This works for the browser only; it does not change Windows, macOS or Android trust settings. Menu labels can differ slightly by Firefox version, operating system and language.
What You'll Need
- The certificate file itself, usually a
.crt,.ceror.pemfile, copied to the computer where Firefox runs. - Administrator rights on that computer if the certificate was installed system-wide and you need to export it first.
- Firefox installed and fully closed before you start, so the change is picked up cleanly on the next launch.
- For a certificate that is not self-signed, the issuing root or intermediate certificate, not just the leaf certificate for the site.
Step-by-Step
- Save the certificate file somewhere easy to find. Put it in your Downloads folder or on the desktop. If you only have the certificate installed in Windows, open certmgr.msc or the Windows certificate manager, find it under Trusted Root Certification Authorities > Certificates, right-click it, choose All Tasks > Export, and save it as a Base-64 encoded
.cerfile. On macOS, use Keychain Access, select the certificate, and choose File > Export Items. - Open Firefox and go to the certificate settings. Click the menu button, choose Settings (called Preferences on macOS), then select Privacy & Security in the left column. Scroll down to the Certificates section and click View Certificates.
- Open the Authorities tab. In the Certificate Manager window, click the Authorities tab. This is where Firefox stores the root certificates it trusts. Your certificate may appear here already if it was imported previously; if so, select it and click Edit Trust instead of importing again.
- Click Import and choose the file. Click the Import button, browse to the certificate file you saved, and select it. Firefox will open a dialog asking what you want to trust this certificate for.
- Tick the website trust checkbox. Check Trust this CA to identify websites. Leave the email and software trust boxes unticked unless you specifically need them. Click OK.
- Restart Firefox. Close every Firefox window and open the browser again. Load the site that was showing the warning. The padlock should now appear without an error page.
- If the site still warns, check the certificate chain. A leaf certificate imported on its own will not be trusted for a site unless it is self-signed. For an internal CA, import the root certificate and, if Firefox asks, the intermediate certificate too. You can inspect what Firefox sees by clicking the padlock, then Connection secure > More information, and reading the certificate hierarchy.
Common Mistakes
- Importing the wrong file. Importing the server's leaf certificate instead of the issuing root or intermediate certificate leaves the chain incomplete, so Firefox still rejects the site.
- Forgetting the trust checkbox. A certificate imported without Trust this CA to identify websites is stored but not trusted for browsing.
- Assuming Firefox uses the system store. On Windows, Firefox has its own certificate store and does not automatically inherit certificates added to Windows. You must import into Firefox separately.
- Editing the wrong entry. If the certificate is already listed, importing it again can create a duplicate. Select the existing entry and use Edit Trust.
- Expecting this to fix every app. Importing into Firefox only affects Firefox. Other browsers and apps keep their own trust decisions.
Tips
- Keep a backup copy of the certificate file. If you ever reset Firefox or move to a new profile, you will need to import it again.
- Use a separate Firefox profile for testing internal sites so your everyday profile stays clean.
- Check the certificate's expiry date before importing. An expired certificate will still produce a warning even when trusted.
- If you manage many machines, consider distributing the root certificate through your organisation's device management rather than importing it by hand on each browser.
- Never import a certificate you did not obtain from a source you control or trust. A trusted root can vouch for any website.
Troubleshooting
If the warning persists after importing, work through these checks in order.
- Confirm the certificate is listed. Return to Settings > Privacy & Security > View Certificates > Authorities and search for the name. If it is missing, the import did not complete; repeat the import and make sure you click OK on the trust dialog.
- Check the trust settings. Select the entry and click Edit Trust. The website checkbox must be ticked.
- Verify the chain. Click the padlock on the warning page and open the certificate details. If the issuer shown is not the certificate you imported, you have the wrong file. Import the issuer certificate instead.
- Look at the error code. A name mismatch error means the certificate is trusted but was issued for a different hostname. That is a certificate problem, not a trust problem, and importing again will not fix it.
- Restart Firefox completely. Close all windows, including background processes, then reopen. On Windows, check Task Manager for a lingering Firefox process.
- Test in a fresh profile. If the site works in a new profile but not your main one, an extension or a corrupted profile setting is interfering. Disable security-related extensions temporarily to identify the cause.
- Re-import after a Firefox refresh. Refreshing or resetting Firefox can clear imported certificates. Import the file again afterwards.
Frequently Asked Questions
Does importing a certificate into Firefox affect other browsers?
No. Firefox maintains its own certificate store. Chrome, Edge and other apps use the operating system store, so each must be handled separately.
Can I bypass the warning without importing anything?
Firefox lets you click through some warnings to reach the site, but this is temporary and the warning returns. Importing the certificate is the proper fix and removes the warning permanently for that site.
Why does Firefox still warn after I imported the certificate?
The most common reasons are an incomplete chain, a missing trust checkbox, or a hostname mismatch. Check the certificate details from the padlock menu to see which applies.
Where does Firefox store imported certificates?
They are stored in the Firefox profile folder as part of the browser's certificate database, not in the Windows or macOS system store.
Is it safe to trust a self-signed certificate?
Only if you created it or obtained it from a source you control, such as an internal server. Trusting an unknown certificate exposes your browsing to interception.
Do I need to re-import after updating Firefox?
Normal updates keep your profile and certificates. A refresh or a new profile does not, so keep the certificate file available.