Software⏱️ 3 min read📅 2026-06-19

How to Fix: HSTS error due to substituted certificate

Firefox HSTS error due to substituted certificate

Quick Answer: Check if the website's certificate is issued by a trusted Certificate Authority (CA) and verify the domain name matches the website's URL.

The HSTS error due to substituted certificate is a frustrating issue that affects users trying to access certain websites. Firefox displays a 'Did Not Connect: Potential Security Issue' message, indicating that the website requires a secure connection but cannot be reached because of an invalid certificate.

This error can be particularly annoying for frequent website visitors who are unable to access their preferred site due to a technical issue beyond their control.

🔍 Why This Happens

  • The primary reason for this error is that Firefox detects a substituted certificate on the website, which is not valid for the intended domain. This substitution can occur when a website uses an intermediate certificate authority (CA) or a different domain name in its SSL/TLS certificates.
  • Another possible cause could be a misconfiguration of DNS settings or a problem with the workstation's network connectivity.

🔧 Proven Troubleshooting Steps

Reset Firefox's Certificate Settings

  1. Step 1: Open Firefox and go to Options > Advanced > Network > Settings.
  2. Step 2: Under 'Certificate Settings', select 'Use system-provided certificates' instead of 'Ask for master password'.
  3. Step 3: Click 'OK' to save the changes.

Check DNS Settings and Network Connectivity

  1. Step 1: Verify that your DNS settings are correct by checking your network configuration or consulting with your internet service provider.
  2. Step 2: Ensure that your workstation's network connectivity is stable by restarting your router, modem, or checking for any software-related issues.

🎯 Final Words

To resolve the HSTS error due to substituted certificate issue, try resetting Firefox's Certificate Settings and verifying DNS settings and network connectivity. If the problem persists, consider reaching out to the website's administrator about the issue.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions