Safari Can’t Establish A Secure Connection: Tips To Resolve Connectivity Error

Safari is one of the best web browsers in the world, which offers some special features that no other browser can offer. It was developed and launched by Apple that facilitates users to sync reading lists, tabs, history, bookmarks, and passwords through iCloud. Some special features of this browser include zooming into web pages and private browsing.

Several reports from the users suggest that after a certain period, Safari can either stop working or works selectively. In that case, it shows a message that the browser can’t open the specific page. This occurs when Safari can’t establish a secure connection to the server. 

This error can occur due to many reasons, which we will discuss in the next section. In this post, we will cover all the fixes that you can apply to troubleshoot this connection error in Safari.

Possible Causes Behind This Error

If Safari can’t establish a secure connection, it happens due to various reasons. So, let’s take a look at the top reasons for getting this error:

  • HSTS Cache
  • ISPs DNS Settings
  • Antivirus Web Shield Feature
  • Weak Website Encryption
  • IPv6
  • Browsing History

We will discuss the problems and corresponding solutions in the next section. 

Solution To Fix Safari Can’t Establish A Secure Connection Issue

This problem can be quite frustrating for Internet users who use the Safari browser every day. Especially, this connectivity issue is troubling Mac users the most. So, if you are experiencing this error, we have a few solutions that can easily fix it.

Clear HSTS Cache

HSTS cache can cause the error message and show it in your browser. Just by removing the cache, you can fix this problem. To do this, you need to run some command in the Terminal app.

1> killall nsurlstoraged

2> rm -f ~/Library/Cookies/HSTS.plist

3> launchctl start /System/Library/LaunchAgents/com.apple.nsurlstoraged.plist

After successful completion of the above-mentioned process, restart the Safari browser. Then visit those sites where the error was showing up. You will be prompted to enter your password to access them. Hence, after entering that, Safari will open those pages smoothly on a secured connection.

Change DNS Settings

Sometimes, faulty DNS server entries can cause the error message “Safari Can’t Establish A Secure Connection”. To fix this error, make sure you use a secure connection by utilizing open entries.

Open the System Preference and go to the Network option. Look for the “Advanced Settings” option, where you need to remove all the entries after selecting the DNS tab. Click on the “Add” button and enter “8.8.8.8” and repeat the same process by typing “8.8.4.4”.

Restart the browser after completing the process. Now, open a webpage on Safari to see whether the error is still appearing.

Adjust the Antivirus Web Shield Feature

Web Shield is a feature that protects your system from any suspicious websites and malicious threats. Due to that, users may face issues like blocked content. To get rid of this issue, where Safari is unable to establish a secure connection, try disabling the Web Shield temporarily. 

Finally, restart your Safari browser after applying this method. If the problem persists, try a different method to resolve the connectivity error.

Fix Weak Website Encryption

Weak encryption of a website can also prevent Safari from establishing a secure connection to the localhost. Besides, this error can be detected by the Mac OS during browsing. Safari browser started this security encryption to appear from OS version 10.10.4 and iOS version 8.4. 

But, if the issue is due to missing or incorrect certificate problems, you can apply this method. Also, if Safari detects that the connection route is established via another proxy server, this solution might help.

To stop this error message from appearing in Safari, try to open the blocked website in another browser. 

There is a green lock button next to the URL box. So, click on that and select “More Information”. After that, another window will appear where you need to choose the “Security” tab.

Below that section, click on “Show Certificate”. Close the details tab and see the current certificate list for the website, which will open automatically. 

The next step is to run “Keychain” on the Mac OS. Once the Keychain app is launched, select the system roots to see the list of certificates. Now, look for the one that is being blocked by Safari. 

Open the “Trust” option by double-clicking on it and choose “System settings”. Change the option to resolve the connectivity issue. These above-mentioned steps may vary depending on the type of browser you are using.

Disable IPv6

If the previous steps didn’t work, disconnect the device from the active WiFi network. Try to connect the device to another wireless network. Now, open the blocked page and see whether the error code is still appearing. 

In case, you can access the blocked pages on the new network, turn off IPv6 on the router. To do so, navigate System Properties > Network > Your Network > Advanced > Select “Manually” to disable IPv6.

Clear Browsing History

Sometimes, too many files in browsing history can cause an error like “Safari Can’t Establish A Secure Connection”.

For resolving this, go to Safari > Clear History > All History. This will lead to logging out from all the websites you previously surfed on Safari. It will also wipe out the details from local storage. It may seem annoying but, you can do it a few times each day for fixing connection issues on this web browser.

There is another way to copy the certificates manually into “Keychain Access”. This will make it trustworthy via the “Terminal” command. After applying one of the above-mentioned methods, try to open a specific blocked page. You will have the option to add an exception by clicking the “Visit the website” link.

We hope, the above discussion provided some effective solutions, which you are looking for fixing this error. Apply the instructions properly and you will not see “Safari Can’t Establish A Secure Connection” error after that. If you are not satisfied with the results, reach us by posting your feedback in the comments section.