2011-10-25 16 views
4

私は2つのファイルentrust_root_certification_authority.pemserver_certificates_bundle_sandbox.pemを持っていますが、どこに置くべきかわかりません。私はこのエラーを取得する:ApnsPHPの.pemファイルはどこに置くべきですか?

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

答えて

5

この例では、エラーが含まれている、sample_push.php内のファイルの名前が間違っている「server_cerificates_bundle_sandbox.pem」、正しい名前は「server_certificates_bundle_sandbox.pem」です。テストの場合のみ、apnsサイトのルートディレクトリにpemファイルを置くことができます。私は同じ問題を抱えていましたが、今はうまくいきます。

幸運。

+0

私がこのファイルを置く場所についてはどうでしょうか。また、この質問に関連する「http://stackoverflow.com/questions/24501588/cant-get-ios-push-notification-on-server」に関する私の質問にお答えください。 – user807146

関連する問題