Convert Apple Push Certificate from .pem to .p12 (PKCS12)?

Up vote 0 down vote favorite share g+ share fb share tw.

I am trying to convert an Apple Push Certificate (received in . Pem format from identity.apple.com/pushcert/) to PKCS12 on a Windows machine. I have OpenSSL installed.

Here are the steps I am trying: Generate CSR openssl req -out d:\cert\request. Csr -new -newkey rsa:2048 -nodes -keyout d:\cert\csrPrivateKey. Pem Upload signed CSR to Apple and download issued certificate (pushCert.

Pem) Convert . Pem certificate to pkcs12 openssl pkcs12 -export -in d:\cert\pushCert. Pem -inkey d:\cert\csrPrivateKey.

Pem -out d:\cert\pushCert. P12 -name "apns-cert" When I try this last step, I get an error "No certificate matches private key" and an empty file is created. If anyone has any suggestions it would be greatly appreciated.

Thanks! Apple certificate push-notification apns link|improve this question edited 2 hours agoSam DeHaan3,795416 asked 16 hours agoDave11.

These commands should work. The error seems to indicate that the public key in pushCert. Pem doesn't match the private key with which the CSR was generated.

Is there more than one certificate (--BEGIN/.../END--) in pushCert. Pem (perhaps you get the chain and your certificate isn't in first position). – Bruno 2 hours ago Bruno, I agree completely.. it's driving me crazy!

The pushCert. Pem only contains one certificate. Is it possible I don't have openssl configured correctly, and that is why it is unable to match the private key to the cert?

– Dave 1 hour ago Do the public keys shown with openssl rsa -text -noout -in csrPrivateKey. Pem, openssl req -text -noout -in request. Csr and openssl x509 -text -noout -in pushCert.

Pem match? – Bruno 58 mins ago No. The modulus in request.

Csr and csrPrivateKey. Pem match, but the pushCert. Pem I downloaded from Apple is different.

This is definitely the problem, but I am not sure how to fix it or what I did wrong. – Dave 31 mins ago.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions