I am getting this error while trying to connect mysql on SSL.
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
This works fine on my local wamp or xampp but not on the hosting web server
What can be done to solve this ? Any help will be appreciated.
After Notes -
I was originally using
$db->ssl_set('client-key.pem', 'client-cert.pem', 'ca-cert.pem', NULL, 'NULL');
and it used to work fine for years but only after we upgraded to different SSL certs it stopped working.
It should be what Mel_T just answered..