This example contains an error, the file name in sample_push.php is incorrect "server_cerificates_bundle_sandbox.pem", the correct name is "server_certificates_bundle_sandbox.pem". For tests only, you can put pem files in the root directory of your apns site. I had the same problem, but now it works fine.
Good luck.
source share