我应该把.pem文件ApnsPHP的工作


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

我有我的两个文件entrust_root_certification_authority.pemserver_certificates_bundle_sandbox.pem,但我不确定我应该把它们放在哪里。我得到这个错误:

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

这个例子包含一个错误,sample_push.php中的文件名是错误的'server_cerificates_bundle_sandbox。"server_certificates_bundle_sandbox.pem",正确名称为"server_certificates_bundle_sandbox.pem"。仅对于测试,您可以将pem文件放在apns站点的根目录中。我有同样的问题,但现在它工作得很好。

好运。