-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow configuration of SSL/TLS connection options #1458
Comments
It looks like that none of the other PDO drivers supports this. Is passing a PHP stream context as parameter/attribute the better option? |
Can these be specified in the connection string for MySQL server? |
No, only per config and attributes. Idk if mysqlnd has support for the attributes/config. |
It's unlikely we'd be able to add these settings, since most of them are not part of the driver. |
So I guess I can close this, since is required to implement this upstream into msodbc? |
@v-makouz , I note that if https://learn.microsoft.com/en-us/sql/connect/php/connection-options?view=sql-server-ver16 To use it for 'certificate pinning' would be nice. |
I'll take a look at that doc. I believe that anything in the connection string gets passed by PHP driver to the underlying ODBC Driver, so anything supported by that should work, but I'll double check to make sure. |
Hello,
based on my old issue #1021, it's quite possible that people are actively lowering their security by allowing older cipher suites, so they just can connect to SQLServers with old certificates. Instead it should be possible to define the ciphers used for the TSL connection to the SQLServer.
PDO_MYSQL already has support for this:
PDO::*_ATTR_SSL_VERIFY_SERVER_CERT
is already possible through connection parameterTrustServerCertificate
.So please implement those attributes or as connection parameters.
The text was updated successfully, but these errors were encountered: