Start with the error code, then inspect the certificate the browser received
Clash's standard system proxy and mihomo TUN mode accept connections, match rules, and forward traffic. They do not reissue website certificates to relay web traffic. A browser warning means it cannot verify the certificate received for the current connection. If the result changes when you enable a proxy, compare the connection route and certificate in each case—but timing alone does not prove the client issued a certificate.
On the Chrome or Edge warning page, expand “Advanced” and note the error code; do not choose to proceed. If certificate details are available, note the issuer, validity period, and Subject Alternative Names (SAN), then check the full hostname in the address bar. Be sure to distinguish the main site from login subdomains and redirect destinations: they may use certificates from different servers.
| Chrome / Edge error code | What failed validation | What to check first |
|---|---|---|
NET::ERR_CERT_DATE_INVALID |
Certificate expired or not yet valid | System clock and certificate validity period |
NET::ERR_CERT_AUTHORITY_INVALID |
Certificate chain does not lead to a trusted root | Issuer, server intermediate certificates, and device trust settings |
NET::ERR_CERT_COMMON_NAME_INVALID |
Certificate does not cover the current hostname | Hostname in the address bar, certificate SAN, DNS, and actual route |
Compare the same URL with system proxy and TUN enabled or disabled
Test on the same device, browser, and network, using the exact same URL. Change only one setting per test. If needed, fully quit and reopen the browser to reduce the effect of reused connections. If the site cannot connect at all when interception is disabled, record that there is “no direct-connection baseline”—do not treat it as a clean certificate result.
- Establish a direct-connection baseline. In the Clash client, turn off both “System Proxy” and “TUN Mode.” Then check for browser proxy extensions and any other VPN connected on the device. The client’s “Direct” mode only changes how the core handles connections; it does not disable the system proxy or TUN.
- Enable system proxy only. Leave TUN off. Check the HTTP or mixed port in the client settings. For example, if the active configuration uses
mixed-port: 7890, the manually configured HTTP proxy address on the same device is usually127.0.0.1:7890. If the settings page shows a different port, use the port that is actually listening. - Enable TUN only. Turn off the system proxy, then enable TUN by itself and test again. If the error occurs only in this test, focus on DNS, routing, and the final egress path after TUN takes over. Do not start by changing the system certificate store.
- Record the matching connection. In the client’s “Connections” page, search for the site hostname and note the matched rule, policy group, and actual outbound. A connection may disappear quickly after certificate validation fails, so check while reloading the page or look for clues in “Logs” around the time of the error. Client logs show how connections are routed; use the browser’s certificate details to determine which certificate was received.
If both system proxy and TUN produce the error, switch just one node within the same policy group. If only the original node fails and the issuer or SAN of the certificate received by the browser changes with the node, focus on the egress route, DNS resolution at the egress, or the site's edge servers. A changed certificate does not by itself mean traffic was intercepted; different site edge servers may use different valid certificates.
How to Fix Clock Errors and Untrusted Issuers
Clock errors: sync your device, then check certificate validity
On Windows 11, open “Settings” → “Time & language” → “Date & time,” check “Set time automatically,” then select “Sync now” under “Additional settings.” On macOS, open “System Settings” → “General” → “Date & Time” and check that automatic date and time are enabled. Try the site again after syncing and confirm the current time falls within the certificate’s validity period. Changing the time zone alone may not fix an inaccurate system clock.
If the system clock is correct and another device on a normal direct connection receives the same expired certificate for the same domain, contact the site administrator. If only one egress returns an expired certificate, note the egress, certificate validity period, and time of access so the provider can check whether the relevant edge node’s certificate was renewed.
Untrusted certificates: distinguish missing intermediates from managed-device inspection
If several independent devices show an untrusted issuer for the same site, the server may not be sending the full intermediate certificate chain. Some browsers may have cached the missing intermediate certificate and still open the site, so “it works in another browser” does not rule out a deployment issue. If only one device reports the error, check for system and browser updates, then compare its certificate chain with one from a working device on the same network.
If multiple unrelated sites show an issuer belonging to a corporate gateway or security product, check whether the device is managed by your organization and whether HTTPS inspection is enabled. Ask your administrator to confirm the inspection scope and the official method for installing the root certificate. On a personal device, stop browsing if you receive a certificate from an unfamiliar issuer and investigate the network and installed software. Do not silence the warning by adding an unknown certificate to your trusted list.
Hostname mismatch: check DNS, routing rules, and captive portals
Compare the hostname in the address bar with the certificate SAN. For example, *.example.com can cover login.example.com, but not example.com or portal.login.example.com. Do not replace the domain with an IP address to test the connection: that changes the name the certificate must validate and may create a different error.
Errors only in rule mode or TUN
First confirm which rule actually matched. If a site requires access to an organization's intranet but the connection is routed through a public policy group, check that the domain rule and DNS resolution point to the same intended network. Clash evaluates rules in order, so put more specific domain rules before broad rules that might match first. Subscription updates can overwrite manual edits, so confirm which configuration is active before testing again.
If the mihomo configuration enables dns.enhanced-mode: fake-ip, seeing a fake IP does not by itself mean DNS resolution failed: the core uses it to map domains to connections. Check the browser’s Secure DNS settings, TUN’s dns-hijack, and DNS resolution at the proxy egress to determine which component handles the query. Intercepting regular DNS queries does not mean the browser’s DNS-over-HTTPS queries are intercepted. Compare the matched rules and egress across both tests before changing DNS. Changing the DNS mode, upstream, and node all at once can hide the actual cause.
Errors only on hotel, airport, or guest Wi-Fi
Before you sign in, a public network’s captive portal may intercept connections and present a gateway certificate when the browser tries to reach the original site. Use the system’s “Sign in to network” notification or the access point provided by the venue, then reopen the site after authentication. If the same URL works over a mobile hotspot, investigate the guest network first. Never enter account details on a certificate warning page.
Tell browser warnings, subscription update failures, and node handshake errors apart
- Warning while opening a website in the browser: The browser is validating the site certificate received on its current connection. Compare the address bar, certificate SAN, and actual outbound route.
- Certificate error while updating a subscription in the settings: The certificate belongs to the subscription URL or a redirect destination. Check the system clock and the URL provided by the service. Do not post a full subscription link containing a token in public logs, and do not switch to plain HTTP.
- TLS or
x509error in core logs while connecting to a node: The failure may be in the TLS handshake between the core and the node. Check that the server address, port, and TLS server name match the details provided by the service. Do not useskip-cert-verifyas a substitute for fixing the problem.
When reporting an issue, include the hostname, date and time with time zone, error code, certificate issuer, and the proxy mode and actual egress used in each test. Remove subscription links, node credentials, and personal browsing records from logs before sending them. This helps determine whether the site administrator needs to fix certificate deployment or a network administrator or node provider needs to investigate the egress route.