Hi;
Most probably you SQL server either does not have a signed certficate from a trusted CA or it's certificate is already expired. Best solution option is to obtain a new certificate for SQL server from a trusted CA and install it.
Alternativeley; you can either accept selfsigned certificate trust by adding "encrypt=true, trustServerCertificate=true" to settings.yaml or set "encrypt=false" (which is mainly for testing whether the connection is working but not recommended for production).
Please accept my answer if it helps you on your issue.