To pass options to the driver such as the one to use ssl, you normally need to set
database.url instead of the separate settings and put ?someOption=value in the url,
right after the database name.
On my side, I still use the separate settings (database.hostname, database.database,...) and
because I know gerrit will build the jdbc url from them, I pass the jdbc properties by appending
them to the database name:
[database]
database = reviewDB?someOption=value
You need to check the mySQL connector documentation but I think the parameter you need is
useSSL=true:
[database]
database = reviewDB?useSSL=true
regards,
Hugo