Specifying a keystore file
If you are using a TLS connection, you must generate a keystore file to store the mail server's digital certificate and the encryption keys. You must also specify the keystore and truststore properties in the properties file.
To enable a TLS connection, you must first obtain the mail server's digital certificate file. The certificate usually contains the server name, the trusted certificate authority (CA) and the server's public encryption key. You then use the certificate to generate a Java™ keystore file.
You generate the keystore file using the Java keytool utility, which is located in the following directory:
$NCHOME/platform/arch/jre_1.5.6/jre/bin
- Use the keytool utility to generate the keystore
by running the following command:
keytool -import -alias client_certificate -file certificate_file -keystore keystore_name
where:- client_certificate is an alias (any name will
do, for example:
omnibus
). - certificate_file is the mail server's certificate file.
- keystore_name is the name of the output keystore file, for example, keystore_sol2.
- client_certificate is an alias (any name will
do, for example:
- When prompted, enter a password for the keystore file and make a note of it.
- Store the keystore file in the following directory:
$OMNIHOME/probes/arch/
- Encrypt the keystore password using the nco_g_crypt utility
by running the following command:
$OMNIHOME/bin/nco_g_crypt password
- KeyStoreFile - Use this property to specify the location of the keystore file.
- KeyStorePassword - Use this property to specify the encrypted keystore password.
- TrustStoreFile - Use this property to specify the location of the keystore file.
- TrustStorePassword - Use this property to specify the encrypted keystore password.