Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saturngod/apns_test

APNS Testing with node.js
https://github.com/saturngod/apns_test

Last synced: 2 months ago
JSON representation

APNS Testing with node.js

Awesome Lists containing this project

README

        

##Install

npm install apns_test -g

##Usages

apns_test your_token development|production cert_key_path private_key_pem [Message]

##Example

apns_test 094f11604aa8fddb85c3cef4fd6e30dd42389b45d717113a0d922ee8f4ceb788 development ./cert.pem ./key.pem "Testing APNS"

##Generate Key

Download **.cer** file from Apple Development.

$openssl x509 -in cert.cer -inform DER -outform PEM -out cert.pem

Open Keychain Access and select push notification certificate and private key. Right Click export.

![keychain export](http://cl.ly/WMsG/download/push.png)

Chose .p12 File Format Extension.

$openssl pkcs12 -in key.p12 -out key.pem -nodes