Score:0

Private key is not generating from .p12 file

in flag

I generated my .p12 file using the below command

keytool -importkeystore -srckeystore mycert.jks -destkeystore keystore.p12 -deststoretype PKCS12

The above command successfully generated a 7 KB .p12 file. After this, i tried generating my private key using the below command

openssl pkcs12 -in keystore.p12 -nocerts -nodes -out my_store.key

But it did not work. It created a file with 0 KB.

What am i doing wrong? I referred many blogs but the command is same. can someone please help/guide?

in flag
What about the passwords? Entries in jks and p12 are usually password protected. We're they asked by key tool and openssl?
node_saini avatar
in flag
Strangely no but the cert has a password. Not sure why it didn't ask for any password
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.