Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Safari suddenly can't connect to any HTTPS site because it "can't establish a secure connection".

This is on an administrator account, not a managed account.

A different administrator account is able to use Safari with HTTPS, so must be something specific to my account, but I have no idea what.

Google Chrome has no problems connecting to HTTPS sites.

Things I have tried:

  • emptied Safari's cache
  • deleted Safari's preferences
  • reset Safari entirely
  • repaired Keychain (no errors found)
  • deleted Keychain (didn't help)
  • repaired permissions in Disk Utility
  • rebooted
  • hoped it would suddenly fix itself

All of the google results I saw suggested either repairing the Keychain (which I tried and which did not help) or were only applicable if there were "Parental Controls" involved, which doesn't apply here.

If I had to guess, I would think that wherever Safari is checking for "certificates" is somehow corrupted, but I could be wrong. I'm not even sure where to look for those - maybe ~/Library/?

share|improve this question
    
When I've had this problem in the past, it was because my system clock was set profoundly wrong. That's likely not your problem, but it's worth checking. –  Daniel Lawson Jun 12 '12 at 23:51
    
Good thought! But nope, my Mac is synced with Apple's own time server. –  TJ Luoma Jun 13 '12 at 13:47
    
@DanielLawson How could such behavior be related to the system clock? –  gentmatt Jun 13 '12 at 21:01
    
@gentmatt I suspect it has to do with certificate expiration checking, but I don't know. I just know that I've had trouble with https connections in the past when my system clock was reset to 1970 and I hadn't noticed. In any event, that isn't the problem here. –  Daniel Lawson Jun 13 '12 at 22:14
    
If you removed the revocation file then it suggests a cert was marked as expired at some point? –  user52261 Jun 28 '13 at 12:00
add comment

1 Answer

up vote 7 down vote accepted

A report on forums.macrumors.com seems to be fairly similar to yours. This happens as well in Safari 5.1 and is very recent.

The solution was to delete:

~/Library/Preferences/com.apple.security.plist
share|improve this answer
4  
YES YES YES! THANK YOU! I did not have that exact file but I had 'com.apple.security.revocation.plist' and when I deleted that file, Safari works again. THANK YOU! –  TJ Luoma Jun 13 '12 at 22:07
    
I'm glad that this got solved :) –  gentmatt Jun 14 '12 at 9:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.