How to Fix Safari Can’t Verify Identity of Website on Mac

Navigating to a trusted website or corporate portal in Safari on macOS only to be halted by a warning modal stating: “Safari can’t verify the identity of the website ‘[domain]’. The certificate for this website is invalid. You might be connecting to a website that is pretending to be ‘[domain]’, which could put your confidential info at risk” can interrupt your browsing. While this alert safeguards users against man-in-the-middle attacks, it frequently appears on legitimate domains due to macOS clock drift, expired intermediate root certificates, or corrupted Keychain Access caches.

Verify and Synchronise Mac System Date and Time

Transport Layer Security (TLS/SSL) certificates have strict validity windows defined by an exact start date and expiry date. If your Mac system clock is off by even a few minutes, Safari rejects all secure certificates as invalid:

  1. Click the Apple menu in the top-left corner and select System Settings.
  2. Navigate to General > Date & Time.
  3. Confirm that Set time and date automatically is toggled On.
  4. Verify that the designated time server is set to time.apple.com.
  5. Ensure that Set time zone automatically using your current location is also enabled under Location Services. If timekeeping was inaccurate, synchronising it immediately resolves the certificate verification failure.

Inspect and Repair Untrusted Certificates in Keychain Access

Corrupted local trust settings or duplicated root authority certificates in the macOS Keychain can prevent Safari from building a valid certificate trust chain:

  1. Press Command + Space to open Spotlight, type Keychain Access, and press Return.
  2. In Keychain Access, select System Roots in the left sidebar, followed by Certificates at the top.
  3. Look down the list for certificates marked with a red X icon or yellow warning flag.
  4. Next, select login or System keychains. Search for the domain or certificate authority associated with the failing website.
  5. Double-click the certificate to open its properties, expand the Trust section, and ensure that When using this certificate is configured to Use System Defaults rather than custom overrides.
  6. If an old, expired version of a certificate authority (such as an obsolete Let’s Encrypt or Sectigo intermediate cert) is saved in your login keychain, right-click and delete it.

Bypass the Certificate Warning Safely on Trusted Intranets

If you are accessing an internal home lab server, NAS dashboard, or development staging server using a self-signed certificate, you can instruct Safari to trust the identity:

  1. On the Safari warning screen, click the Show Certificate button.
  2. Review the certificate details to confirm it matches your local network hardware.
  3. Tick the checkbox labelled Always trust “[domain]” when connecting to “[domain]”.
  4. Click Continue.
  5. Enter your macOS administrator username and password when prompted to register the trust exception into your local System Keychain.

Clear Safari Web Cache and Certificate Session States

Stale OCSP (Online Certificate Status Protocol) responses cached in Safari can cause transient verification failures:

  1. With Safari open, go to Safari > Settings > Privacy.
  2. Click Manage Website Data, search for the affected domain, and click Remove.
  3. Enable developer tools via Safari > Settings > Advanced by ticking Show features for web developers.
  4. Click Develop in the menu bar and select Empty Caches (Option + Command + E).
  5. Quit Safari completely (Command + Q) and relaunch the browser.

Update macOS to Refresh Apple Trusted Root Store

Apple updates the system-wide list of trusted root certificate authorities exclusively through macOS system updates:

  1. Go to System Settings > General > Software Update.
  2. Install any pending macOS maintenance releases or security configuration updates.
  3. Modern web standards frequently retire older cryptographic algorithms (such as SHA-1 or 1024-bit RSA keys). Updating macOS ensures your Mac can validate modern TLS 1.3 certificates.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.