Fix a “Safari Can’t Verify the Identity of the Website…” Error Message
While Safari usually works just fine for browsing the web, there are times you may encounter a persistent error message about verifying the identity of a particular website. The precise error message may read something like this, and appear on almost any site, where “URL” is a variety of domains:
“Safari can’t verify the identity of the website “URL”
The certificate for this website is invalid. You might be connecting to a website that is pretending to be “URL”, which could put your confidential information at risk. Would you like to connect to the website anyway?”
First, this may be a completely valid security warning, and you’ll want to click on the “Show Certificate” button to attempt to verify everything looks as it should yourself (the domain you are trying to visit is trusted, matches, etc). On the other hand, this may appear as an erroneous message from Safari too, and that’s what we’re looking to troubleshoot here.
For a common example, you may find this alert popping up for Facebook related domains while visiting other sites on the web, in such a case, the error may read and look something like the following:
“Safari can’t verify the identity of the website “static.ak.facebook.com”
The certificate for this website is invalid. You might be connecting to a website that is pretending to be “static.ak.facebook.com”, which could put your confidential information at risk. Would you like to connect to the website anyway?”
This can happen with almost any website, probably because of the ubiquitous Facebook “Like” and “Share” buttons found all over the web, which may lead users to see the certificate error when they’re somewhere completely different, like IMDB or NYTimes.
Again, you’ll want to confirm the certificate is valid yourself before doing anything else, but if you’re convinced this is a client side error (that is, you or someone you are troubleshooting Safari for), you can often resolve it with the methods detailed below.
This is aimed at resolving erroneous “can’t verify” messages from Safari only in situations where you trust all sites and domains listed, yet still receive the error message. This should be not used to ignore a valid security alert.
Update Safari to the Latest Version
You’ll want to do this before anything else, update to the latest version of Safari that is supported by your Macs version of OS X. You can check this by:
- Go to the Apple menu and choose “Software Update”
- Install any and all updates available for Safari
This is important because antiquated versions of Safari may have a bug, flaw, or unpatched security issue that is causing the certificate verification issue to be triggered. Many users find that simply updating Safari fixes the problem entirely.Optionally, you may want to try clearing cookies for the impacted domains too, but it shouldn’t be necessary.
Still having issues on the newest Safari build? Now let’s get into a bit more technical troubleshooting…
Fix Invalid Certificate Errors by Repairing Keychain
The first method to resolve an erroneous certificate error is to turn to Keychain Access, and then verify and repair the certificates contained for the active user account in Mac OS X. Here’s how to do this:
- Quit out of Safari
- Hit Command+Spacebar to bring up Spotlight search, then type “Keychain Access” and hit return to launch the app
- Go to the “Keychain Access” menu and select “Keychain First Aid” from the menu list
- Enter the current user password, then check the “Verify” box, followed by choosing the “Start” button
- Next, choose the “Repair” radio box and then “Start” again
- Relaunch Safari and visit the website(s) again
Things should now be back to normal and Safari should no longer throw the “can’t verify identity” error when visiting websites.
Repairing the keychain is a common troubleshooting technique when various login details and account specifics are not being remembered properly in a variety of Mac apps or system tasks, even including wi-fi routers and persistent wi-fi network login requests, and it usually the resolves such problems.
Confirm the System Time is Correct
If you’re still having the problem, your time settings may be off. Yes, time, as in the clock on the computer. If that’s the problem, it’s quite easy to resolve:
- Be sure the Mac has active internet access, this is necessary to retrieve accurate date and time info from Apple servers
- Quit Safari
- Open the Apple menu and go to System Preferences
- Choose “Date & Time” and check the box for “Set date and time automatically” (if the box is already checked, uncheck it, wait 10 seconds, then check it again)
- Relaunch Safari
You should be good to go with no more verification errors. This works for situations where the system time is reporting as vastly different than what is expected from the remote server, like if a computer is reporting itself from the future (sorry McFly).
Do you have another solution for resolving erroneous verification errors from Safari? Let us know in the comments!