Re: Fwd: Trying to generate a RSA private key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Mark,
Thank you so much for your input. 
Indeed there is not an entry for the private key, and that let me understand why i could not extract it.

But now the issue would become different, and I'll try to share it possibly even if the subject changes, in case i could get advice. 
I needed the private key for adding it in wireshark for decoding some encrypted messages exchanged between "my" server and a client. 
If the private key does not exist, how we could decode the messages?

Thank You!.

Kind regards

 loredana

Il giorno mar 15 feb 2022 alle ore 20:30 Mark Hack <markhack@xxxxxxxxxxxx> ha scritto:

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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux