Raj

Raj

  • NA
  • 2
  • 0

Extract Public/Private key from P12 or PFX file

Oct 4 2006 2:59 PM
Hi

I am relatively new to this technology. I generate a cert using a keytool which generated the .jks file. I changed the type of the file to .p12 file. Then, I went thru MMC and added that p12 file under certificate\personal and Trusted Sites.

My real issue is now, I want to read that .p12 file and extract the public and private key so that I can perform my encryption and decryption.

I looked every where I can and completly giving up? Does anybody have any idea how to do this? if sum1 ca help me with the code I wud very much appreciate it.

Thnx