Fwd: Trying to generate a RSA private key

Mark Hack markhack at markhack.com
Tue Feb 15 19:30:02 UTC 2022


Use keytool -list -v to ensure that the original store actually
contains a private key
If there is no entry of Entry type: PrivateKeyEntry then the store has
no private key

Mark Hack

On Tue, 2022-02-15 at 18:30 +0100, mary mary wrote:Hello community,
> A beginner here. 
> 
> I would need to extract a private key, PEM or RSA format, from a
> keystore file ("server.keystore") which I have. 
> I've executed:
> 
> keytool -importkeystore -srcstorepass 123456 -srckeystore
> server.keystore -deststorepass 123456 -destkeystore server.p12
> -deststoretype PKCS12
> 
> openssl pkcs12 -in server.p12 -passin pass:123456 -out server-key-
> temp.pem -nodes -nocerts
> 
> But i get an empty file: server-key-temp.pem is empty.
> 
> What's wrong?
> 
> Thank You.
> 
> Kind regards
> 
> 
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20220215/a86e54b2/attachment.htm>


More information about the openssl-users mailing list