How to Fix Secure Connection Error in WordPress

How to Fix Secure Connection Error in WordPress

Are you having issue on solving establish secure connection error. It occurs when you are trying to install or update a WordPress plugin or theme from official WordPress.org directory. So, we will show you why this error occurs and how to easily fix secure connection error in WordPress.

Reason Unable to Establish Secure Connection Error in WordPress?

We all know that WordPress comes with a built-in system to manage wordpress updates. This system regularly checks for updates and show notifications for you to install plugins / themes updates. So it needs to connect to the WordPress.org website in order to check for updates or install them. Due to some misconfiguration on your WordPress hosting server, your website may fail to connect with WordPress.org website. This will result in a secure connection error, and you will see an error message like the screenshot below:

let’s see how to easily fix secure connection error in WordPress.

How to Fix Secure Connection Error in WordPress

There are different ways to to fix this kind of error in WordPress, anyone below can solve this issue:

Fixing WordPress Secure Connection Error on Localhost

If you are running WordPress on your own computer (localhost), then you may not have cURL extension enabled for PHP. This extension is required to access WordPress.org for updates.

You will need to edit the php.ini file on your computer. This file is usually located in the PHP folder of your Mamp, Xampp, or WAMP folder.

If you are on a Windows computer, then look for the following line:

;extension=php_curl.dll

Mac and Linux users would have to look for this line:

;extension=curl.so

Now you need to remove the semicolon before the text to enable the extension. Don’t forget to save your php.ini file.

Lastly, don’t forget to restart the Apache server for changes to take affect.

Check Open Ports in Firewall

If cURL extension is properly installed on your local server, then the next step is to check your internet connection firewall.

Your computer’s firewall may be blocking outgoing connections from local server to WordPress.org. If you are on Windows, then press the start button and search for Windows Firewall. Mac users can find firewall settings in System Preferences » Security & Privacy

You need to add Apache to your firewall’s allowed programs and allow both incoming and outgoing connections.

You will need to restart Apache for changes to take effect.

Fixing WordPress Secure Connection Error using Hosting and Server Related Issues
Shared Hosting Server

If your shared hosting server is under DDoS attack, then it is likely that the connection to WordPress.org will timeout causing the secure connection error.

In that case, you can wait for a few minutes and try again. If the error persists, then you need to reach out to your web hosting company’s support team.

Cloud or VPS Server Connectivity Issue

If you are on a cloud or VPS hosting, then it is possible that your server is unable to connect to WordPress.org due to some DNS issues.

In that case, you can point your server directly to WordPress.org servers. You will need to connect to your server using SSH.

SSH is short for secure shell which is an encrypted protocol that allows you to connect to your server using command line tools.

Windows users can use a tool called PuTTy whereas Mac / Linux users can use the terminal app.

You will need login credentials for the account with shell access to your hosting account. You can get this information from your hosting account’s cPanel dashboard or ask your web hosting server provider.

In the terminal, you can connect to your server like this:

ssh username@example.com

Don’t forget to replace username with your own username and example.com with your own domain name.

Once connected, you need to run the following command:

sudo nano /etc/hosts

This will open a file, and you will need to add the following code at the bottom of the file:

66.155.40.202 api.wordpress.org

You can now save your changes and exit the the editor. Visit your website to see if this resolved the error.

I think WpressBeginner has solve 80%/of your issue on this, but still if you have more question please use our comment session or chat us up of Facebook, we will reply you as soon as possible.

Share this Post

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top