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.
- Click the Apple menu > System Settings.
- Select General > Date & Time.
- Ensure the toggle for Set time and date automatically is turned On.
- Verify that the time server reads
time.apple.com. - Ensure the toggle for Set time zone automatically using your current location is also enabled.
- 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.
- In the Safari error warning dialogue, click the Show Certificate button.
- Review the certificate details to confirm the domain matches the host you intend to visit.
- Check the box for Always trust “example.com” when connecting to “example.com” and click Continue.
- Enter your Mac administrator password when prompted.
- 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.
- Open Keychain Access (Applications > Utilities).
- Click Certificates in the category filter.
- Look for certificates marked with a red “X” icon or indicating expired validity dates (such as older DST Root CA X3 certs).
- Right-click the expired certificate and select Delete.
- 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.
- Public Wi-Fi networks intercept HTTPS traffic to display sign-in terms, triggering certificate warnings.
- Open Safari and type a plain unencrypted HTTP address:
http://captive.apple.com - The network captive portal welcome page will load cleanly.
- Accept the terms, sign in with your email or room number, and wait for confirmation.
- 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.
- In Safari, click Safari > Settings > Privacy.
- Click Manage Website Data and click Remove All.
- Click Develop > Empty Caches from the top menu bar.
- Relaunch Safari and test connecting to the website.