Manual:$wgDBssl/en

Details
Whether to use SSL in DB connection.

This setting is only used if $LBFactoryConf is set to  and $DBservers is an empty array. Otherwise the  flag must be set in the 'flags' option of the database connection to achieve the same functionality.

If you need to provide custom SSL certificates for SSL encryption, you should use $DBservers instead.