immobiliare / ApnsPHP

ApnsPHP: Apple Push Notification & Feedback Provider
BSD 3-Clause "New" or "Revised" License
1.44k stars 453 forks source link

Where to get the Entrust Root CA PEM file? #85

Open mstralka opened 9 years ago

mstralka commented 9 years ago

In the sample code, entrust_root_certification_authority.pem is used as the Root Certificate Authority file. Is this file readily available somewhere, or do I have to create it from Entrust's certificates?

In Abstract.php, it provides this link as a reference: https://www.entrust.net/downloads/root_index.cfm

When I go there and select Personal Use and Secure Server Installation as the Reason for download, I'm not sure which file(s) to download in order to create the PEM file. For instance, if I select Root Certificates, I then see several options, each with several files, and none of them are a PEM file:

Which files should I download to create the PEM?

Thanks in advance

NicolasCayet commented 9 years ago

You should choose the Entrust.net Certification Authority (2048) version.

For development (APN sandbox server), it works well. I've still not tested the production push, but based on documentation at https://code.google.com/p/apns-php/wiki/CertificateCreation, you should use the same entrust file for prod environment.

JuanCAlpizar commented 8 years ago

where can I learn more about this Certification Authority? I know where to get it but I mean, is this the only one valid place to get one? Can you make one for your own? Is there a link on the Apple documentation that explains this further? I was using an old Binary API and now that I've switched to this I'm looking at this new certificate and I'm a bit lost about it