Where should I put .pem files for ApnsPHP?

I have two entrust_root_certification_authority.pem and server_certificates_bundle_sandbox.pem , but I'm not sure where to put them. I get this error:

 Fatal error: Uncaught exception 'ApnsPHP_Exception' with message 'Unable to read certificate file 'server_cerificates_bundle_sandbox.pem'' 
+4
source share
1 answer

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.

+5
source

All Articles