Manual:$wgDBssl/en

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.