Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

OpenSSL::X509::CertificateError when i use mac ox keychain tools export .p12 file. #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guange2015
Copy link

core.rb:69:in `initialize': nested asn1 error (OpenSSL::X509::CertificateError)

@jpoz
Copy link
Owner

jpoz commented May 29, 2012

What's this fixing?

@guange2015
Copy link
Author

fixed.

@jpoz
Copy link
Owner

jpoz commented May 31, 2012

No idea what this is fixing.

What was the specific issue with mac ox keychain tool expert that you were having?

@guange2015
Copy link
Author

to make .p12, i use keychain export in mac osx, not use your guide
openssl pkcs12 -in cert.p12 -out cert.pem -nodes -clcerts
like this:http://www.digicert.com/ssl-support/p12-import-export-mac-server.htm

occur in this time
core.rb:69:in `initialize': nested asn1 error (OpenSSL::X509::CertificateError)

@kaluznyo
Copy link

kaluznyo commented Jun 5, 2012

Same error with your openssl pkcs12 -in cert.p12 -out cert.pem -nodes -clcerts and APNS version 1.0 (master)

@dgalarza
Copy link

I was having a similar issue with this yesterday, however the problem was related to how I was exporting from the keychain tool.. The p12 I was generating was based off of the certificate alone. You must include the private key as well when exporting to a p12, expanding the certificate in the keychain tool and selecting the cert and the key before exporting. I was then able to run openssl pkcs12 on the p12 to generate a working cert resolving the OpenSSL::X509::CertificateError.

@guange2015
Copy link
Author

my pull request can use origin p12 file, not required translate p12 to pem.

the new version
nerdsRob/APNS#2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants