Firefox Certificate Setup
Firefox uses its own built-in certificate store (NSS) rather than the operating system's trust store. This means that even if you have installed the NectoProxy CA certificate at the system level (macOS Keychain, Windows Certificate Store, or Linux system CA directory), Firefox will not automatically trust it.
You have two options: import the certificate directly into Firefox, or configure Firefox to use system certificates.
Method 1: Import into Firefox (Recommended)
This method adds the NectoProxy CA certificate directly to Firefox's internal certificate manager.
Open Firefox Settings
- Click the hamburger menu (three horizontal lines) in the top-right corner.
- Select Settings (or Preferences on some systems).
- Alternatively, type
about:preferencesin the address bar and press Enter.
Navigate to Certificates
- In the left sidebar, click Privacy & Security.
- Scroll down to the Certificates section (near the bottom of the page).
- Click the View Certificates button.
Import the CA Certificate
- In the Certificate Manager dialog, click the Authorities tab.
- Click the Import button.
- Navigate to
~/.nectoproxy/certs/(on macOS/Linux) or%USERPROFILE%\.nectoproxy\certs\(on Windows). - Select the
ca.pemfile and click Open.
Finding the Certificate File
If you cannot navigate to the
.nectoproxydirectory (hidden directories may not be visible in the file picker), you can:- On macOS/Linux: Type
~/.nectoproxy/certs/ca.pemdirectly in the file picker's path bar, or pressCmd+Shift+.(macOS) to show hidden files. - On Windows: Type
%USERPROFILE%\.nectoproxy\certs\ca.pemin the file name field. - Or copy the certificate to a visible location first:
cp ~/.nectoproxy/certs/ca.pem ~/Desktop/nectoproxy-ca.pem
Set Trust Settings
- A dialog appears asking how you want to trust this certificate.
- Check Trust this CA to identify websites.
- You do not need to check "Trust this CA to identify email users" for proxy usage.
- Click OK.
Confirm Import
- The NectoProxy CA certificate should now appear in the Authorities list, grouped under its organization name.
Method 2: Use System Certificates
Instead of importing the certificate manually, you can configure Firefox to trust all certificates in the operating system's trust store. This is useful if you have already installed the NectoProxy CA at the system level.
Open Firefox Configuration
- Type
about:configin the address bar and press Enter. - Click Accept the Risk and Continue when warned about advanced settings.
- Type
Search for the Setting
- In the search bar, type:
security.enterprise_roots.enabled
- In the search bar, type:
Enable the Setting
- If the value is
false, click the toggle button to set it totrue. - If the setting does not exist, click the + button to create it as a Boolean with the value
true.
- If the value is
Restart Firefox
- Close and reopen Firefox for the change to take effect.
Limitations of Method 2
- This method relies on the NectoProxy CA being installed in the system trust store first (see macOS, Windows, or Linux guides).
- On Linux, this feature reads from the system NSS database or the p11-kit trust store, depending on the distribution. It may not work on all distributions.
- This setting causes Firefox to trust all system root certificates, not just NectoProxy's. If you prefer fine-grained control, use Method 1.
Verify Installation
After installing the certificate using either method:
Make sure your Firefox proxy is set to
localhost:8888:- Go to Settings > General > Network Settings > Settings.
- Select Manual proxy configuration.
- Set HTTP Proxy to
localhostand Port to8888. - Check Also use this proxy for HTTPS.
- Click OK.
Navigate to any HTTPS website (e.g.,
https://example.com).The page should load without certificate warnings.
Click the lock icon in the address bar and select Connection secure > More information > View Certificate to confirm the certificate chain includes the NectoProxy CA.
Removing the Certificate
If Imported via Method 1
- Open Firefox Settings > Privacy & Security > View Certificates.
- Go to the Authorities tab.
- Find the NectoProxy CA certificate in the list.
- Select it and click Delete or Distrust.
- Confirm the removal.
If Using Method 2
- Navigate to
about:config. - Search for
security.enterprise_roots.enabled. - Toggle it back to
false. - Restart Firefox.
Troubleshooting
Certificate Import Fails
- File format: Firefox expects PEM-encoded certificates. The NectoProxy
ca.pemfile is already in PEM format. If import fails, verify the file is not corrupted by checking it starts with-----BEGIN CERTIFICATE-----. - File permissions: Ensure the certificate file is readable. Run
chmod 644 ~/.nectoproxy/certs/ca.pemif needed.
HTTPS Sites Still Show Warnings After Import
- Restart Firefox: Fully close and reopen Firefox (check that no Firefox processes are running in the background).
- Check proxy settings: Verify that Firefox is actually routing through the NectoProxy proxy. Visit
http://httpbin.org/ipand check if the request appears in the NectoProxy Web UI. - Verify trust settings: Open the Certificate Manager, go to the Authorities tab, find the NectoProxy CA, and click Edit Trust. Ensure "Trust this CA to identify websites" is checked.
Firefox for Android
Firefox on Android also uses its own certificate store. You need to import the certificate through Firefox's settings:
- Transfer the
ca.pemfile to your Android device. - Open Firefox on Android.
- Go to Settings > About Firefox > tap the Firefox logo 5 times to enable secret settings.
- Look for certificate management options in the advanced settings.
Alternatively, use the security.enterprise_roots.enabled method if the certificate is already installed at the Android system level.
Enterprise Deployment
For organizations deploying NectoProxy across many machines, you can distribute the Firefox configuration via enterprise policies. Create a policies.json file:
{
"policies": {
"Certificates": {
"ImportEnterpriseRoots": true
}
}
}Place this file in Firefox's distribution directory:
- macOS:
/Applications/Firefox.app/Contents/Resources/distribution/policies.json - Linux:
/usr/lib/firefox/distribution/policies.jsonor/usr/lib64/firefox/distribution/policies.json - Windows:
C:\Program Files\Mozilla Firefox\distribution\policies.json
This automatically enables security.enterprise_roots.enabled for all users.