Skip to content

Certificates

Install and manage certificates in Firefox.

Certificates accepts one or more of the following keys:

  • ImportEnterpriseRoots (boolean): Trust certificates that have been added to the operating system certificate store by a user or administrator.

  • Install (array of strings): Install certificates into the Firefox certificate store. If only a filename is specified, Firefox searches for the file in the following locations:

    • Windows
      • %USERPROFILE%\AppData\Local\Mozilla\Certificates
      • %USERPROFILE%\AppData\Roaming\Mozilla\Certificates
    • macOS
      • /Library/Application Support/Mozilla/Certificates
      • ~/Library/Application Support/Mozilla/Certificates
    • Linux
      • /usr/lib/mozilla/certificates
      • /usr/lib64/mozilla/certificates
      • ~/.mozilla/certificates

    A fully qualified path can be used, including UNC paths. You should use the native path style for your operating system. We do not support using %USERPROFILE% or other environment variables on Windows.

    If you are specifying the path in the policies.json file on Windows, you need to escape your backslashes (\\) which means that for UNC paths, you need to escape both (\\\\). If you use Group Policy, you only need one backslash.

    Certificates are installed using the trust string CT,CT,.

    Binary (DER) and ASCII (PEM) certificates are both supported.

policies.json
{
"policies": {
"Certificates": {
"ImportEnterpriseRoots": true,
"Install": [
"cert1.der",
"/home/username/cert2.pem"
]
}
}
}
JSON schema
Certificates JSON schema
{
"type": "object",
"properties": {
"ImportEnterpriseRoots": {
"type": "boolean"
},
"Install": {
"type": "array",
"items": {
"type": "string"
}
}
}
}

Trusting root certificates from the operating system

Section titled “Trusting root certificates from the operating system”

On Windows and macOS, deploy your organization's root certificate to the operating system certificate store, for example with Group Policy or an MDM profile, and have Firefox trust it from there. Firefox loads these certificates into memory from the operating system each time it starts, rather than adding them to the profile. When you replace or remove a certificate in the operating system store, the change takes effect the next time Firefox starts.

Certificates added with Install stay in each user's profile even after you remove them from the policy. This example also locks the setting, so users can't turn it off:

{
"policies": {
"Certificates": {
"ImportEnterpriseRoots": true
}
}
}

This example uses a full path to a directory that only administrators can write to. If you give only a filename, Firefox checks each user's ~/.mozilla/certificates directory before the system certificate directory, so a user's file with the same name would be installed instead. Firefox installs the certificate into each user's profile, and doesn't remove it if you later take it out of the policy:

{
"policies": {
"Certificates": {
"Install": ["/usr/lib/mozilla/certificates/example-root-ca.pem"]
}
}
}
Software\Policies\Mozilla\Firefox\Certificates\ImportEnterpriseRoots = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\Certificates\Install\1 = "cert1.der"
Software\Policies\Mozilla\Firefox\Certificates\Install\2 = "C:\Users\username\cert2.pem"
<dict>
<key>Certificates</key>
<dict>
<key>ImportEnterpriseRoots</key>
<true/> | <false/>
<key>Install</key>
<array>
<string>cert1.der</string>
<string>/Users/username/cert2.pem</string>
</array>
</dict>
</dict>
FirefoxFirefox ESRFirefox Enterprise
CertificatesAvailable since 60Available since 60Available since 149
ImportEnterpriseRoots1Available since 60Available since 60Available since 149
InstallAvailable since 64Available since 60.4Available since 149
  1. macOS support was added in Firefox 63 / Firefox ESR 68.

CCK2 Equivalent: certs.ca (Install)
OMA-URI: Certificates
Preferences Affected: security.enterprise_roots.enabled