简体   繁体   中英

Where should I put the .pem files for ApnsPHP to work?

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

Fatal error: Uncaught exception 'ApnsPHP_Exception' with message 'Unable to read certificate file 'server_cerificates_bundle_sandbox.pem'' 

This example contains an error, the name of file in sample_push.php is wrong 'server_cerificates_bundle_sandbox.pem', correct name is 'server_certificates_bundle_sandbox.pem'. Only for tests, you can put pem files in root directory of your apns site. I had the same problem, but now it works fine.

Good luck.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM