hi Blair800,
Based on the below article to use encrypted connection using a certificate one must insert "Encrypt=true" property into the connection string. This is done automatically when you check the "Encrypt connection" checkbox on the properties window of the desired MS SQL server connection.
https://support.microsoft.com/en-us/kb/316898
Hope this helps,
Martin