Skip to content

Commit

Permalink
- added some further instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
niclasmeier committed May 22, 2012
1 parent 4b74fd5 commit 15d1545
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions README.md
Expand Up @@ -90,8 +90,16 @@ the ones used by the push service.

## Creating a JKS keystore

Personally I used this [guide](http://www.agentbob.info/agentbob/79-AB.html). Basically you convert the PEM certificate
which Apple provides into the DER format using `openssl`
Personally I used this [guide](http://www.agentbob.info/agentbob/79-AB.html). Basically you convert the .P12 certificate
file which Apple provides into the DER format using `openssl`. You do this in two steps, first you seperate PEM files for
the key and the certifcate and then you generate the DER files

Step 1:

openssl pkcs12 -nocerts -in your-cert.p12 -out key.pem -nodes
openssl pkcs12 -clcerts -nokeys -in your-cert.p12 -out cert.pem

Step 2:

openssl pkcs8 -topk8 -nocrypt -in key.pem -inform PEM -out key.der -outform DER
openssl x509 -in cert.pem -inform PEM -out cert.der -outform DER
Expand Down
2 changes: 1 addition & 1 deletion project.clj
@@ -1,4 +1,4 @@
(defproject herolabs/apns "0.1.0"
(defproject herolabs/apns "0.1.1"
:description "A simple lightweight library to use with the Apple push notification service."
:url "https://github.com/HEROLABS/herolabs-apns"
:dependencies [[org.clojure/clojure "1.3.0"]
Expand Down

0 comments on commit 15d1545

Please sign in to comment.