Import .pem public and private keys to JKS keystore

Posted by Rolf on Stack Overflow See other posts from Stack Overflow or by Rolf
Published on 2010-03-20T17:33:46Z Indexed on 2010/03/20 19:31 UTC
Read the original article Hit count: 645

Hi,

I have public and private keys in separate .pem files that I would need to get into a JKS keystore somehow.

Tried using the -import command in KeyTool for this, which gives an "not an X.509 certificate" error.

I'm guessing the solution has to do with OpenSSL, but I'm not entirely sure what to do with it.

Would really appreciate any help with this, since I'm completely clueless with everything crypto-related.

Thanks in advance, --Rolf

© Stack Overflow or respective owner

Related posts about publickey

Related posts about privatekey