When using an event-based framework, we need to use MySQL Binlog library to connect to MySQL server to access the trailing transaction log. To make the connection secure, TLS will be used by the client.
If you have a DBA install the MySQL instance for your application, you can ask for the client certificate from him/her. However, if you are using MySQL docker for your testing, you need to get the client certificate from the docker container. Here are the steps to get the client cert installed.
The first step is to copy the client.truststore and client.keystore into your config/tls folder from client module in light-4j. In our case, we might need to copy the tls folder to light-tram-4j/tram-cdc-mysql-server/src/main/resources/config folder.
Download client certificate
If you are using the official MySQL docker image, the certificate files are located inside the contain at
/var/lib/mysql folder. Go to the above folder you have just copied client.truststore file.