title: SSL operation failed with code 1: dh key too small
body: <p>I am connecting to my database Google Cloud SQL via SSL. I use codeigniter 3.0 to do so, although the mysqli driver is a bit modified to allow this functionality. </p>
  
  <p>It's been working well for months. However it <em>just</em> started to return this warning:</p>
  
  <pre><code>Message: 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
  </code></pre>
  
  <p>I'm assuming <code>DH Key is too small</code> is the main problem, but I have no idea what that means. I've googled Diffie–Hellman key exchange, along with the message "key too small" but I haven't had much luck. </p>
  
  <p>Is this a sign that the keys on the server have been tampered with? I've checked the last-modified dates on them -- no abnormal recent access.</p>
  
  <p>It could be that my server did some upgrading to PHP or their server configuration, which may result in this breaking, but I wanted to check and make sure that it wasn't something else.</p>
  
  <p>Thanks for any insight / readable material on the subject.</p>