macOS · The Server Certificate Is Untrusted

macOS Error Code -1202

The server certificate is not trusted by macOS.

fatalLast verified 2026-11-08Apple Developer: NSURLErrorDomain
Quick answer

The server certificate is not trusted by macOS.

Code-1202
ProductmacOS
Company / originApple · United States
CategoryOperating Systems
Platform / versionsmacOS 12 and later · NSURLErrorDomain
Severityfatal
Official sourceApple Developer: NSURLErrorDomain ↗
Last verified2026-11-08

What does macOS error -1202 mean?

NSURLErrorServerCertificateUntrusted (-1202) means the certificate chain is valid enough to parse but not trusted by the system. It is common with self-signed certificates, private CAs, and missing intermediates.

Common causes

  • The certificate is self-signed or issued by an untrusted CA.
  • The intermediate certificate is missing from the server chain.
  • The system trust store does not include the private root CA.

How to fix it

  1. Step 1

    Install a publicly trusted certificate for public services.

  2. Step 2

    Serve the complete intermediate chain.

  3. Step 3

    Add a private CA to the keychain only through an approved management process.

When to escalate

Before you escalate: If a macOS URL error persists across networks and after restarting the app, capture the code, the URL, the time, and the Console log entries for the app, then contact the app developer or Apple Support with the details.

Related codes

CodeNameWhat it means
-1200Secure Connection FailedThe TLS handshake failed.
-1001The Request Timed OutThe request did not complete within the allowed time.
-1003Cannot Find HostThe hostname could not be resolved.
-1004Cannot Connect to HostThe host was found, but the connection could not be established.
-1005The Network Connection Was LostThe connection was established but then dropped.

Source & verification

This page was checked against Apple Developer: NSURLErrorDomain on 2026-11-08. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.

Open Error Codes is independent and not affiliated with Apple. Always confirm destructive or security-sensitive steps with the official documentation.