Fix: Safari can’t establish a secure connection to the server

There have been weird reports on how Safari just stops working (or decides to work selectively) after a given period. It is weird how a browser would work seamlessly, then suddenly decide to choose where and when to function. Many Mac users have encountered this strange bug/hitch. Some websites would open without a fuss on Safari while on others straight up you will get hit by the now famous “Safari can’t establish a secure connection to the server” error.

What is even more puzzling is that the usual related fixes do nothing for the error above. Clearing cookies, disabling extensions, resetting Safari, turning off Parental Controls, keychain analysis, and permissions reset all hit a brick wall. This error gets you even if you do not use proxy to connect to the net. However, there is hope. The possible causes for this bug have been narrowed down to several aspects.

2016-04-27_101628

Possible Cause 1: ISPs DNS

Click the Apple Icon and Choose System Preferences. Then click the Network icon and choose Advanced. Click the DNS tab and remove any entries in the left pane, then click the + symbol and add 8.8.8.8 and then click the plus symbol again to add 8.8.4.4.

Possible Cause 2: Weak Encryption

When weak encryption is detected, Safari is instantly cut off from the connection (it is yet to be determined what detects the weak encryption first between Safari and the Mac system). But we all know for our privacy and security, websites have to be coupled with strong encryption before a web connection can be established unconditionally. This has especially been emphasized after efforts by OS X Yosemite (Version 10.10.4) and iOS 8.4 were boosted with extra security enhancements. So once weak encryptions (or whatever the system presumes to be weak) are met, Safari will not be able to connect. That is how the “Safari can’t establish a secure connection to the server” error comes about.

Now let’s see if we can sort it out once and for all. Once an issue about encryption is fronted, the first place to seek an explanation is the certificates. Here’s how to work around it

You experience the error in Safari but not in other browsers. Open the blocked website (Facebook and Twitter are popular suspects) in another browser e.g. Firefox. Once open, just next to the URL you will identify a tiny green lock. Click on it. On the emerging window, click on the “more information” button.

2016-04-27_140920

You should land into yet another window. Here, also click on the Security tab situated at the right-hand side. Now click on “show certificate”. Switch to the Details tab.

You will be shown the current certificate for the website you opened. The syntax should be something like this: “VeriSign Class 3 Public Primary Certification Authority – G5 certificate”

2016-04-27_141342

Next, open the keychain. You can do this by clicking CMD + Space Bar; then input “Keychain”. OR go to Utilities and access Keychain from there.

Then click on system roots for all entries. You will find here your certificate and it will have a blue cross marked on it. Double click it and another window will come up. You have the option of choosing a system setting, always approve or always reject.

You will realize that the certificate was the problem all along. Usually, a certificate will be locked on to the mail server and it will prevent any other website from using it. (Your mail server should be the entry starting with the “smtp” prefix and ending with a “.dk” suffix. Why the certificate would be locked to the mail server is as good as anyone’s guess.

Change the authentication of the certificate to “System setting”

There you go! All the pages you need will be loaded flawlessly on Safari. Problem solved.

NOTE: The steps above may slightly vary depending on the type of browser in use (of course, except Safari itself)

Possible Cause 3: Antivirus

If you are not up to the task of fiddling around with certificates it might be a good idea to first check out the antivirus installed on your machine. Usually, Avast is a notorious culprit on this front. Turn off the Web Shield and see what happens. Most likely, Safari will instantly connect to the previously forbidden sites. You will be up and running, but still, there is no explanation as to why Safari had worked before and suddenly stopped. Good luck with that.

Possible cause 4: IPv6

If option 2 still did not work for you and you don’t want to go deep into certificates and what-not, try isolating the device from the wifi network it has been using. Connect it to another Wi-Fi network and see if everything opens seamlessly. If you can connect to all websites including the ones previously blocked, turn IPv6 off on your router (if available) and via System Preferences -> Network -> Your Network -> Advanced -> Disable IPv6 from here by selecting it as “Manually”

2016-04-27_142017

ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

21
    KL
    Ken Lyons Jun 15, 2017

    Open iTunes in settings. Open Apple ID and sign in. Open appleide and type 192.168.1.1 to open asus home page.

    ID
    Ida Daniels Aug 1, 2017

    What should we do if we can’t find a certificate with a blue cross marked on it?

    ID
    Ida Daniels Aug 1, 2017

    What should we do if we can’t find a certificate with a blue cross marked?

    MA
    Mushtaq Ahmed Aug 19, 2017

    my Problem was solved by disabling web shield for Avast thanks

    Reply
    EC
    echoz Nov 13, 2017

    A little common sense can work wonders. Make sure you have a viable Internet connection. Xfinity is notorious for stealing your Wi-Fi focus and connecting when you had no intention of doing so. I notice it happens a lot on the older Macs, but getting on the right Wi-Fi can make all the difference between pulling a page up as you expect, or having to halt and read “…cannot connect” errors…

    MT
    Mark Teirney Feb 2, 2018

    This happens with only one website I visit when using Safari. I don’t have any problems with Chrome or FF

      KA
      K. Arrows Author Feb 6, 2018

      Then this means, the site’s ssl cert has expired.

        JY
        Jerry Yoodle Dec 13, 2019

        Same with Mark–works on Chrome but not on Safari. Followed your direction and indeed ssl cert expired on Safari. Thanks! But, how do I proceed or renew cert.? I deleted that expired keychain (export first as directed) and still not working on Safari.

          SW
          Shane Warren Author Dec 18, 2019

          Can u please elaborate on your specific issue, that way I’ll be able to guide you better.

    AN
    Ann Feb 16, 2018

    really appreciate your big help re: error message safari can’t establish a secure connection to the server.. BIG THUMBS UP! pls continue to post troubleshooting how to’s. Thanks a lot!

      KA
      K. Arrows Author Mar 7, 2018

      Welcome.

    PW
    Pete Williams Mar 15, 2018

    could another possibility be that apple is playing ‘net nanny’ and deliberately blocking sites it considers inappropriate ? I can sign into and post on my *** social media account using either of my PC’s , but not from my I-pad
    I was not getting the ‘safari cannot connect to this website via a secure connection ‘ message on previously visited webpages until last night.

    FE
    Fernando Apr 15, 2018

    I had this exact problem, could not properly load pages or would say certificate was not valid, tried everything suggested on internet and did not work, long story short internet provider(verizon) keep telling me it was something wrong with the computer, tech even came to house gave me new router and still same problem and said iMac didnt work well with verizon, finally convinced him to change my wifi extenter(that I got from Verizon to avoid conflicting signals) and magical everything started working great, I had just gotten the extender from them about a month prior, so before making any adjustments to your computer check your router, try using hotspot off your phone to see if it helps, that how I figured it out, good luck!

    Reply
      EM
      Emil Dec 29, 2018

      Hi, just want to be sure what you mean. I have this problem: “safari cant establish…”. But when i use hotspot from phone it is actually conected to wifi (thats what it shows). Is this the problem you had? So if i understands you right i need to call internet guy to change wifi “extenter”? Sorry im noob in computers and even more in networks problem…

    JO
    John Apr 26, 2018

    I solved it by whitelisting the site. I have adguard, just add the site to the whitelist and should work from now on.

    Reply
    AN
    ana Jan 15, 2019

    Thank you so much! This has been driving me nuts for months, I took my laptop to technicians and the store i got it from and none of them had any clue what was wrong. The first solution fixed everything , super easy as well! Thank you!

    SW
    Shane Warren Author Sep 21, 2019

    It means that you should call the company that provides you with the internet connection and have them check out your router and other internet equipment.

    SD
    Shrutika Dumbre Apr 25, 2020

    Hi,I am using safari in my windows and unable to open my work URL in it. I am getting “Cant establish secure connection to server” error.Thanks

      SW
      Shane Warren Author Apr 26, 2020

      Are you using any Wifi Extender? if so, try to use an ethernet cable for connection and check if that fixes the issue. Furthermore, check if the internet is configured to run as IPV6.

    JR
    Jamison Rea Dec 12, 2021

    Hi guy’s, Have visited a site for a long time both on a new iMac an older. Very much the same. But on both computer’s regarding the same website, safari say’s it can’t connect to the website. This is driving nut’s. Sometimes safari will connect, sometimes won’t. I have tryed all above advice, an nothing work’s. Can you please help?.

      MZ
      Muhammad Zubyan Author Dec 14, 2021

      Can you try to connect to that website from your phone? or if you don’t have a phone you can try from another browser.