PR_END_OF_FILE_ERROR is a secure-connection error with a misleading name: it does not mean the website's file ended early. It means Firefox was setting up the encrypted TLS handshake with the site and the connection was cut off before the handshake finished - Firefox reached the end of its list of encryption options with nothing agreed. Mozilla Support reports point to the same middlemen again and again: antivirus HTTPS scanning intercepting the connection, a VPN or proxy, DNS over HTTPS conflicts, or a corrupt profile. The site itself is rarely at fault - which is why the same site usually opens in another browser.
X Firefox shows Secure Connection Failed with the code PR_END_OF_FILE_ERROR
X The same website opens in Chrome or Edge but not in Firefox
X The error started after installing or updating antivirus, VPN or Firefox itself
X It affects many HTTPS sites - or one site you must use for work
PR_END_OF_FILE_ERROR Firefox could not finish the TLS handshake. Something between Firefox and the site - most often security software scanning HTTPS, a VPN, or a proxy - is interfering with encrypted connections.
The fingerprint of this problem: secure sites fail in Firefox only, with a handshake error - the interference sits on this PC, between Firefox and the network.
A wrong system clock breaks every secure connection, and a quick comparison tells you whether this is a Firefox problem or a site problem before you change anything.
Many antivirus suites scan encrypted web traffic by inserting themselves into the TLS handshake. When that filter breaks after an update, Firefox - which checks certificates more strictly than other browsers - reports PR_END_OF_FILE_ERROR while other browsers carry on. Mozilla specifically documents this cause.
A VPN or proxy sits in the same place as the antivirus filter - between Firefox and the site - and a misbehaving one cuts handshakes exactly this way.
about:preferences > General > scroll to Network Settings > click Settings and select No proxy (unless your office network requires a proxy - then ask IT instead).Firefox's DNS over HTTPS can conflict with network or security filters on some connections, and a corrupt cached handshake state can stick to a profile.
about:preferences > Privacy & Security > scroll to DNS over HTTPS and temporarily set it to Off (or Default if it was on Max). Restart Firefox and test.about:preferences > Privacy & Security > Cookies and Site Data > Clear Data - tick Cached Web Content only, so you stay signed in.Privacy and security extensions that filter connections can break handshakes too. Firefox Troubleshoot Mode starts Firefox with extensions and custom settings disabled, without deleting anything.
about:addons until the error stops.If every filter above is clean and the error persists, the profile's own connection settings or stored data are damaged. A new profile test proves it, and Refresh is Mozilla's one-click way to rebuild the profile while keeping bookmarks and passwords.
about:profiles in the address bar, click Create a New Profile, then Launch profile in new browser and test the failing sites there.Every week: Windows problems, hidden tools and full setup guides, explained step by step.
Subscribe on YouTubeIt is a Secure Connection Failed error meaning Firefox could not complete the TLS handshake that sets up the encrypted connection - the connection was cut off before Firefox and the site agreed on encryption. Despite the name, it has nothing to do with a file on the website ending early. The usual causes are antivirus HTTPS scanning, a VPN or proxy, or a damaged Firefox profile.
Because Firefox validates secure connections independently and is stricter about interference in the handshake. Security software that scans HTTPS traffic, and some VPNs, break the handshake in a way Firefox refuses while other browsers tolerate it. That difference is actually the clue: the fault is the interfering software on your PC, not the website.
As a short test, yes - and it is the standard Mozilla-recommended check for this error. As a permanent state, prefer updating the antivirus first, because vendors fix these filters in updates. Never turn off the whole antivirus or firewall for this error; only the HTTPS or SSL scanning component is involved, and real-time file protection should stay on at all times.
Troubleshoot Mode (formerly Safe Mode) restarts Firefox with extensions disabled and some settings temporarily set aside, to test whether an add-on or setting causes a problem. It deletes nothing - restarting Firefox normally returns everything. Open it from the menu under Help > Troubleshoot Mode.
Mozilla states that Refresh Firefox keeps your bookmarks, browsing history, saved passwords, cookies and open tabs, while removing extensions and themes and resetting settings to defaults, in a fresh profile folder. It is the recommended clean finish when a profile is damaged - after a Refresh, reinstall only the extensions you need, one by one, from addons.mozilla.org.