Replies: 5 comments 6 replies
-
We have tested with self-signed certificates which do not have any CA attached to them and there has been no issues in that matter. We will do some research and will get back to you. |
Beta Was this translation helpful? Give feedback.
-
@drdamour is it possible for you test with this nuget locally and see the error message? Just change the extension to nupkg and add it to a folder and add that folder to your nuget.config file as a local provider. For some reason GitHub does not upload the file. It locks at upload task. |
Beta Was this translation helpful? Give feedback.
-
We have improved the error messages in the driver, but it has not been released yet. Wanted to know what issue is being detected with the certificate. |
Beta Was this translation helpful? Give feedback.
-
@JRahnama |
Beta Was this translation helpful? Give feedback.
-
This is a feature that would greatly benefit our product. Currently, we default to using TrustServerCertificate=True, but we recognize this as a poor security practice. We aim to change the default to TrustServerCertificate=False. Rather than having the TLS connection fail outright, we would like to enhance the user experience by presenting a dialog similar to an RDP connection. This dialog would display the certificate information and offer options to Continue, Continue & Remember, or Abort. To achieve this, the library could potentially use the existing .NET callback: Alternatively, it could be a custom callback function in the SqlConnection. Regards, |
Beta Was this translation helpful? Give feedback.
-
at my corp all the SQL server certs are signed chained to a self issued corp ca, and it's not chained to any public CAs in anyway. This is easy enough when running in a vm to add the ca to the trust store and things seem to work.
but when i run a .net app in azure app service (non dedicated) or function app (like consumption) i seem to be out of luck as i'm not seeing a way to hook into/override certificate verification to see if the cert has a valid path to my corp ca.
Is this something that's supported by this library, or some lib this library depends on? something similar to what i can do with HttpClient and https://learn.microsoft.com/en-us/dotnet/api/system.net.servicepointmanager.servercertificatevalidationcallback?view=net-7.0
Beta Was this translation helpful? Give feedback.
All reactions