خرید بک لینک

I have a Microsoft SQL Server 2012 with service pack 3 on a Windows 2012 server set up to only accept SSL/TLS. Now, SSL/TLS works differently for SQL server as it is tueled through Microsoft/Sybases TDS protocol.

I need my application to coect to the server and its port (default: 1433) and during SSL/TLS handshake I want my application to grab the server certificate and allow the user to trust it and thus put it into the trust store. The SQL server has among others a self-signed CA and the client my application is ruing does not have a valid certificate or similar to authenticate successfully.

My approaches so far:

  • openssl does not work, as it is tueled through TDS so I do not get any certificates and I would prefer a native solution (Java, C#, ...)
  • Powershell could work (to extract it from mmc.exe) and put it onto my client but powershell is not always available, e.g. for linux and again I would prefer not to have dependency on it.
  • Andreas Sterbenz's InstallCert utility times out with a SocketTimeOut exception
  • Improvement on Andreas' ( http://s-n-ushakov.blogspot.de/2013/11/yet-another-installcert-for-java-now.html) also is not working. Same exception is thrown.
  • Manually login into the SQL sever and exporting the certificate using mmc.exe is the only working solution so far but this would not be user-friendly and involves a non-automate, error prone solution.

What other options do I have to acquire the server certificate in a programmatical way?

- - , .

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 29 بهمن 1394 ساعت: 20:22

صفحه بندی