Import PKCS7 (Chained Certificate) using KeyTool command to JKS
问题 I have a CA issued CERT in PKCS#7 format. It has certificates (chained) within it. Keytool does not recognize the PKCS7 format. I have tried OpenSSL tool to convert PKCS7 format certificate to PEM format and it fails. I receive an error message "Unable to load PKCS7 object". How do I import the PKCS7 cert chain to my JKS? 回答1: As you can read in the keytool reference for -importcert command: Reads the certificate or certificate chain (where the latter is supplied in a PKCS#7 formatted reply)