I get this error when auto-updating the plugin: "Download failed. SSL peer certificate or SSH remote key was not OK"
If you are using shared or managed hosting, contact your host's customer support department, provide them with this information and ask them to do it for you.
Some customers have reported receiving the following error when attempting to auto-update GravityView:
“Download failed. SSL peer certificate or SSH remote key was not OK”
This is an OpenDNS issue
The server is using OpenDNS to look up information about domains; this error is specific to OpenDNS. This is not an issue with your website or with GravityView's SSL certificate, the problem is with OpenDNS. The changes below will have your server use Google's Public DNS servers instead of OpenDNS DNS servers to look up information about a domain.
To fix the issue:
- FTP or SSH into your server
- Go to /etc/resolv.conf
- Replace this code:
nameserver 208.67.222.222 nameserver 208.67.220.220
With this code:
nameserver 8.8.4.4 nameserver 8.8.8.8
- Save the resolv.conf file
- Restart the Apache server (the commands vary, based on your server software)
- You should now be able to update GravityView!
This article's information is based on the article on Siteber and this WordPress.org thread.