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

Error: unsupported encrypted-private-key algorithm #226

Closed
Fi5t opened this issue Oct 23, 2020 · 3 comments
Closed

Error: unsupported encrypted-private-key algorithm #226

Fi5t opened this issue Oct 23, 2020 · 3 comments

Comments

@Fi5t
Copy link

Fi5t commented Oct 23, 2020

Hello!

I tried to get a private key from Java Keystore and got a such error: unsupported encrypted-private-key algorithm: 1.3.6.1.4.1.42.2.17.1.1 when called a method GetPrivateKeyAndCerts(). What am I doing wrong?

@alokmenghrajani
Copy link
Contributor

That sounds like a JKS, which we don't currently support. Easiest is to convert JKS to JCEKS or PKCS12 using keytool. https://github.com/pavel-v-chernykh/keystore-go seems to support JKS, so we could add that if anyone wants to make a PR?

@Fi5t
Copy link
Author

Fi5t commented Oct 24, 2020

@alokmenghrajani yeah, I use JKS. And I tried to use https://github.com/pavel-v-chernykh/keystore-go, but it has no an ability to decrypt private keys

@Fi5t
Copy link
Author

Fi5t commented Oct 26, 2020

The author of keystore-go added an ability to decrypt private key entries.

@Fi5t Fi5t closed this as completed Oct 26, 2020
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

No branches or pull requests

2 participants