Permalink
Browse files

- added some further instructions.

  • Loading branch information...
1 parent 4b74fd5 commit 15d1545dd80793afa61ef134e6f73ba0b41c7985 @niclasmeier niclasmeier committed May 22, 2012
Showing with 11 additions and 3 deletions.
  1. +10 −2 README.md
  2. +1 −1 project.clj
View
@@ -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
View
@@ -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"]

0 comments on commit 15d1545

Please sign in to comment.