Solution for Secure Sockets Layer (SSL) Error

When configuring datasource for CustomFields++, the following error about SSL may be received;
“Error connecting to the database. The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption.” “PKIX path building failed”.

If there was no fault in the SSL chain, the solution for this error is to append the following lines to connection URL:

“;encrypt=true;trustServerCertificate=true;”