Creating the Keystore and Truststore
Note:
For backward compatibility, customers on older versions will have a default keystore and truststore created upon upgrade with backward compatible values.If the keystore and truststore is not present, Oracle Utilities Application Framework will revert to the internal cryptography used in previous releases.
Passwords encrypted using this keystore will be prefixed with ENCKS and legacy password encryption uses prefix ENC.
he settings in this section are defaulted in installation and can be altered using overrides in templates FW_spl.properties.keystore.truststore.include as outlined in the Server Administration Guide.
Typically, a keystore and truststore are created using the java keytool utility manually but the Oracle Utilities Application Framework utilities have been extended to allow customers to create and manage the keystore from the command line.
Before creating the keystore the following settings must be set in the installation, as per the Server Administration Guide:
KS_ALIAS- The alias used to encrypt/decrypt passwords by the Oracle Utilities Application Framework to access the keystore. By default, this is set toouaf.system.KS_ALIAS_KEYALG- The algorithm to be used by theKS_ALIASentry in keystore to encrypt the passwords. By default, this is set toAES.KS_ALIAS_KEYSIZE- The strength of the keystore for theKS_ALIASentry. By default, this is set to 256.KS_HMAC_ALIAS- The HMAC alias used by the Encryption Feature Type of the Oracle Utilities Application Framework. By default this is set toouaf.system.hmac.KS_HMAC_ALIAS_KEYALG- The algorithm to be used by theKS_HMAC_ALIASentry in keystore to encrypt the data. By default, this is set toHmacSHA256.KS_HMAC_ALIAS_KEYSIZE- The strength of the keystore for theKS_HMAC_ALIASentry. By default, this is set to256.KS_KEYSTORE_FILE- Location of the keystore file.KS_MODE- Keystore Padding mode. By default, this is set toGCM.KS_PADDING- Key padding algorithm used for keystore. By default, this is set toNoPadding.KS_STOREPASS_FILE- Keystore Password file.KS_STORETYPE- Keystore type. By default, this is set toJCEKS.TS_ALIAS– Alias used for trust store. By default this is set toouaf.system.TS_ALIAS_KEYALG- The algorithm to be used by theTS_ALIASentry in truststore. By default, this is set toAES.TS_ALIAS_KEYSIZE- The strength of the truststore for theTS_ALIASentry. By default, this is set to256.TS_HMAC_ALIAS- The HMAC alias used by the truststore. By default, this is set toouaf.system.hmac.TS_HMAC_ALIAS_KEYALG- The algorithm to be used by theTS_HMAC_ALIASentry in truststore to encrypt the data. By default, this is set toHmacSHA256.TS_HMAC_ALIAS_KEYSIZE- The strength of the truststore for theTS_HMAC_ALIASentry. By default, this is set to256.TS_KEYSTORE_FILE- Location of the truststore file.TS_MODE- Truststore Padding mode. By default, this is set toGCM.TS_PADDING- Key padding algorithm used for truststore. By default, this is set toNoPadding.TS_STOREPASS_FILE- Truststore Password file.TS_STORETYPE- Truststore type. By default, this is set toJCEKS.Once these settings are specified the keystore/truststore is created using the following command:
initialSetup.sh –k|-KThis generates the keystore (
-k) or truststore (-K) using the credentials outlined in the Keystore or Truststore Password file.