How to Fix Safari Cannot Verify Identity of Website on Mac

When navigating to secure HTTPS websites on macOS, Apple Safari evaluates the web server’s SSL/TLS digital certificate against Apple’s trusted root certificate authority database. If the certificate cannot be verified, Safari halts navigation and presents a stern security dialogue: Safari can’t verify the identity of the website “example.com”. The certificate for this website is invalid. You might be connecting to a website that is pretending to be “example.com”. While the warning protects users from man-in-the-middle attacks, it frequently appears on legitimate corporate portals, staging sites, and public Wi-Fi hotspots.

Why Does Safari Fail to Verify a Website’s Certificate?

Certificate verification fails when the cryptographic trust chain breaks between the remote server and macOS. Key causes include:

  • Inaccurate macOS System Date and Time: SSL certificates are strictly validity-bounded. If your Mac clock drifts forward or backward by even a few minutes, certificates appear expired or not yet valid.
  • Self-Signed or Internal Enterprise Certificates: Corporate intranet portals using internal root certificates that are not imported into the macOS System Keychain.
  • Corrupted Keychain Access Trust Cache: Stale or untrusted certificate policies stored in the macOS Certificate Trust Settings database.
  • Public Wi-Fi Captive Portal Interception: Hotel or coffee shop Wi-Fi gateways intercepting HTTPS handshakes before authentication.
  • Expired Intermediate Certificate Authorities: Outdated intermediate certs (such as older Let’s Encrypt or Sectigo cross-signs) cached in local Keychain records.

Method 1: Synchronize System Date and Time with Apple NTP Servers

Clock drift is the single most common cause of false SSL certificate rejections on Mac.

  1. Click the Apple menu > System Settings.
  2. Select General > Date & Time.
  3. Ensure the toggle for Set time and date automatically is turned On.
  4. Verify that the time server reads time.apple.com.
  5. Ensure the toggle for Set time zone automatically using your current location is also enabled.
  6. If the clock was incorrect, synchronizing it will immediately resolve SSL certificate errors in Safari.

Method 2: Inspect and Trust the Certificate in Keychain Access

For internal company portals or developer staging environments, configure explicit trust in Keychain Access.

  1. In the Safari error warning dialogue, click the Show Certificate button.
  2. Review the certificate details to confirm the domain matches the host you intend to visit.
  3. Check the box for Always trust “example.com” when connecting to “example.com” and click Continue.
  4. Enter your Mac administrator password when prompted.
  5. To verify or revoke trust later: Open Keychain Access (via Spotlight), select System in the sidebar, search for the certificate name, double-click it, expand Trust, and set When using this certificate to Always Trust.

Method 3: Remove Expired Intermediate Certificates from Keychain

Old cross-signed root certificates can shadow newer valid chains.

  1. Open Keychain Access (Applications > Utilities).
  2. Click Certificates in the category filter.
  3. Look for certificates marked with a red “X” icon or indicating expired validity dates (such as older DST Root CA X3 certs).
  4. Right-click the expired certificate and select Delete.
  5. Enter your administrator credentials and restart Safari.

Method 4: Complete Public Wi-Fi Captive Portal Login

If connecting to public networks, open the network gateway login screen before browsing secure sites.

  1. Public Wi-Fi networks intercept HTTPS traffic to display sign-in terms, triggering certificate warnings.
  2. Open Safari and type a plain unencrypted HTTP address:
    http://captive.apple.com
  3. The network captive portal welcome page will load cleanly.
  4. Accept the terms, sign in with your email or room number, and wait for confirmation.
  5. Once online, secure HTTPS browsing will operate without certificate warnings.

Method 5: Clear Safari Website Data and Cache

Purging stale TLS session caches forces WebKit to negotiate fresh certificate handshakes.

  1. In Safari, click Safari > Settings > Privacy.
  2. Click Manage Website Data and click Remove All.
  3. Click Develop > Empty Caches from the top menu bar.
  4. Relaunch Safari and test connecting to the website.

Get the best tech tips delivered straight to your inbox.

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