# Troubleshoot TLS and SSL errors

Check system time, certificate chain, CONNECT tunnel, SNI, client library, and target host limitations.

HTTPS requests usually first establish a CONNECT tunnel through the proxy, followed by a TLS handshake between the client and the destination host. Certificate errors do not necessarily come from proxy authentication.

## Basic inspection

- Make sure the device system time and time zone are correct.
- Update the system trust library with the client running.
- Check that the target domain name, SNI, and certificate host name match.

## Proxy Configuration

- Use the HTTP proxy for HTTPS CONNECT instead of mismapping it to the target TLS server.
- Do not install root certificates from unknown sources.
- Confirm that the client does not have enterprise intermediate agents enabled to cause double-blocking.

## Comparison

- Access public HTTPS pages that are known to be normal with the same configuration.
- Record the CONNECT response and TLS error phase.
- Compare the results of different client libraries.

## Processing

- Access is stopped when the certificate expires or the host name does not match.
- Do not turn off certificate validation as a long-term solution.
