title: Curl OpenSSL error 141A318A tls_process_ske_dhe:dh key too small
body: <p>I have a webapplication that makes a curl call to a different site to get data.
  Since my webspace provider (ionos) made some changes to the server, the curl call is no longer working.</p>
  <p>my curl call looked like this:</p>
  <pre><code>$ch = curl_init();
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
  curl_setopt($ch, CURLOPT_URL, $link);
  curl_setopt($ch, CURLOPT_HEADER, false);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $sResult = curl_exec($ch);
  curl_close($ch);
  </code></pre>
  <p>It didnt work. $sResult was empty.
  I changed my code and tried</p>
  <pre><code>$test = file_get_contents($link);
  </code></pre>
  <p>this gives me the error:</p>
  <pre><code>PHP Warning:  file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
  error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small
  </code></pre>
  <p>is there something missing in my curl call or file_get_contents call?</p>