I managed it another way (after pulling my hair out for quite a while),
using OpenSSL.
openssl req -new -keyout bobkey.pem -out bobreq.pem -days 360
cat bobreq.pem bobkey.pem > bobreq2.pem
openssl ca -policy policy_anything -out bobcert.pem -infiles bobreq2.pem
openssl pkcs12 -in bobcert.pem -out
Hi,
What I did was this:
1) I created a keystore with a new private key via:
keytool -genkey
... which will create a JKS keystore
2) I then load the PKCS12 keystore
KeyStore inputKeyStore = KeyStore.getInstance( "PKCS12" );
inputKeyStore.load(new
FileInputStream("replace_with_your_PKCS12_keysto
Hi,
Can anyone tell me how to get my client certificate, complete with
private key, into my Java keystore? I have my openssl generated
certificate and private key in .pem files. I can get it in sometimes,
but never with private key, and if I do get it in I get errors when I
try to use Java to