AppleEnglish

How to fix: Safari can’t open the page because Safari can’t establish a secure connection

About one year ago my Macbook Pro and my Macbook Air started acting a bit weird. Some homepages would no load in Safari. In my case it was e.g. www.twitter.com and www.paypal.com. I kept getting the same message: “Safari can’t open the page because Safari can’t establish a secure connection”

I seriously searched all search engines, and read almost every single post I could dig up on the internet but there was no solution to be found – except from reinstalling the entire system – which I really did not want to do. Safari would not open some secure pages while others did just fine. The sites that didn’t open in Safari worked flawlessly in Firefox and Chrome.

Currently, I’m using Mavericks on my MBP and Yosemite on my MBA, and both computers experience this problem. Safari version is currently 7.0.6. As far as I remember the problem was also present in Mountain Lion.

I tried a lot of the suggestions incluing: “Remove all web site data”, turning off extensions, uncheck “Stop internet plug-ins to save power”, adding a different DNS in network setting such as 8.8.8.8 and 8.8.4.4, testing from Guest Account, Safe boot, uninstall JavaForOSX2013-05, reset all network setting, reinstalling Maverick, updating to Yosemite etc. Nothing worked. The only thing that I got was the deleting of all my passwords, cookies etc etc.

In this thread there’s supposedly a fix that requires you to reinstall a backup after doing complete reinstallation of the OsX. Nevertheless, I did not eager to do a complete reinstallation…

Other things that might be a solution:

  • Reset/repair my default keychain
  • Change DNS server
  • Check for software updates, all up to date
  • Flush DNS cache
  • Check certificates in keychain, removed two revoked, all other default have Use System Defaults
  • Firewall not enabled
  • Parental controls not enabled
  • Tried to reset Safari with all options checked
  • Set system clock/time to automatically update.
  • Chrome and Firefox on the same computer don’t have any issues

 

Therefore, I thought that the problem might be in the certificates. As the problem was only present in Safari, I opened www.twitter.com (which was one of the sites that did not work in Safari) in Firefox. Here I clicked the green lock next to the URL. The below pictures are in danish, but I guess you’ll get the point :-)

 

Next step was to click the “More informations” (Flere informationer) to bring up the next window. Click on the safety/security tab (Sikkerhed) to the right and then “show certificate” (Vis certifikat). 

Here, I switched to the “Details” tab (Detaljer).

In the  pictures you can see that twitter.com uses the “VeriSign Class 3 Publich Primary Certification Authority – G5 certificate”.




Then, I opened the Keychain by clicking CMD+Space and then typing “Keychain”. Then click the “system roots” (all entries). Here I found the above Certificate, which had a blue “+” mark on it. Then double-click, which brings up the windows below. Here you can choose to use “system setting” (Brug systemstandarder), or Always approve (Godkend altid) or Always reject (Godkend aldrig).


It turned out that the problem was the certificate, which somehow was “locked” to my mail “server”, which prevented all other websites from using it. In my case it was locked to my mail server “smtp.xxxxxxx.dk”. (The above picture does NOT display the locked certificate but shows how it looks after it has been “unlocked” – I did not take a screenshot when changing it the first time). I don’t know how or why it was locked to this mailserver.

I changed the certificate authentication to “Always approve”, but that did not work. Then I switched it to use the system setting and voila – now all pages loads perfectly. PROBLEM SOLVED, and I was a happy man !

I really hope that this fix can help a lot of people as I was REALLY frustrated as nothing worked…
Feel free to leave a comment as it’s always nice to get response from people.

 

please help

Help me with a cup of coffee ? 

If you found my blog helpful you may support my coffee drinking for free by entering your city in the HotelsCombined Search box below. Just fill in a date and click “View deals” on one of the hotels. When redirected the blog will get a few cents. You will NOT get spammed and you can really make a difference for me in order to keep the blog up and running – or you may donate via PayPal 🙂

THANK YOU very much in advance…
Sincerely,
Lars

 

Safari https problem - Who can perform this fix?
  • Computer nerds
  • Mac users with a little knowledge of system settings
  • Newbies who understand a couple of computer terms
5

Conclusion

Pretty easy to correct.

Latest helpful donations (Thanks!):
Joni S. ($2)

Sender
Hvad synes du?
4.73 (11 stemmer)
Følg
Giv besked ved
guest

47 Kommentarer
Nyeste
Ældste Flest stemmer
Inline tilbagemeldinger
Se alle kommentarer
James
James
7 år siden

In Safari (or other browsers perhaps) on MacBook, Change (View-Text Encoding) To Unicode UTF-8 and some of your Safari Can’t Open This Page problems will disappear.

DudeFromWorldwide
DudeFromWorldwide
Svar til  James
5 år siden

It worked for me! Thanks.

Darren
Darren
7 år siden

Thank you. Your solution worked perfectly and your walkthrough was very easy to follow. I wish Apple’s support pages were as useful.

proximiti
proximiti
7 år siden

HI ! I have that problem with https://www.myairbridge.com/ I have located the certificate in question and I could not see if it was locked to anything. I switched always trust and then switched to system and then restarted Safari but it did not help. I tried removing the certificate in keychain and tried to access the website but it failed. I open it in chrome and then found that the certificate is there again but I have not seen the blue plus sign next to it. Any thoughts ?

Ewald
Ewald
Svar til  proximiti
7 år siden

Older versions of Safari are not kept up to date with latest security protocols. Thus when one visits certain websites one gets the message that “Safari can’t establish a secure connection”. I tried various fixes, but the problem always came back. So, now, whenever I get the message, I open up another browser (for example: Firefox) and access the webpage that way.

I am currently using Safari 6.2.8 on OS 10.8.5 (Mountain Lion). My Firefox version is 48.0.2 (already old but with more recent security updates than Safari 6.2.8.) Unfortunately, FireFox discontinued ongoing support for OS 10.6, 10.7 and 10.8 in summer 2016.

For browser versions that are up to date (and which versions of the OS they run on) see this chart: https://en.wikipedia.org/wiki/Template:TLS/SSL_support_history_of_web_browsers

The chart comes from: https://en.wikipedia.org/wiki/Transport_Layer_Security

Ken Buch
Ken Buch
8 år siden

I discovered that the problem for me was that I need to use the www. I had trouble with the PayPal site because I was entering paypal.com into my browser and the PayPal site did not redirect me to http://www.paypal.com. But the certificate is only for http://www.paypal.com so Safari was being pedantic about the web address and refusing to connect. Simply adding the www fixed my issue.

Ilya Shebalin
Ilya Shebalin
Svar til  Ken Buch
7 år siden

Ken, you’re my saviuor!!!!! I was plagued by this issue for a good half of month desperately trying to access the site macosxautomation .com as well as all its subdirectories. After reading your comment I turned my eye to the beginning of the URL-adress only to receive evidence of the site’s address being displayed as http://. I changed that to www. and suddenly the gates opened. Thank you very much!

Reacting to the author’s article: indeed very enlightening especially considering an app as obscure as Keychain. You helped me a lot to begin to fathom its conundrum. Unfortunately, upon delving into what is what I found one piece – and rather critical one – missing: the certificate of macosxautomation .com itself. It simply wasn’t present. I then discovered in its menu bar a set of items (Keychain–>Certification Assistant–>…) where you can check, request, update certificates and also create your own Certification Agency (CA). So my dummy question: is it possible to request the certificate in order to enable Safari to shake hands with a server that requires it?

Gurneet Klair
Gurneet Klair
8 år siden

There same thing happened to me but on my iPad
How would I solve this ?? Please help

StephenF
StephenF
8 år siden

Outstanding! I couldn’t understand why Safari on the Mac would fail to open Google pages (google.com, youtube.com, etc.) and none of the various bits of advice on the web were helpful.
This did the trick!
Many, many thanks.
-Stephen

Indrajit Chatterjee
8 år siden

A very complicated solution – but detailed work! However, there is a VERY QUICK workaround for resolving this problem. All you need to do is to delete all the trash Safari has accumulated under your name as a user in the system. For that open Finder window > go to your own ID’s home folder (where your documents etc. are) > click Go menu > press ALT key > you will see a hidden menu of Library becomes visible when you press the key > go to Library > find the folder called Safari > rename it as Safari-backup or something similar > you will notice suddenly again a Safari folder got created, which is empty now > close Finder window > Open Safari > PROBLEM SOLVED.

Ewald Wuschke
Ewald Wuschke
Svar til  Indrajit Chatterjee
8 år siden

I’ll give it a try. But removing that folder is the same as starting all over again with Safari. All history and bookmarks will be gone, and I will need to rebuild the bookmarks again.

Shoot me! I quit Safari, followed the steps to rename the Safari folder in the Library, relaunched Safari, new Safari folder appeared in the Library, Safari now has no history or bookmarks, started re-establishing some of my bookmarks, and the issue came back while I was on a secure site. Safari can’t open the page because Safari can’t establish a secure connection to the server.

PROBLEM NOT SOLVED. I think my only remedy is to either upgrade Safari by upgrading OS X, or switch to another browser. As mentioned in earlier post, I am using Safari 6.2.8 on OS 10.8.5.

Ewald Wuschke
Ewald Wuschke
8 år siden

The issue came back.

I discovered that the SSL/TLS security for Safari is not kept up to date unless one has the latest version (currently Safari 9). I am using Safari 6.2.8 which only has security up to TLS 1.0 (defined in January 2006 as an upgrade to SSL 3.0). The current TLS is 1.2 (defined in August 2008), with 1.3 in draft this month (January 2016). (SSL is the predecessor to TLS. All versions of SSL are now insecure.)

I need to upgrade Safari, which means upgrading to Mac OS 10.11 from Mac OS 10.8.5. Or, I need to switch to a more secure browser, such as Firefox version 43 or later.

To test any browser to see if its SSL/TLS is up to date, visit https://www.howsmyssl.com while using the browser.

A table showing what protection each version of a browser has is at: https://en.wikipedia.org/wiki/Template:TLS/SSL_support_history_of_web_browsers

My concern is that when one “Always Approves” a browser to visit websites, one is bypassing security protection and exposing their Mac or PC to potential risk.

Ewald Wuschke
Ewald Wuschke
8 år siden

For over 6 months, been having the message “Safari can’t open the page because Safari can’t establish a secure connection” for “https:” pages from several websites and then would have to use FireFox to open the same webpage. Tried many things including your instructions and I was ready to give up on Safari.

[An example: When the default home page http://www.google.ca was opened the url displayed “https://www.google.ca/?gws_rd=ssl ” without a lock to left of the url in Safari and the message “Safari can’t open the page because Safari can’t establish a secure connection” appeared. (Since doing the update below, the home page opens normally to url “https://www.google.ca” with a lock displayed.)]

Discovered that “Java” was not up to date. To check whether your Safari has Java up to date, in Safari go to “Safari” –> “Preferences” –> “Security” –> “Manage Website Settings…”. Select “Java” in left panel. You will need to update Java if you see a warning message that says something to the effect that your version of Java has known critical security issues and Safari will block some web pages unless permission has been given to “Always Open” or “Always Approve”.

To update Java: Go to “System Preferences” –> “Java”. A separate “Java Control Panel” will open (it may be hidden under another window). Then select the “Update” tab. Follow instructions.

My version of Java was last updated 7 months ago and I was at “Java 8 Update 31” while the current update is “Java 8 Update 66”.

So far Safari is working normally. Will see if it is still working normally after a few days.

I am using Safari 6.2.8 on Mac OS 10.8.5.

Taqdees
Taqdees
9 år siden

Thank you very much. It really helped. Although, the system settings didn’t work for me. Instead I used the Custom Setting and “Always Approve” the first four options. And it worked.

Reni
Reni
9 år siden

My problem is in my iPad and iPhone,, how to fix it? Help me please sir

Roccah
Roccah
9 år siden

My problem is in iPhone, there is the different?

hush
hush
9 år siden

What if there are no expired certificates? There’s one cert that has that blue + on it but it only indicates that it has custom settings.

heartfumeya
9 år siden

None of the above steps worked for me. Using OSX 10.8.5 Don’t want to upgrade. Using this system for testing. Any ideas please.

alexk
alexk
9 år siden

the proposed solution did not work for me.
I could not connect to any HTTPS URL; can not run software update (also ssl encrypted); can not connect to apps store; neither to get help for different parts of software (like keychain).

as mac os x is NOT unix — case insensitive file system — i repartioned my disk — mostly for files at home; for the root fs I’m using time machine to back it up [still don’t know how to restore ;^) ] and for normal unix file system I use rsync for backup.

So to solve my problem — I saved the content of ~/Library; deleted it and then restored if from backup — rebooted and safari/software update etc started working..

Then rsync some parts from today’s copy for thunderbird; firefox; viber and looks like it’s working

hope that’s helpful.

K
K
9 år siden

This was so helpful! I have not been able to open my school’s web system on safari and nothing else worked! Thank you!

Guy
Guy
9 år siden

Took a while to figure this one out but …there is a faster way… https://discussions.apple.com/thread/6428076?start=30&tstart=0

After reading dozens of blogs and possible solutions on this problem – I have now solved it, this is it:-

The problem is SAFARI’s encrypted Keychain being corrupted in some way. This is about the 10th problem I have had with Keychain in Yosemite.

To solve this follow these steps.

1. Go to Safari Extns, write down your list of extensions you want to keep.
2. Quit Safari
3. Go CMD + U – To the Utilities Folder on OSX.
4. Run Keychain
5. Search SAFARI in the top right.
6. Delete all the keychains for Safari.
7. Quit Keychain.
8. Run Safari and Reinstall your extensions that have been removed.

SOLVED.

luciusappaloosius
Svar til  Guy
9 år siden

How do we know which extensions we want to keep?

Tom Perkins
Tom Perkins
9 år siden

Where have you been all my life!!! This bleeping problem has plagued me, on and off, for two years. Comes on when it feels like, goes off when it feels like. In my case, every server gave the same message, not just Safari.So, I took my iPhone and went to Safari and typed in the error message. Did every one of the tests you mentioned at first. Nothing. Keep in mind I am a senior boomer that is technically challenged. Reading your very easy how-to steps. Could not find, at first, any “blue+’s on any certificate. Then I remembered something, somehow attached to your mail server. Went in the mail server. Everything wonderful. Then went back to keychain. On a hunch I typed in “comcast”. Ahhhhh, there was that infamous blue+. Tried your suggestions with no results. Then, I remember the error message talked about “SSL’s. Went the window below and changed to “trust all”. Then went to the window above and reswitched to “use custom settings”. BINGO! Did a little jig around my desk, high-fived myself and wrote this comment. Many, many thanks! Tom Perkins
ps. You speak/write incredible English. Guessing you did some study in the US as you don’t use “English” spellings. Ich bin ein neuer Mensch geworten!! Verstehen Sie?

Sid
Sid
9 år siden

Worked like a charm! Thanks much.

Farz
Farz
9 år siden

Hello, the same problem occurs on my iPad. Hoow to solve this? Thank youu

osh
osh
Svar til  Farz
9 år siden

Same here,
Any ideas how to access those options on an IPad or IPhone?

paul
paul
9 år siden

Trudy – Lars is just referring to the keyboard shortcut to open the search text-box – you’d use the Command key and also the space bar to get the text box on screen. Then type “keychain” and it’ll show you the application that you need to open in order to carry out the rest of the instructions. Good luck.

Trudy
Trudy
9 år siden

I cant understand this paragraph…

Then, I opened the Keychain by clicking CMD+Space and then typing “Keychain”. Then click the “system roots” (all entries). Here I found the above Certificate, which had a blue “+” mark on it. Then double-click, which brings up the windows below. Here you can choose to use “system setting” (Brug systemstandarder), or Always approve (Godkend altid) or Always reject (Godkend aldrig).

Would you explain what is clicking CMD+Space means? I cant see it on the Certificate Viewer window. Thank you 😀

Nu Zaeb
Nu Zaeb
Svar til  Trudy
9 år siden

in some cases Apple won’t open the Keychain on command
But you can access it from Aplications -> Utilities -> Keychain

Francis
Francis
9 år siden

Lars,
Problem solvers are a great asset to the world. Thank you and my issues are solved.

Eloi
Eloi
10 år siden

You saved my spare time while making graphics! Thanks a lot!

Beverly Jones
Beverly Jones
10 år siden

Was having problems getting my website to appear on google, but traced it eventually to Safari blocking because of ‘certificate invalidity’. Clicked ‘Always Trust’ and now it seems to be working. Now Safari is blocking facebook. So I found your journey very helpful and interesting and will take your advice.

47
0
Noget på hjerte, så smid meget gerne en kommentar.x
()
x