I\'ve been working through Ray Wenderlich\'s tutorials on push notifications using a PHP Script.
Reference: http://www.raywenderlich.com/32960/apple-push-notificatio
add
stream_context_set_option($ctx, 'ssl', 'verify_peer', false);
which defeats the server validation. Credits @One In a Million Apps in a comment above.