Mysql ssl connection with real connect giving error <p>I am getting this error while trying to connect mysql on SSL.</p> <blockquote> <p>Warning: mysqli_real_connect() [function.mysqli-real-connect]: SSL operation failed with code 1. OpenSSL Error messages: error:14082174:SSL routines:SSL3_CHECK_CERT_AND_ALGORITHM:dh key too small in /usr/www/test/testing.php on line 13</p> </blockquote> <p>This works fine on my local wamp or xampp but not on the hosting web server</p> <p>What can be done to solve this ? Any help will be appreciated.</p> <p><strong>After Notes -</strong></p> <p>I was originally using </p> <pre><code>$db-&gt;ssl_set('client-key.pem', 'client-cert.pem', 'ca-cert.pem', NULL, 'NULL'); </code></pre> <p>and it used to work fine for years but only after we upgraded to different SSL certs it stopped working. </p> <p>It should be what Mel_T just answered.. </p>