2022
In order to secure the connection to tomcat and all the routes via DBSync tomcat we can setup SSL certificate on the server and within the tomcat. Please follow the steps to configure:
a.The root certificate
b.The CA bundle or the intermediate certificates
c.The private key
pkcs12 -export -in <<certificate>>.crt -inkey <<certificate>>.key -chain -CAfile <<CA-bundle>> -name "<<required-certificate-name>>" -out <<certificate>>.p12 |
You will be prompted to enter a password for exporting, enter and verify it again by retyping the same password when prompted
keytool -importkeystore -deststorepass <<newkeystorepassword>> -destkeystore .keystore -srckeystore <<certificate>>.p12 -srcstoretype PKCS12 |
At this point we have the .keystore file created which needs to be imported into the tomcat.
Edit the connector property as below,
Specify the path to the keystore file that we created earlier at keystoreFile and the password we used while generating the keystore file in keystorePass
We have successfully configured SSL in the DBSync tomcat and the connections are now secure.