title: iPhone Push Notification Unable to Connect to the SSL Server
body: <p>I followed the instructions at:</p>
  
  <p><a href="http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/" rel="nofollow noreferrer">How To Build An Apple Push Notification Provider Server</a>
  When I run the php script on my MacOSX or on Windows using Parallel desktop, the script works. But as soon as I run it on my hosting I get the message:</p>
  
  <pre><code>Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Connection timed out) in provider.php on line 23
  Failed to connect 110 Connection timed out 
  </code></pre>
  
  <p>Does this have to do with the certificates? If so how can I make a certificate that could work on the computer where my hosting is located.</p>