1 / 2

Tutorial Certificate Conversion and Certificate Testing for APNS

In this push notifications tutorial, you'll learn how to setup certificate conversion and certificate testing for APNS. Click here to see step by step guide to add this feature to your apps.

pushtryapp
Download Presentation

Tutorial Certificate Conversion and Certificate Testing for APNS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Tutorial: Certificate Conversion and Certificate Testing for APNS PUSHTRY.COM reads the certificate and its key from PKCS12 file CER to PEM openssl x509 -in aps_development.cer -inform der -out pushtryCert.pem Private Key’s PKCS12 to PEM openssl pkcs12 -nocerts -out pushtryKey.pem -in pushtry.p12 MAC verified OK Enter PEM pass phrase: Verifying - Enter PEM pass phrase: Combine CER+KEY to PEM cat pushtryCert.pem pushtryKey.pem > ck.pem Inspecting PKCS12 openssl pkcs12 -in pushtry.p12 output will be like: ... MAC verified OK Bag Attributes ... -----BEGIN CERTIFICATE----- ... ... -----BEGIN PRIVATE KEY----- ... Select appropriate Development or Production, iOS or Mac, and its bundle identifier. Inspecting PKCS12 structure openssl pkcs12 -in pushtry.p12 -info -noout Inspecting PEM openssl rsa -in pushtry.pem -noout -check openssl rsa -in pushtry.pem -pubout openssl x509 -in pushtry.pem -noout -pubkey PKCS12 to PEM openssl pkcs12 -in pushtry.p12 -out pushtry.pem -clcerts -aes256 Not Recommended: Below command does not encrypt the private key (): openssl pkcs12 -in pushtry.p12 -out pushtry.pem -nodes -clcerts PEM to PKCS12 openssl pkcs12 -export -in pushtry.pem -out pushtry.p12

  2. Test your PEM file To test your "PEM" key in sandbox mode use the following command. Press enter to close the connection openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert pushtry.pem -key pushtry.pem To test your "PEM" key in production mode use the following command openssl s_client -connect gateway.push.apple.com:2195 -cert pushtry.pem -key pushtry.pem

More Related