Reputation: 6241
I'm trying use open source apns-php.
In the certificates' instructions, it is written how to generate the certificates.
I've ended up with two certificates:
1. server_certificates_bundle_sandbox.pem
2. entrust_root_certification_authority.pem
From your knowledge where should I upload them to?
(I'm doing this for the first time)
Upvotes: 3
Views: 849
Reputation: 54212
From the "tutorial" in the link provided in your question, you should use server_certificates_bundle_sandbox.pem as your Sandbox APNS certificate.
You should upload to a folder out of your web root. Example:
if you web root is /var/www/
, you can upload to /var/certrepo/server_certificates_bundle_sandbox.pem
. Point your PHP script's certificate to this location, and you'll be able to use the certificate.
The entrust_root_certification_authority.pem has no use in your PHP script.
Important: Note that the certificate is a Sandbox certificate, which you use it to test out your APNS logic. To apply to production environment (which allows higher push notification rate), use Production certificate and connect to production APNS server.
Upvotes: 3