Convert PKCS7 certificate to PKCS12 in JAVA

2.6k views Asked by At

I need to convert PKCS7 certificate to PKCS12. I got function which return PKCS7 certificate format and in order to put this certificate to IBM certificate manager I need to convert this certificate to PKCS12 PEM format. Do you have any idea how to do that. I'm using JAVA.

1

There are 1 answers

2
idohu On

Try using the following command to convert PKCS7 to PEM: openssl pkcs7 -print_certs -in certificate.p7b -out certificate.pem

link

Or you can also use the SSL Shopper converter: https://www.sslshopper.com/ssl-converter.html