简体   繁体   中英

Generating JKS file from CRT and P7b

I know how to generate a.jks file from.crt &.key file. But the ssl that I have received contains three file (.crt,.p7b,ca bundle file). How would I generate.jks file from these file for tomcat. Thanks in advance

Try sth like this:

openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer
openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfx -certfile CACert.cer
keytool -importkeystore -srckeystore certificate.pfx -srcstoretype pkcs12 -destkeystore keystore.jks -deststoretype JKS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM