To enable TLS 1.2 with server certificate validation, complete the following steps:
Important
If you have installed the Application Server components on multiple computers, repeat steps II and III on each computer.
Procure the Certificate Authority (CA) signed certificate for the PostgreSQL database from the system administrator of your organization. Ensure that the certificate is in x509 format. For example, postgres.crt.
Save the procured certificate file in the following locations:
Component | Location |
---|---|
Application Server | <Application Server Installation Directory>/secure |
Local ETL Engine Server | <Local ETL Engine Server Installation Directory>/secure |
The Application Server and local ETL Engine Server use the cotruststore.ts truststore to communicate with the PostgreSQL database. This truststore is bundled along with the Server installation, and is located in the <Server Installation Directory>/secure directory.
Complete the following steps on both the Application Server and the local ETL Engine Server to import the security certificate into their truststore files:
Log on to the computer where the Server is installed. The keytool utility that is used to import the certificates is present in the <Server Installation Directory>/jre/bin directory. Add this directory path to the PATH environment variable by running the following command:
export PATH= <Server Installation Directory>/jre/bin:$PATH |
Navigate to the <Server Installation Directory>/secure directory and import the CA-trusted certificates that are allowed by JRE by running the following command:
keytool -importkeystore -srckeystore <Server Installation Directory>/jre/lib/security/cacerts -destkeystore cotruststore.ts -srcstorepass changeit -deststorepass <cotruststorepassword>
Note
Importing the CA-trusted certificates that are allowed by JRE must be done at least once before you import other certificates.
The <cotruststorepassword>
is the password for cotruststore.ts
truststore.
Go to <Server Installation Directory>/secure directory and import the procured certificates by running the following command:
keytool -importcert -trustcacerts -file <path>/postgres.crt -keystore cotruststore.ts -alias CODB
After the message Enter keystore password , enter a password for the truststore.
After the message Trust this certificate [no], enter Yes.
Complete the following configuration steps on both the Application Server and the local ETL Engine Server:
#Example switchTLSmode.pl -on –dbport 2484 -tspwd -flow codb |
2. After the message: Enter the truststore password and press Enter, enter the truststore password.
The communication between the internal PostgreSQL database and the Application Server, and between the internal PostgreSQL database and local ETL Engine Server are now TLS 1.2 enabled with server certificate validation.