What I want to achieve is very simple. I want to connect to an external MS SQL database from a PHP script through a secure connection. However, this turned out to be problematic, and, from three hours before the start of the research, I am at a loss.
The platform for the client is Ubuntu, which means that I cannot use SQLSRV. A secure connection has been tested with different clients and it works great. I am currently using PDO and DBlib to connect to a database, which also works great.
I could not find a way to force the connection. I tried several other drivers, but to no avail.
What are my options?
Edit: The following FreeTDS logs left me ...
config.c:543: Got a match. config.c:565: host = 'XXXXXXXXXX' config.c:595: Found host entry XXXXXXXXXX. config.c:599: IP addr is XXXXXXXXXX. config.c:565: port = '1433' config.c:565: encryption = 'require' config.c:565: check certificate hostname = 'no' config.c:629: UNRECOGNIZED option 'check certificate hostname' ... ignoring. config.c:565: ca file = 'XXXXXXXXXX.pem' config.c:629: UNRECOGNIZED option 'ca file' ... ignoring.
sql php ssl ubuntu
Samuel willems
source share