0

I used bouncy castle and JSCEP to create my certificate. Now i have my private key and .cer certificate. I would now need to create pfx or p12 file out of this using Java or Bouncy castle.

tshepang
  • 12,111
  • 21
  • 91
  • 136
shatthi
  • 656
  • 3
  • 10
  • 23

1 Answers1

0

Look at the Java KeyStore class, and how to get an instance of it with the PKCS12 keystore type.

Then look at the setKeyEntry() and store(). That should give you a very good start to achieving your goal.

gtrig
  • 12,550
  • 5
  • 28
  • 36