Peer Certificate errors with SSL
A bug in early versions of PHP 5.6 can cause difficulty in using SSL connections with ClearDB (and many other MySQL providers). This bug forces Peer Certificate name checking to ON and prevents setting it to OFF. You may receive an error such as:
PHP Warning: mysqli_real_connect(): Peer certificate CN=`db-mm-us-east-01' did not match expected CN=`eu-cdbr-azure-west-d.cloudapp.net'
or some other error referring to Peer Certificate or Certificate Name Checking, and the SSL-enabled connection will fail. This bug was reported by the PHP team (see https://bugs.php.net/bug.php?id=68344) and fixed in minor release 16.
If you receive this error and you’re using PHP release 5.6, please update your system to at least 5.6.16 or later and that should resolve the issue.