I have upgraded my Multisite setup WordPress to 3.6.1. And after that, when I do Network Upgrade > Database Upgrade it’s showing:

Warning! Problem updating http://www.example.com/site1. Your server
may not be able to connect to sites running on it.

Error message: Peer certificate cannot be authenticated with known CA
certificates

What happened please?


Info

  • I’m currently running the Site under Trusted Wildcard SSL (not self-signed), but installed on the Load-balancer only. (Apache Servers doesn’t (need to) have the Cert installed, apparently.) Is this the root cause?
  • The Database is at Amazon RDS (with the default settings) which is not with SSL there. *

9 Answers
9

If possible, you should try and fix the cause of this error – invalid SSL certificates. But there are some instances where this is not possible or desirable. One obvious one being development sites using a self-signed SSL certs.

One way around this is to set $ssl_verify to false before line 1161 of wp-includes/class-http.php:

curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, ( $ssl_verify === true ) ? 2 : false )

The way I’ve done this in the past is by adding:

$ssl_verify = false;

To line 1159, before doing a multi-site upgrade and removing it afterwards. It looks like there should be much more sophisticated way of doing this. It looks from the code around it that judging by the code around it that you should be able to parse paramater sslverify=false but that doesn’t appear to work (probably because the upgrade wrapper doesn’t pass through the parameters).

To avoid making changes to Core I would un-do this change once you have completed the upgrade.

Leave a Reply

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