“The server certificate has expired. Contact your network administrator” on Mac

The VPN server proves itself with a certificate. The Mac says that the certificate has expired, so it 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 has expired. Contact your network administrator” on Mac. Read https://kilobat.app/guides/vpn-server-certificate-has-expired.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 has expired. Contact your network administrator.”
  • Other VPN users on the same server see the same message.
  • The Mac date can be wrong.

Likely causes

  • The server certificate really expired. The administrator did not renew it.
  • The Mac clock is wrong. A wrong date makes a valid certificate look expired. See NET::ERR_CERT_DATE_INVALID in Chrome on Mac.
  • A different certificate on the path. A network device can replace the certificate.

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. Check the date, time and time zone in System Settings › General › Date & Time. Turn on automatic setting.

  2. If the date is right, ask the administrator to renew the certificate.

  3. Do not turn off certificate checks in the VPN profile.

  4. Try again after the administrator confirms the fix.

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

Can I bypass this?

You can, but you should not. The check protects the VPN from a fake server.

How do I know if my clock is wrong?

Compare the Mac date with another device. Automatic date and time fixes most cases.

Sources

Checked on 29 October 2026.