User Tools

Site Tools


lifeline:start

Notes

8/5/2009: Implemented a basic server to send push notifications. Currently hardcoded to my iPhone as the recipient of push notifications. Attempted to connect via a PHP script, but the connection times out for some reason.

Screenshot of sample message:

Helpful commands:

Convert from .p12 to .pem:

openssl pkcs12 -nocerts -out apns-dev-key.pem -in private_key.p12

To verify the private key matches a certificate, use the following command:

$ openssl x509 -noout -modulus -in server.crt | openssl md5
$ openssl rsa -noout -modulus -in server.key | openssl md5

DoIT KB Article

Once you have a certificate for push notifications, use the following command to verify that you are able to connect with Apple's servers:

$ openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert apple_push_cert.pem -key apple_push_key.pem

8/4/2009:

Currently pulls last known location of friends from a web service and plots them on a map.

Sample screenshot:

lifeline/start.txt · Last modified: 2009/08/04 16:26 by mgriepentrog