I am trying to connect to SQL Server from a PHP / Zend Framework application running on Ubuntu and in a remote location.
I am trying to get the connecting application to request encryption with SQL Server (since the default connection at 1433 is explicit and I do not want my credentials to be sniffed).
I configured the SSL substitution certificate on SQL Server and I am creating a PDO connection with the following DSN:
dblib:host=server-not-matching-domain.com:1433;dbname=MyDB;Encrypt=true;TrustServerCertificate=false;charset=
Taken from http://blogs.msdn.com/b/brian_swan/archive/2011/03/08/sql-server-driver-for-php-connection-options-encrypt.aspx
Since the host name does not match the installed certificate, I expect the connection to fail - but this will not work.
php sql-server pdo ubuntu
Horuskol
source share