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

Support Reading Certificate in PKCS12 file format (.p12) #17

Open
vanstee opened this issue Jul 9, 2012 · 4 comments
Open

Support Reading Certificate in PKCS12 file format (.p12) #17

vanstee opened this issue Jul 9, 2012 · 4 comments

Comments

@vanstee
Copy link
Member

vanstee commented Jul 9, 2012

It would be nice if you could just hand over the .p12 certificate that Apple provides, instead of having to convert it to a .pem.

NOTE: @kyledrake: "however using the PKCS12 class directly will break JRuby support, which does not have this class available."

This was spun out of #13.

Thanks for bringing this up @betamatt, @linjunpop, and @kyledrake.

@kyledrake
Copy link
Contributor

Related: jruby/jruby-ossl#8

@kyledrake
Copy link
Contributor

This is not ideal, but here is some code to use a command line for processing with JRuby. We've been using it internally so I know it works. https://gist.github.com/3077989

This code example would add a dependency on Escape, but it would be trivial to remove that dependency and not use it.

@vanstee
Copy link
Member Author

vanstee commented Jul 9, 2012

I think we should probably just not accept the PKCS12 format when using jruby. I'd rather just have jruby users do the conversion on their own (especially since Apple recommends that anyway). :/

I'll follow jruby/jruby-ossl#8 and include it once jruby supports it.

I might be open to other methods of doing this though. Shelling out just seems really dirty to me.

@kyledrake
Copy link
Contributor

Oh, it's totally dirty. And there might be security implications for some users too. I'd rather just provide users the instructions to do the conversion themselves in that case.

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

No branches or pull requests

2 participants