Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow PKCS#8 private keys in .pem files #101

Merged
merged 2 commits into from
Dec 18, 2017

Conversation

jameshfisher
Copy link
Contributor

No description provided.

@jameshfisher
Copy link
Contributor Author

This should fix #100

@jameshfisher
Copy link
Contributor Author

To add some more context, we use sideshow/apns2 internally at Pusher, and we've experienced issues with some customers' openssl versions generating .pem files with PKCS#8 private keys. pusher/libPusher#257

@coveralls
Copy link

coveralls commented Dec 3, 2017

Coverage Status

Coverage increased (+0.09%) to 91.753% when pulling 868878c on jameshfisher:parse-pkcs8 into cf826c6 on sideshow:master.

@jameshfisher
Copy link
Contributor Author

@sideshow WDYT?

@SimpleApp
Copy link

SimpleApp commented Dec 12, 2017

@sideshow Is there something wrong with that pull request ? I confirm that the "regular" method for creating a PEM from Keychain, using openssl , creates PEM files that are unusable by this library. I also pulled @jameshfisher fork, and it solves the bug. I think it's quite a critical bug.

@sideshow
Copy link
Owner

Sorry @jameshfisher @SimpleApp for not taking a look at this sooner.
It looks awesome, thanks so much for the contribution!

I had seen this problem before with different versions of open SSL. Can you guys confirm exactly which version you are running? Looking forward to merging this.

@jameshfisher
Copy link
Contributor Author

@sideshow I've seen it with at least two different versions of OpenSSL:

$ openssl version  # MacOS, which uses the LibreSSL fork
LibreSSL 2.2.7
$ openssl version  # on Ubuntu 14.04
OpenSSL 1.0.1f 6 Jan 2014

@SimpleApp
Copy link

@sideshow Same here, used LibreSSL 2.2.7 (mac OS High Sierra 10.13.1)

@sideshow sideshow merged commit df275e5 into sideshow:master Dec 18, 2017
@sideshow
Copy link
Owner

Thanks for the PR :)

@jameshfisher
Copy link
Contributor Author

thanks! :)

@jameshfisher jameshfisher deleted the parse-pkcs8 branch December 18, 2017 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants