• Task
  • Version ยท 6.0
  • Create

Configure an encrypted database connection with TLS/SSL for MongoDB

Last updated: August 11, 2026

Before you begin

Procedure

1

Add the --tlsCertificateKeyFile certificate that is produced in the configuration step above to the Java keystore.

Linux/macOS
sudo keytool -importcert -trustcacerts -file PATH_TO_CERT_FILE/mongodb-cert.crt -cacerts -storepass changeit -alias MongoDB
Windows
loading
2

Specify your TLS connection information in the Liquibase --url argument.

Linux/macOS
loading
Windows
loading
3

(Optional) Troubleshooting errors

Linux/macOS
loading
Windows
loading