3.2.4.1 Import Intermediate CA certificate

This topic provides detailed information on importing Intermediate CA certificate into keystore.

Most Certificate Authorities do not use the root CA certificates to issue identity certificates for use by customers. Instead, Intermediate CAs issue identity certificates in response to the submitted CSRs.

If the Intermediate CA certificate is absent in the Java Standard Trust store, the trust path for the certificate will be incomplete for the certificate, resulting in warnings issued by Weblogic Server during runtime. To avoid this, the intermediate CA certificate should be imported into the identity keystore. Although the intermediate CA certificate can be imported into the Java Standard Trust store, this is not recommended unless the intermediate CA can be trusted.

The following command should be executed to import the intermediate CA certificate into the keystore.

keytool -importcert -alias alias -file cert_file -trustcacerts -keystore keystore

In the above command,

  1. alias is used to identify the public and private key pair. Specify the alias of the key pair used to create the CSR in the earlier step.
  2. cert_file is the location of the file containing the intermediate CA certificate in a PKCS#7 format (PEM or DER file).
  3. keystore is the location of the keystore containing the public and private key pair.

The trustcacerts flag is used to consider other certificates (higher intermediaries and the root CA) in the chain of trust. If no chain of trust is established during verification, the certificate will be displayed and one would be prompted to verify it. It is recommended that due diligence be observed when the prompt is displayed to verify a certificate when a chain of trust is absent.

Listed below is a sample execution of the command.

D:\Oracle\weblogic11g\jrockit_160_05_R27.6.2-20\bin>keytool - importcert -alias verisigntrialintermediateca -fileD:\keystores\VerisignIntermediateCA.cer -trustcacerts -keystoreD:\keystoreworkarea\FCUBSKeyStore.jks
Enter keystore password:<Enter the password used to access the keystore>

Certificate was added to keystore.