Browser Certificate Errors When Using a Proxy: HTTPS Causes and Troubleshooting

Learn how to tell clock issues, TLS interception, proxy-node problems, and website certificate errors apart—and troubleshoot by browser error code.

Note the error code first, then check whether the proxy is involved

When you open an HTTPS site, your browser checks that the server certificate covers the hostname in the address bar, is within its validity period, and chains to a trusted root certificate. Normal forwarding through Clash or mihomo changes the connection path, but does not let either one issue website certificates. So seeing a warning only after enabling a proxy is a clue to investigate—not proof that a node is intercepting traffic. The new route may simply have sent the request to a site endpoint with a certificate misconfiguration.

  1. Note the full hostname in the address bar, such as login.example.com—not just the site’s brand name. A login page may use a different subdomain from the homepage.
  2. Write down the browser’s error code. Edge and Chrome usually show codes beginning with NET::ERR_CERT_ on the privacy warning page; Firefox uses different names. If the warning page lets you view the certificate, note its issuer, validity dates, and Subject Alternative Names (SANs). You can compare these details without proceeding to the site.
  3. Check whether this is a website certificate warning or whether the connection failed before it was established. For example, ERR_PROXY_CONNECTION_FAILED indicates a proxy connection failure; it does not tell you whether the website certificate is valid.

Use browser error codes to check the time, hostname, and certificate chain

Common certificate errors in Edge and Chrome
Error codeWhat the browser foundCheck first
NET::ERR_CERT_DATE_INVALIDThe certificate has expired or is not yet validThe current Windows time and the certificate chain’s validity dates
NET::ERR_CERT_COMMON_NAME_INVALIDThe hostname doesn’t match the certificateThe address-bar hostname, certificate SANs, and whether the request reached the wrong endpoint
NET::ERR_CERT_AUTHORITY_INVALIDThe certificate chain cannot be verified to a trusted rootThe certificate issuer, server’s intermediate certificates, and HTTPS inspection policies on managed devices

Date error: sync the Windows clock first

Open Windows 11 Settings → Time & language → Date & time. Check the date, time, and time zone. Turn on Set time automatically, then select Sync now under Additional settings. If your organization manages the device and sync options are unavailable, contact your administrator. A time zone that is an hour off doesn’t necessarily mean the system clock is an hour wrong: certificate checks use the actual time, not the local time shown on screen.

After syncing, reopen the same URL. If several sites start working again, the issue was likely your device’s clock. If only one site still reports an error—and another device with the correct time receives the same expired certificate—contact the site administrator. If the site certificate is valid, check whether the error comes from an intermediate certificate in the chain.

Hostname mismatch: compare the address bar with the certificate SANs

For example, if the address bar shows login.example.com but the certificate lists only www.example.com, they don’t match. The wildcard *.example.com covers login.example.com, but not example.com or id.login.example.com. Confirm the URL using a trusted bookmark or official entry point, then check which hostnames the certificate covers. Don’t switch to an unfamiliar domain just to match the certificate, or change the browser address to an IP you saw in a log.

Untrusted issuer: check who issued the certificate

Common causes include a website failing to send a required intermediate certificate, an internal site using a private certificate authority, or an organization’s gateway or endpoint security software inspecting HTTPS traffic. In the latter case, the connection’s TLS session with the browser is terminated, and the browser receives a site certificate issued by the organization’s or product’s certificate authority. If several unrelated sites suddenly show the same unfamiliar issuer, record the certificate details first. On a managed device, ask your administrator to confirm whether the issuer is part of an approved policy. Don’t import a root certificate or disable security software just to dismiss the warning.

Check rule-based routing, the system proxy, and TUN separately

The system proxy and TUN mode in a Clash client are two different traffic entry points. Turning off the system proxy may not stop browser traffic from reaching the core if TUN is still active. Conversely, DIRECT in a log usually means the core chose a direct outbound route for that connection; it doesn’t mean the browser bypassed the local core. Identify which layer is involved before comparing results, or you may test the same route twice.

  1. Record a baseline. In the original network and browser, note the error code, current proxy group, and node. If the client’s connections page or logs show the request, also note the hostname’s matched rule, outbound route, and connection time. The node selected in the interface may not have handled that request.
  2. Change only one node. Keep the browser, network, URL, and rule mode the same; switch to another node in the same proxy group. Close the relevant tabs and fully exit the browser before reopening it to reduce the chance of reusing an existing connection. Confirm that the request actually went through the group you changed.
  3. Test without Clash. On a network where direct access is allowed, temporarily turn off the client’s system proxy and TUN. In Windows 11, open Settings → Network & Internet → Proxy and check for a manual proxy or setup script. Also make sure the browser isn’t using its own proxy settings or a proxy extension. Don’t change settings applied by your organization. If direct access is unavailable or not permitted, record the result as “not tested”—not as a successful certificate check.
  4. Restore your settings. Once you’ve recorded the results, restore any proxy settings you changed yourself. If you need to test another network, use a trusted network if possible. Keep the browser and URL the same, changing only one condition at a time.

Errors on one node only: distinguish interception from route differences

If node A reports a hostname mismatch but node B and available direct access pass validation, stop using A for now. Compare the certificates actually received in the warnings. A SAN for a different site, an unfamiliar private issuer, or similar unusual certificates across unrelated hostnames on node A are reasons to treat that route as potentially intercepted. A single hostname mismatch, however, isn’t enough to conclude that a node is hijacking traffic.

  • Only one site is affected: Different egress routes may resolve to different DNS results or CDN edge servers. An edge server with a missing certificate configuration, a certificate for another hostname, or an old certificate during rotation can cause an error on just one route. Different certificates on two routes aren’t necessarily suspicious; what matters is whether the certificate covers the target hostname and passes trust validation.
  • Several sites show the same unfamiliar issuer: If this also happens with direct access, check for HTTPS inspection by your organization’s gateway, endpoint security software, or current network. If it happens only on one node, report the route to the service provider for investigation. Don’t install a root certificate to dismiss the warning.
  • The error appeared right after joining hotel or guest Wi-Fi: Check whether Windows says “Action needed” or asks you to sign in to the network. Some captive portals block connections until you log in. Use the sign-in prompt from Windows or the venue’s published login page; don’t enter your account details for the original site on an intercepted HTTPS page.

When reporting the issue to the service operator, include the time and time zone, browser error code, target hostname, certificate issuer, and the results for nodes A and B and direct access. Include only the necessary connection-log entries. Don’t share your full subscription URL, access tokens, or page links containing login parameters.

When to contact the website, browser, or network administrator

  • The same hostname fails on different devices and networks: This is especially telling if both devices receive the same expired certificate or a certificate that doesn’t cover the hostname. Contact the site operator first. A proxy client can’t fix the site’s certificate configuration.
  • One Windows 11 device gets errors on several sites: Correct the system time first, then check the update status under Settings → Windows Update. If other devices on the same network work, focus on this device’s browser policies or endpoint security software. Don’t download root certificates from forums.
  • Only one browser reports an error: Check its proxy extensions, organization policies, and certificate trust settings. Another browser opening the same URL only shows that the two browsers may use different routes or trust settings; it doesn’t prove the warning is safe to ignore.

The quickest order is to identify the error code, check the clock or certificate details, then compare routes while changing one variable at a time. Once you know which layer is responsible, decide whether to try another route, contact the site operator, or ask your device administrator to review HTTPS inspection policies.

Download Clash