Note the error code, then compare with the proxy off

If your browser shows a certificate warning after you enable Clash, it means the browser couldn't verify the certificate presented for the connection. The timing alone doesn't prove that Clash issued or replaced the certificate. First, note the full hostname in the address bar and the browser's error code. If you can view the certificate details, also record the issuer, validity dates, and Subject Alternative Names (SANs). For example, login.example.com and example.com are different certificate matching targets, even if both URLs belong to the same site.

Common Chrome errorsCheck first
NET::ERR_CERT_DATE_INVALIDThe device's current time and the certificate's validity dates
NET::ERR_CERT_AUTHORITY_INVALIDThe system or browser trust store, missing certificates in the chain, and HTTPS inspection
NET::ERR_CERT_COMMON_NAME_INVALIDWhether the certificate SAN covers the hostname, and whether DNS, rules, and routing send the connection to the expected service
  1. Use the same device and browser to visit the exact same HTTPS URL. Keep the current configuration as your baseline; don't start by changing nodes, DNS, or rule mode.
  2. On a network where direct connections are allowed, turn off the client's system proxy and TUN, make sure no browser extension is setting another proxy, then reload the page. Switching Clash to direct mode doesn't exit the client or disable its DNS handling.
  3. If the error persists with the proxy off, check again on another trusted network or device. Note whether the error code and issuer are the same. If turning the proxy off only causes a timeout, the comparison is inconclusive and doesn't show that the certificate issue is fixed.

Invalid date: Check your system clock and certificate validity

If multiple unrelated sites show date errors, check the device clock first, especially after waking from sleep, starting from a virtual machine snapshot, or being offline for an extended period. In Windows 11 24H2, for example, go to Settings → Time & language → Date & time, turn on Set time automatically, check the time zone, then select Sync now under Additional settings. A displayed time zone mismatch doesn't necessarily mean the system clock is wrong; what matters is whether the device's current time is accurate.

After syncing the clock, reopen the original URL and compare the current time with the certificate's start and expiration dates. If only one site has the error and the same expired certificate appears on a trusted network and another device, report it to the site administrator. If the certificate validity dates differ between direct and proxied connections, record the issuer and dates for both. Different endpoints may serve different certificates, so the discrepancy can't be explained by the client's clock alone.

Untrusted issuer: Check HTTPS inspection and the certificate chain

When a browser accesses an HTTPS site through a standard HTTP proxy, it typically sends a CONNECT request, then performs a TLS handshake with the site through the resulting tunnel. Clash or mihomo system proxy settings, rule-based routing, and TUN interception don't by themselves require the browser to trust a new root certificate. Even when domain sniffing is enabled so the core can read visible TLS handshake information for rule matching, that doesn't mean it decrypts webpage content.

  • The same unexpected issuer appears for multiple unrelated domains: Check your corporate network gateway, HTTPS inspection in security software, or any packet-capture debugging proxy. For managed certificates on company devices, ask an administrator to verify their source, deployment scope, and applicable policy. Don't install a root certificate based on an error page or a message in a group chat.
  • Only one site shows a trust error: Check that the connection isn't reaching the wrong service, and consider whether the server is missing an intermediate certificate in its chain. Some browsers may have an intermediate certificate cached, which can lead to different results. Ask the site administrator to check the relevant endpoint configuration. Don't try to fix the issue by importing certificates from unknown sources.
  • The issue occurs only on public Wi-Fi: Check whether the system is prompting you to sign in to the network. A network that hasn't been authenticated may redirect the connection to a sign-in page, causing HTTPS certificate validation to fail. Use the confirmed sign-in page provided by the system, or switch to a trusted network. Don't continue from the original site's certificate warning page.

Hostname mismatch: Tell Fake-IP, DNS, and routing rules apart

Fake-IP is a DNS handling mode used by cores such as mihomo: it returns a synthetic address to the client, then uses a mapping to recover the hostname when the traffic reaches the core. If the configuration uses 198.18.0.1/16 as the fake-ip-range, seeing a result such as 198.18.0.2 can be completely normal. The browser still verifies the certificate against the hostname in the URL. A synthetic address alone isn't evidence of a certificate problem, and you shouldn't replace the hostname in the address bar with that address for testing.

Compare DNS resolution paths and matched rules

  1. Check the client's connection log for the destination hostname, matched rule, and outbound policy. Rules are evaluated in order; if an earlier rule sends the request through an unexpected outbound, check its scope before making a targeted change. For company intranet sites, confirm that traffic still uses the organization's designated outbound and internal DNS.
  2. Check whether DNS resolution is handled by the browser, the system, or the core. In Chrome, go to Settings → Privacy and security → Security to check Use secure DNS. On managed devices, your organization may control this option. If the browser uses its own resolver, the system DNS results shown by a command-line lookup may not match the path the browser actually uses.
  3. If the issue occurs on only a few domains after you turn off TUN, check whether the system or app has cached a synthetic address. On Windows, run ipconfig /flushdns to clear the system DNS cache, then fully quit and reopen the browser. This command doesn't clear separate caches used by other apps. If a request gets a synthetic address but never reaches the core that maintains its mapping, the usual result is a connection failure—not proof that a certificate was replaced.

If the certificate SAN really points to another site, compare the DNS results and certificate on a trusted network. DNS poisoning, an incorrect hosts entry, or inconsistent internal DNS zones can send a request to the wrong service. However, it's normal for a CDN to return different real IPs based on the route. Base your assessment on the certificate's hostnames and the connection path, not on an IP address difference alone.

Fails only with the proxy on: Test the local HTTP proxy separately

If the connection works directly but the browser shows an error with the proxy on, you can test an explicit proxy separately with TUN off, in an environment where direct connections are allowed. Here's an example for Windows PowerShell: assume the client's mixed-port or HTTP proxy port is 7890 and it listens on the local loopback address. Use the port in your actual settings; don't enter the controller port or a SOCKS-only port. To reproduce a specific issue, replace the URL in both commands with the same affected URL that doesn't require a login.

curl.exe -v --noproxy "*" https://example.com/
curl.exe -v --noproxy "" --proxy http://127.0.0.1:7890 https://example.com/
  • The local port connection fails, or CONNECT doesn't return a success status: Check that the client is listening on the correct port, the proxy protocol is set correctly, and the proxy chain is working. This doesn't yet tell you whether the target site's certificate validates.
  • The certificate error appears only after CONNECT succeeds: Record the TLS error and the outbound actually selected by the client. If it occurs with only one outbound, keep the rules and other settings unchanged, switch to another known-working outbound in the same group, and test again. This can narrow down the cause, but it can't identify the component responsible for the interception on its own.
  • Both commands succeed, but the browser still fails: Check the browser's proxy extensions, Secure DNS, enterprise policies, and certificate trust settings. The command line and browser may use different DNS paths, connection protocols, or trust stores. Success in the command line doesn't mean the browser's warning can be ignored.

Once you've made a change, reopen the original HTTPS URL in the same browser and confirm that the warning is gone and the certificate covers the hostname. When reporting the issue, include the time it occurred, the actual client and core versions, whether the system proxy and TUN were on, the matched policy, and a redacted error code. This gives the site or network administrator a way to reproduce the same connection path without having to search through your entire subscription configuration.