title: warning: stream_socket_client(): unable to set private key file
body: <p>unable to get this getting these errors when running PHP in terminal as php simplepush.php</p>
  
  <pre><code>Warning: stream_socket_client(): Unable to set private key file `/users/accenture/Desktop/newAPNS/ck.pem' in /users/accenture/Desktop/newAPNS/simplepush.php on line 22
  
  Warning: stream_socket_client(): failed to create an SSL handle in /users/accenture/Desktop/newAPNS/simplepush.php on line 22
  
  Warning: stream_socket_client(): Failed to enable crypto in /users/accenture/Desktop/newAPNS/simplepush.php on line 22
  
  Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /users/accenture/Desktop/newAPNS/simplepush.php on line 22
  
  Failed to connect: 0 
  </code></pre>
  
  <p>I created all certificates and pem file by using raywenderlich article,  <a href="http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1#comments" rel="noreferrer">http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1#comments</a></p>