prisma / tiberius

TDS 7.2+ (Microsoft SQL Server) driver for Rust
Apache License 2.0
311 stars 113 forks source link

[Question] Is there a way to set the `HostNameInCertificate` property? #340

Open shajia-deshaw opened 3 months ago

shajia-deshaw commented 3 months ago

JDBC string has a way to set this: Ref: https://learn.microsoft.com/en-us/sql/connect/jdbc/setting-the-connection-properties?view=sql-server-ver16#:~:text=as%20authenticationScheme.-,hostNameInCertificate,-String%0A%0Anull

It doesn't seem to be present for this library though - could you confirm this though? Currently, I had to bypass this by setting config.trust_server() or trusting the server certificate.