· Troubleshooting · About 7 min read

Clash HTTPS Certificate Errors: How to Troubleshoot Browser Warnings

Troubleshoot “Your connection is not private” warnings by checking your device clock, DNS, proxy nodes, and HTTPS inspection. Learn what’s outside the client’s control.

Check the error code, then compare direct and proxy connections

Don’t proceed to the page showing the warning. Note the browser’s error code, then test the same full URL in the same browser both directly and through the proxy. Browsers use TLS (the protocol that encrypts connections and verifies server identity) to check HTTPS certificates. Clash’s standard forwarding does not replace website certificates. However, switching proxies can change DNS resolution and your network exit, potentially connecting the browser to a different server. That’s why an error that appears only with the proxy enabled is worth investigating—but doesn’t by itself point to a client issue.

Common certificate error codes in Chrome and Edge
Error codeWhat the browser detectedCheck first
NET::ERR_CERT_DATE_INVALIDThe certificate is not yet valid or has expiredYour device’s clock, then the website certificate’s validity period
NET::ERR_CERT_COMMON_NAME_INVALIDThe certificate doesn’t cover the hostname in the address barURL spelling, certificate coverage, DNS resolution, and network path
NET::ERR_CERT_AUTHORITY_INVALIDThe certificate chain doesn’t lead to a trusted certificate authorityThe website’s certificate chain, corporate HTTPS inspection, and system trust settings
  1. Record the current details. Note the hostname, error code, time, and selected node. If the error page lets you view the certificate, also record its issuer, validity period, and listed hostnames. Don’t click “Continue.”
  2. Establish a direct-connection baseline. On a personal device where you’re allowed to change network settings, turn off the system proxy and TUN. TUN mode routes traffic through a virtual network adapter, so disabling only the system proxy may not restore a direct connection. If the browser has its own proxy settings, or the device still uses a VPN or router-level proxy, check whether those are still handling the connection. On a managed device, ask your administrator for help.
  3. Restore the original proxy mode and test again. Change only one setting at a time, keep the URL and network the same, and restart the browser if needed to rule out stale connections. If the direct connection only times out, it isn’t a successful comparison—and doesn’t prove the proxy replaced the certificate.

Date error: check your device clock versus an expired website certificate

If several websites that normally work show date-related errors at the same time, check your device clock first. In Windows 11, open Settings → Time & language → Date & time, check your time zone, turn on Set time automatically, then select Sync now. On macOS, open System Settings → General → Date & Time and check the settings for automatic date and time and automatic time zone. If syncing fails, first make sure the device can reach a trusted network. On managed devices, don’t change time policies yourself.

If the clock is correct but only one website still shows an error, check the certificate’s start and expiration dates in the browser, if available. Then try the same hostname from another device with the correct time and a different trusted network. If both connections receive an expired certificate, contact the site administrator to check renewal and deployment; reinstalling Clash won’t update a website certificate. If only one path returns an old certificate, record the validity dates seen on both paths so the site administrator can check for a server that missed the certificate update.

Hostname mismatch: check the URL, DNS, and matched rules

DNS resolves domain names to the addresses needed to connect. A bad lookup, stale cache, or altered response can send a request to the wrong server. If that server returns a certificate that covers different hostnames, the browser will block the connection. First, check the address bar: the root domain, its www version, and other subdomains may need different certificate coverage. The “Subject Alternative Names” (SAN) field in the certificate lists the hostnames it covers. Don’t use the site’s IP address as a test; a certificate issued for a hostname usually won’t cover its IP address.

Compare connection paths, not just two IP addresses

  • If the client has a Connections or Logs view, revisit the site and find the entry for its hostname and time. Check the matched rule and actual outbound route. In rule mode, the configuration selects whether traffic goes direct or through a proxy. If you see DIRECT, that only means the core chose a direct route for this connection; it doesn’t prove the traffic bypassed TUN or the core’s DNS handling entirely.
  • If the client uses Mihomo’s fake-ip mode, the core may first return a synthetic address and then route traffic by mapping the hostname when a connection is made. For example, an address in the 198.18.0.0/16 range doesn’t mean the website is hosted there. Browser Secure DNS, core DNS, and proxy-side DNS can also use different paths, so a lookup on the system may not match the address the browser ultimately connects to.
  • Getting different addresses on different networks isn’t enough to prove DNS interference. A content delivery network (CDN) may return different server addresses by region. A more useful finding is that the same hostname consistently returns a matching certificate on one path and a mismatched certificate on another—and that you’ve recorded the outbound routes and error codes for both.

If you need to adjust DNS settings, save the original configuration and change only one DNS option at a time. Retest before deciding whether to keep the change. For field explanations, see the Advanced guide to DNS settings. For a company intranet hostname, ask your administrator which corporate DNS route to use; don’t send internal names to a public DNS service.

Only one node fails: distinguish an exit issue from HTTPS interception

If a direct connection works but one proxy node fails, keep rule mode, the URL, and network unchanged. Switch to another trusted node, then check the connection log to confirm the request actually used it. Automatic proxy-group selection or a direct rule can make the selected item differ from the actual outbound route. Without confirming the route, you can’t attribute the result to a particular node.

If the issue consistently follows the same node, stop using that route for now. Incorrect DNS at the proxy exit, network redirection, or interception could cause certificate errors, but the warning alone can’t establish who altered the response. Report the time, target hostname, node name, error code, and unexpected certificate issuer to your service provider. Don’t include private subscription links with credentials or full connection logs.

The same unfamiliar issuer appears on multiple websites

If the same unfamiliar issuer appears on several unrelated websites, check for recently added security software, traffic inspection tools, corporate gateways, or device management settings. Some tools inspect HTTPS by creating separate encrypted connections between the browser and the website, then presenting the browser with a certificate issued by a local or corporate certificate authority. This is a form of man-in-the-middle inspection, unlike Clash’s standard traffic forwarding. If the browser doesn’t trust that authority, it may report an invalid issuer.

On a work or school device, give the issuer name and error code to your administrator to check. Don’t import or remove certificates yourself, or disable security policies set by your organization. On a personal device, if the issue occurs only on public Wi-Fi, disconnect and retest using a trusted phone hotspot. If the site works on another network, focus your investigation on the public network’s sign-in process or network-side interception.

Choose your next step based on where the error occurs

  • One website fails on multiple devices and trusted networks: Contact the site administrator first. Provide the full hostname and error code, and ask them to check certificate coverage, validity, or the certificate chain.
  • One device shows errors on multiple websites, both direct and through the proxy: Check the device clock, local trust settings, and security software first. If only one browser on that device is affected, check its proxy settings and management policies.
  • The error occurs only with TUN enabled, but not with the system proxy alone: Compare the rules, outbound routes, and DNS paths used for each test. The two modes handle different traffic, so this result doesn’t mean the virtual network adapter is modifying certificates.
  • The error occurs only through one proxy exit: Keep using a connection that passes normal certificate checks, stop using the failing exit, and report your comparison results. There’s no need to change certificate trust settings for the entire device because of a single node.

Before finishing, restore the settings you changed, or keep only changes you’ve verified work. Confirm that the original URL opens normally without adding a certificate exception before signing in or paying. If you still need help, share a comparison for the same URL across two paths, including each error code and certificate issuer. That’s more useful for troubleshooting than simply saying, “It fails when I turn on the proxy.”

Download Clash