“A TLS error caused the secure connection to fail” (NSURLErrorDomain -1200) on Mac
The TLS handshake did not finish. The app and the server did not agree, or something changed the traffic.
My Mac has this problem: “A TLS error caused the secure connection to fail” (NSURLErrorDomain -1200) on Mac. Read https://kilobat.app/guides/nsurl-error-1200-tls-error-secure-connection-failed.md and work through it with me. Install the Kilobat CLI if it’s missing: brew install seifip/kilobat/kilobat. Run the guide’s Terminal and kilobat checks yourself and tell me what you find. List the steps only I can do. Ask before you change any setting.
Symptoms
- An app shows “A TLS error caused the secure connection to fail.”
- Console shows NSURLErrorDomain Code=-1200.
- Safari shows “can’t establish a secure connection to the server”.
Likely causes
- A wrong Mac clock. Certificates fail when the date is wrong.
- A server that offers settings that the Mac does not accept. Old TLS versions or weak ciphers fail.
- A filter, proxy or antivirus that intercepts HTTPS. It can break the handshake. See Corporate proxy certificates break Terminal tools on a Mac.
- A captive portal or a network that cuts the connection. The handshake gets no valid reply.
How to check
Compare the Mac date with another device. Use System Settings › General › Date & Time.
Show the certificate that the server sends.
openssl s_client -connect example.com:443 -servername example.com </dev/nullRequest the page and show each step of the connection.
curl -v -o /dev/null https://example.com
How to fix it
Turn on automatic date and time.
Turn off a VPN, proxy or HTTPS-scanning app for a test.
If the server is yours, update its TLS settings and its certificate chain.
Try another network. If it works, the first network interferes.
If it is a public Wi-Fi, sign in to the login page first. See Wi-Fi login page does not appear on a Mac.
With Kilobat
Check Wi-Fi, the router, the internet, DNS and login pages in one step.
kilobat diagnoseIf one site or service fails, find the layer that stops it.
kilobat why example.comThe CLI is free. In the app, the advice from these checks is part of Kilobat Pro. See Find why one site or API won't connect.
Questions
Is -1200 a certificate error?
Not always. Certificate errors have their own codes, such as -1202. See “The certificate for this server is invalid” (NSURLErrorDomain -1202) on Mac.
Why does it fail in an app and not in Safari?
The app can have its own TLS rules or proxy settings.
Sources
- Error text in CFNetwork.framework, macOS 27.2 (Localizable.loctable)
- curl(1) and nc(1), man page installed with macOS 27.2
Checked on 29 October 2026.