Manual:$wgDBssl

Details
Whether to use SSL in DB connection.

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