“The server requires a client certificate” (NSURLErrorDomain -1206) on Mac

The server wants the Mac to show a certificate of its own, and the Mac has none that fits.

Fix this with your agentCopies a prompt for Claude Code, Codex or any agent that can use Terminal.

My Mac has this problem: “The server requires a client certificate” (NSURLErrorDomain -1206) on Mac. Read https://kilobat.app/guides/nsurl-error-1206-server-requires-a-client-certificate.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.

Applies to: macOS 13 Ventura and later. The text was checked in CFNetwork on macOS 27.2.Checked: 29 October 2026

Symptoms

  • An app shows “The server requires a client certificate.”
  • Console shows NSURLErrorDomain Code=-1206.
  • The site is an internal work service.

Likely causes

  • No identity installed. The client certificate is missing in the keychain.
  • The wrong identity. The certificate is for another authority.
  • An expired identity. The client certificate expired.

How to check

  1. Open Keychain Access and look for a certificate with a private key under My Certificates.

  2. Show the identities that macOS knows.

    security find-identity -v -p ssl-client

How to fix it

  1. Ask the administrator for a client certificate or a profile that installs it.

  2. Install the certificate and give the app access to the key.

  3. Renew the certificate if it has expired.

  4. Restart the app after you install the identity.

Questions

Is this a problem with the server?

No. The server is set up to ask for a client certificate.

Where does the certificate come from?

From the owner of the service, often as a profile.

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.