1. Create a certificate signing request using
KeyChain. Use general name : Rasperry, save as Raspberry.cerSigningRequest.
2.
Create iOS Development certificate using Rasperry.cerSigningRequest. Download it and open it. It will be added to
KeyChain. See under My Certificates.
3. Create App ID: RaspBerry with Push Notification option selected.
4. Create Certificate for Push Notification
5. Link Push Certificate to App by editing the AppID and choosing the Push certificate under Push Notifications
6. Download push certificate (aps_development.cer)
7. Double click the certificate and it will be added to the keychain (Apple Development iOS Push Services: com.yourdomain.raspberry). Caution: there is another certificate+private key pair for ios Development, don’t use that.
8. Export this certificate to Certificates.p12
9. For calling from PushSharp:
a. opensslx509 -in aps_development.cer -inform DER -out aps_development.pem -outform PEM
b. opensslpkcs12 -nocerts -out Certificates.pem -in Certificates.p12
c. opensslpkcs12 -export -in aps_development.pem -out aps_development.p12 -inkey Certificates.pem
10. For using with PHP script:
a. openssl x509 -in aps_development.cer -inform der -out raspberry_cert.pem
b. openssl pkcs12 -nocerts -out raspberry_key.pem -in Certificates.p12
c. cat raspberry_cert.pem raspberry_key.pem > raspberry.pem
11. Use aps_development.p12 for PushSharp, Use raspberry.pem for PHP.
Setup PHP
2.
Rename php.ini-production to php.ini
3.
Uncomment export_dir=./
4.
Modify path to ./ext/
5.
Uncomment extension=php_openssl.dll
6.
Run PHP.exe test.php