Hello,
i need to generate a PKCS12 file using Java.
Actually, i need to automate the following certificate generation using openssl (the ca was created previously and is not pretended to automate its creation):
- > openssl genrsa -out client.key 2048
- > openssl req -new -key client.key -out client.csr
- > openssl ca -keyfile ca.key -cert ca.crt -out client.crt -policy policy_anything -infiles client.csr
- > openssl pkcs12 -export -in client.crt -inkey client.key -out client.p12 -name client
I think that i can perform this using JCE, but i didn't find any info related with the PKCS12 generation.
Thanks.
Software/Hardware used:
Java
ASKED:
December 7, 2011 4:10 PM
UPDATED:
February 28, 2012 3:30 PM