I am not using the DatabaseConnector but when I have run into similar problems in the past one of the following usually works:
Add the option trustServerCertificate=true to the connection string.
Or alternatively you would need to add the certificate to the TrustStore in the java runtime that Mendix is using.