Firefox greets you with "Your connection may not be private" and you are not sure whether the site is unsafe or the browser is misconfigured. The wording is narrower than most people assume.
Check the SSLKEYLOGFILE environment variable first, then confirm the system clock, proxy settings, and the certificate the site presents. The page will load again once the underlying cause is gone.
In this guide, I have covered:
Contents
Which Firefox warning are you actually seeing?
You open a site and Firefox stops you with a message about your connection. Before you change a single setting, read the exact heading on that page.
Firefox uses different wording for different problems. A page titled “Your connection may not be private” usually means TLS key logging is switched on for the browser, not that an ordinary website certificate has expired.
Certificate failures, such as an untrusted issuer or an expired certificate, appear under a different heading: “Warning: Potential Security Risk Ahead”. Note which one you have, because the fix path splits right there.
If the warning shows up on every HTTPS site, including sites that open normally in another browser, start with the TLS key logging check. Mozilla’s support forum has a discussion of the Firefox private connection warning that describes the same behavior.
Turn off TLS key logging
This is the check that clears the warning for most readers. Firefox reads the SSLKEYLOGFILE environment variable and warns that an application or service could see encrypted traffic from the site.
Someone usually set that variable on purpose, for development, debugging, or network inspection. If that someone wasn’t you, remove it.
- Open the environment variable settings for your operating system.
- Look for a variable named SSLKEYLOGFILE under the user or system variables.
- Remove the variable, or clear its value, if you did not enable TLS key logging yourself.
- Close every Firefox window, including background windows sitting in the system tray.
- Open Firefox again and load the affected HTTPS site.
Once Firefox starts without the variable, the warning is gone and the padlock
is back in the address bar. Still blocked? Check for a startup script, account configuration, or security tool that sets the variable again at login.
Removing a variable that a developer tool or security appliance depends on can stop that tool from recording TLS keys. Confirm no active troubleshooting process needs it first.
Check the clock and connection settings
If the heading you saw was “Warning: Potential Security Risk Ahead”, the clock is the first thing to check. Firefox validates certificates against the date and time reported by your operating system, and a machine that is a few days off will reject good certificates.
- Confirm the date, time, and time zone in your operating system.
- Turn on automatic clock synchronization if your computer and network support it.
- Select the
menu in Firefox. - Select Settings.
- Scroll to the bottom of the General panel.
- Select .
- Confirm Firefox is not set to a custom proxy or manual DNS configuration you did not expect.
- Select , then reload the affected page.
If Firefox does use a proxy, ask your network administrator whether the proxy certificate belongs in the operating system store or in Firefox’s own store. Don’t remove a required proxy setting until you have another way to reach the network.
You’ll know it worked when the page loads and the padlock
sits in the address bar again. If it doesn’t, the problem is in the certificate itself, and that’s the next stop.
Check the site certificate
Before you click through any exception, look at what the site actually sent. The site identity panel shows whether Firefox considers the connection secure and lets you inspect the certificate the server presented.
- Select the padlock
next to the address in the address bar. - Select Connection secure to open the site information panel.
- Select More information to review the certificate details.
- Compare the displayed certificate with the information published by the site owner.
- Close the panel and reload the site if the certificate looks valid.
The panel also holds per-site permissions, so scan those while it is open. If you want the full tour, here is how to view site information and per-site settings in Firefox without touching the global certificate rules. Remove any permission you don’t recognize, then reload the page.
Review Firefox’s certificate settings
You probably won’t need this panel. It matters when the warning appears only on internal or company sites that use a certificate your organization issued itself.
- Select the
menu in Firefox. - Select Settings.
- Select Privacy & Security in the sidebar.
- Scroll to the Certificates section.
- Select .
- Review the authorities that issue the certificates used by the affected site.
- Select when you finish reviewing.
You’ll know it worked when the site loads with no warning and its certificate chains back to an authority you recognize. If it doesn’t, ask your network administrator to install the company root certificate through the managed device configuration. Importing a certificate from an unverified message or website is not a safe workaround.
Reset the affected Firefox profile
Sometimes the warning follows your Firefox profile rather than the machine. That points to a corrupted setting, an incompatible extension, or stale profile data. Test with a clean profile before you reset every preference.
- Select the
menu in Firefox. - Select Help.
- Select More Troubleshooting Information.
- Select to open the profile folder.
- Create a new Firefox profile from the profile controls and load the affected site.
If the new profile loads the page cleanly, disable recently added extensions one at a time and retest after each. The newest one is usually the culprit.
Found the bad extension but other settings still feel off? If you would rather start clean, you can reset Mozilla Firefox settings on the computer and add back only the preferences you need.
Old site data can keep a broken page alive in the tab long after the connection is fine. If the page still misbehaves, clear cookies and cache in Firefox and load it again.
ALERT: Do not bypass a certificate warning for banking, email, shopping, or any site that handles sensitive information. Continue only when the certificate has been verified through a trusted source.
Frequently Asked Questions
Does “Your connection may not be private” mean someone is hacking Firefox?
Almost never. In current Firefox releases the message is tied to TLS key logging through the SSLKEYLOGFILE environment variable. It warns that another application or service could inspect encrypted traffic.
Why does Firefox show this warning on every site?
A system-wide environment variable or startup configuration is the likely cause. Check SSLKEYLOGFILE first, then close Firefox completely, including background windows, and reopen it.
Should I click the option to continue to an insecure website?
No. Clicking through can expose your traffic to interception, and it fixes nothing. Diagnose the configuration instead.
What if the heading says “Warning: Potential Security Risk Ahead”?
That wording points to certificate validation. Check the system clock, the connection settings, the site identity panel, and the certificate issuer before you consider a browser reset.
Can clearing Firefox cookies fix this warning?
No. Cookies and site data do not control certificate validation or the SSLKEYLOGFILE variable. This warning needs a change to the system, the network, or the profile.
