“The server certificate’s identity is incorrect. Contact your network administrator” on Mac

The certificate that the server sent does not match the name in your VPN settings. The Mac ends the connection.

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 certificate’s identity is incorrect. Contact your network administrator” on Mac. Read https://kilobat.app/guides/vpn-server-certificate-identity-incorrect.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 PPPController on macOS 27.2.Checked: 29 October 2026

Symptoms

  • System Settings › VPN shows “The server certificate’s identity is incorrect. Contact your network administrator.”
  • The server address is an IP address, or an old name.
  • The VPN profile came from an older setup.

Likely causes

  • A name that the certificate does not list. The certificate is for vpn.example.com, but the profile uses the IP address or another name.
  • The server changed its certificate. The administrator moved the server or renamed it.
  • A device that intercepts the connection. A filter can present its own certificate. See Corporate proxy certificates break Terminal tools on a Mac.

How to check

  1. Check the server address in System Settings › VPN. Look for typing errors and extra spaces.

  2. Test that the server answers. Look up its name.

    dscacheutil -q host -a name vpn.example.com
  3. List the VPN services and their state.

    scutil --nc list
  4. Try another network, such as a phone hotspot. If it works, the first network blocks the VPN.

How to fix it

  1. Enter the exact server name from your VPN provider in System Settings › VPN.

  2. Ask the administrator which name the certificate lists.

  3. Remove the VPN service and add it again with the new profile.

  4. Try another network. If it works, a filter on the first network intercepts the connection.

With Kilobat

  1. Test the server name and the path to it before you try the VPN again.

    kilobat why vpn.example.com
  2. The 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

Why does the IP address fail?

A certificate lists names. It does not list the address, unless the administrator added it.

Is this a security risk?

The check exists to stop a fake server. Fix the name, do not turn the check off.

Sources

Checked on 29 October 2026.