1. Symptom

Issue with WordPress Updates.

When I was trying to update WordPress Plugins I was getting error:

“Download failed. SSL peer certificate or SSH remote key was not OK”

issue_with_updates_wordpress_ssl_1

 

2. Cause

Issue is caused by DNS SERVER settings on the Hosting server. Problem is only with hosting set up with DNS pointing to open DNS Servers (208.67.220.220, 208.67.222.222)

3. Solution:

3.1. In my case ( I use VPS with WHM) I did login to My WHM.

3.2. Then I went to “Networking Setup »Resolver Configuration”

issue_with_updates_wordpress_ssl_2

3.3. Changed Open DNS servers (208.67.220.220, 208.67.222.222) to Google DNS 8.8.8.8 and 8.8.4.4

issue_with_updates_wordpress_ssl_3

3.4. Go to Restart Services »DNS Server (BIND/NSD/MyDNS) and press “YES”

 

After That my updates are working again.