Securing connection to remotely hosted database

I am hosting Piwik on Azure, and connecting to a MySQL database hosted by a third-party provider who provides certificates for encrypting connections to the database. Can somebody point me the right direction for setting piwik to encrypt connections to the MySQL database?