Once the database is configured for SSL you need to tell DbVisualizer to use the SSL details as follows:
In the Properties tab in DbVisualizer for your Db2 LUW database connection and in the Driver Properties category, add rows for each of the following:
sslConnection=true sslTrustStoreLocation=</path/file> sslTrustStorePassword=<password>
Click Apply and try connect.