I'm trying to connect to an SQL Server from a PHP/Zend Framework application running on Ubuntu and at a remote location.
I'm trying to get the connecting application to request encryption from the SQL Server (since the default connection on 1433 is in the clear, and I don't want my credentials being sniffed).
I've configured the wildcard SSL certificate on the SQL Server, and I'm creating a PDO connection with the following DSN:
dblib:host=server-not-matching-domain.com:1433;dbname=MyDB;Encrypt=true;TrustServerCertificate=false;charset=
Since the host name doesn't match the installed certificate, I'd expect the connection to fail - but it doesn't fail.