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?