What to Check First for HTTPS Errors: Error Codes, Domains, and Scope

Stop at the warning page. Note the full hostname in the address bar and the error code, then check whether the problem affects one site or several unrelated sites. A warning that appears just after enabling Clash may mean the connection path changed; it does not mean Clash replaced the site's certificate. With a standard HTTP proxy, the browser still verifies the destination site's TLS certificate when it establishes a tunnel using CONNECT.

Common Chrome Certificate Errors and What to Check First
Error code What the browser detected What to check first
NET::ERR_CERT_DATE_INVALID A certificate in the chain is outside its validity period, or the device clock is incorrect Check the system date and time, then the certificate's validity period
NET::ERR_CERT_COMMON_NAME_INVALID The certificate does not cover the hostname in the address bar The certificate's Subject Alternative Names (SANs), captive portal redirects, DNS, and the outbound connection path
NET::ERR_CERT_AUTHORITY_INVALID The browser cannot verify the received certificate chain back to a trusted root The certificate issuer, the site's certificate chain, and HTTPS inspection on your device or network

If you see ERR_PROXY_CONNECTION_FAILED, first check whether the client is running and whether the browser is configured to use the correct proxy port. This indicates a failed proxy connection, not a website certificate validation error. If the browser says you need to sign in to the network, use your operating system's network sign-in flow for the public Wi-Fi portal. Don't enter credentials on a site blocked by a certificate warning.

System Time and Certificate Validity: Check the Device Clock First

If several sites report date-related errors, start by syncing the system clock. On Windows 11, go to Settings → Time & language → Date & time, turn on Set time automatically, then select Sync now under Additional settings. On macOS, go to System Settings → General → Date & Time and turn on Set time and date automatically. An incorrect time zone doesn't necessarily mean the clock itself is wrong. Check the device's actual current time; changing the time zone to Beijing time isn't a fix by itself.

If the browser lets you view certificate details without proceeding to the site, check the Not Before and Not After dates. For example, a certificate valid from October 20, 2026, may appear not yet valid if the device clock is still on October 19, 2026. After syncing the clock, restart the browser and test again. If the same domain presents the same expired certificate on two devices with correct clocks over two independent networks, contact the site operator. If it happens only on one proxy path, check whether that path is reaching a different server.

DNS Issues and Routing Rules: Find Out Which Connection Path the Browser Uses

If the certificate's SANs don't include the hostname in the address bar, don't rely on the certificate's title alone. For example, visiting www.example.com but receiving a certificate that covers only example.com is a hostname mismatch. Site configuration, captive portals, or incorrect DNS responses can cause this. DNS doesn't issue certificates, but an incorrect response can send the connection to another server, which may present an unrelated certificate.

Check the Matched Rule and DNS Path First

  1. Reproduce the error once in the client's Connections or Logs page. Find the entry by time and destination domain, then note the matched rule, proxy group, and actual outbound node. In rule mode, system proxy settings can be enabled while a DIRECT rule still sends traffic directly.
  2. Note whether you tested with the system proxy or TUN. The system proxy applies only to apps that respect that setting; TUN routes traffic that matches its routing rules through a virtual network interface. Enabling TUN in the client doesn't automatically mean the core handles all DNS queries. With mihomo, check dns.enable, dns.enhanced-mode, and tun.dns-hijack in the active configuration, and note the browser's Secure DNS setting. Standard DNS hijacking rules don't necessarily capture the browser's encrypted DNS traffic.
  3. Don't treat the output of nslookup as the definitive result for the browser or proxy's outbound DNS lookup. It shows the response to that command's query to the DNS server it used. The browser may use Secure DNS, and the proxy path may resolve the destination hostname elsewhere. Different networks commonly return different CDN addresses. A stronger clue is that the same hostname repeatedly gets a mismatched certificate over one path, but works over another available path.

If mihomo's fake-ip is enabled and fake-ip-range is set to 198.18.0.1/16, an address such as 198.18.0.2 may be an address mapped by the core—not the destination server's public IP, and not proof of DNS poisoning. Check that the core providing the mapping is also the one handling the connection. If the issue started after switching modes or reloading the configuration, restore the previous mode, restart the browser, and test again to avoid mixing old connections or cached results into the comparison.

HTTPS Inspection and Interception: Check the Certificate Issuer

If several unrelated sites show an untrusted issuer warning, check whether their certificates share the same unfamiliar issuer. Corporate gateways, security software, or local debugging proxies may terminate TLS on the client side and issue replacement certificates for destination domains. The hostname can still match, but the browser will warn if it can't verify the issuing chain. On a company-managed device, ask your administrator to confirm the HTTPS inspection policy, certificate source, and managed trust configuration through official channels.

  • Error in only one browser: First compare that browser's proxy settings, enterprise policies, extensions, and certificate trust settings. Other browsers working doesn't mean you can ignore the warning; they may use different proxy routes or trust policies.
  • Multiple devices affected on the same Wi-Fi: If permitted, compare with a mobile hotspot and make sure the proxy setting and outbound node haven't changed too. If the issue follows the network, note any captive portal or gateway details and report them to the network administrator.
  • Error on only one site: Note the hostname, issuer, and certificate chain details shown by the browser. A server may also be missing an intermediate certificate, causing a trust error. Ask the site operator to check its certificate chain; don't add the site's certificate to your device's trusted root store.

Troubleshoot Node Issues: Keep the Rules Fixed and Change One Outbound at a Time

Compare three tests using the same device, browser, and full URL: the current node, a backup node in the same proxy group, and a working direct connection. After switching nodes, close the old tab and start a new connection, then confirm the actual node on the Connections page. If the proxy group selects a route automatically, make sure it hasn't switched between tests. If direct access isn't available, record it as “unable to compare”; don't treat a timeout as a certificate issue that has gone away.

Test the Local HTTP Proxy Separately

If the active configuration sets mixed-port to 7890, use the command below to explicitly connect through the local HTTP proxy. Use the port from the active configuration; in Windows PowerShell, use curl.exe. The example uses a public test domain. To troubleshoot a specific public site, replace it with the affected HTTPS hostname, and don't include login parameters or tokens.

curl --verbose --head --max-time 15 --proxy http://127.0.0.1:7890 https://example.com/

200 Connection established only means the CONNECT tunnel was established; it doesn't mean the website's certificate passed verification. Check the subsequent TLS output and the final server response too. If TLS succeeds but the server returns 405, it doesn't accept HEAD requests—that's not a certificate error. If curl and the browser behave differently, first compare their proxy paths, DNS handling, and trust sources. This command tests only the explicit proxy path; it doesn't replace checking the browser's TUN path.

If the warning occurs consistently on only one node and the same domain works after switching nodes, disable the affected node for now. This narrows down the cause but doesn't prove that the node is decrypting HTTPS; its resolver, outbound network, or the site edge server it reaches may also differ. When reporting the issue, include the operating system and client versions, test time, destination domain, error code, certificate issuer, matched rule, and outbound comparison results. Remove subscription URLs, access tokens, and unrelated connection logs before sharing.