macOS Error Code -1202
The server certificate is not trusted by macOS.
The server certificate is not trusted by macOS.
| Code | -1202 |
| Product | macOS |
| Company / origin | Apple · United States |
| Category | Operating Systems |
| Platform / versions | macOS 12 and later · NSURLErrorDomain |
| Severity | fatal |
| Official source | Apple Developer: NSURLErrorDomain ↗ |
| Last verified | 2026-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
- Step 1
Install a publicly trusted certificate for public services.
- Step 2
Serve the complete intermediate chain.
- Step 3
Add a private CA to the keychain only through an approved management process.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
-1200 | Secure Connection Failed | The TLS handshake failed. |
-1001 | The Request Timed Out | The request did not complete within the allowed time. |
-1003 | Cannot Find Host | The hostname could not be resolved. |
-1004 | Cannot Connect to Host | The host was found, but the connection could not be established. |
-1005 | The Network Connection Was Lost | The 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.