title: PHP cURL error "security library failure."
body: <p>I'm using the following code to send an apns notification for iOS. It was working fine before but out of no where I started getting this response from cURL &quot;security library failure.&quot; with code 0.</p>
  <pre><code>    $ch = curl_init($url);
      curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($sample_alert));
      curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
      curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
      curl_setopt($ch, CURLOPT_SSLCERT, $certificate);
      curl_setopt($ch, CURLOPT_SSLCERTPASSWD, $pem_secret);
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
      $response = curl_exec($ch);
  </code></pre>
  <p>This issue only seems to be happening in my development environment, no matter what data is passed in.</p>
  <p>$url =  &quot;https://api.development.push.apple.com/3/device/$device_token&quot;;</p>
  <p>$sample_alert =</p>
  <pre><code>           {&quot;aps&quot;:{&quot;alert&quot;:&quot;sample notif message&quot;,&quot;badge&quot;:&quot;badge&quot;,&quot;sound&quot;:&quot;default&quot;}
  </code></pre>
  <p>$headers =</p>
  <pre><code>[&quot;apns-topic: apns.topic&quot;]
  </code></pre>