Guest User

Untitled

a guest
Jan 18th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. # Convert the .cer file into a .pem file:
  2. $ openssl x509 -in aps_development.cer -inform der -out PushChatCert.pem
  3.  
  4. # Convert the private key’s .p12 file into a .pem file:
  5. $ openssl pkcs12 -nocerts -in PushChatKey.p12 -out PushChatKey.pem
  6.  
  7. # Finally, combine the certificate and key into a single .pem file
  8. $ cat PushChatCert.pem PushChatKey.pem > ck.pem
  9.  
  10. # At this point it’s a good idea to test whether the certificate works.
  11. $ telnet gateway.sandbox.push.apple.com 2195
  12.  
  13. # Let’s try connecting again, this time using our SSL certificate and private key to set up a secure connection.
  14. $ openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert PushChatCert.pem -key PushChatKey.pem
Add Comment
Please, Sign In to add comment