The following nsis code communicates to the database through oledb driver. But the connection is unsuccessful after enabling TLS 1.2.
MSSQL_OLEDB::SQL_Logon "$ServerName" "UserId" "Pwd"
Pop $0
DetailPrint "$0"
MSSQL_OLEDB::SQL_GetError
Pop $0
DetailPrint "$0"
Pop $0
The connection string is able to make successful connection to TLS 1.0 . But after disabling TLS 1.0 and enabling TLS 1.2, While running this executable, It is printing the following error.
SQL State: 0x80004005 - Native: 0 - Message: [DBNETLIB][ConnectionOpen (SECCreateCredentials()).]SSL Security error.
May be it is because of the Driver MSSQL_OLEDB.dll doesn't support TLS 1.2. Microsoft has released a new version of Oledb driver for sql server. https://blogs.msdn.microsoft.com/sqlnativeclient/2017/10/06/announcing-the-new-release-of-ole-db-driver-for-sql-server/
But it seems there is no update in the oledb plugin for nsis.
Is there any workaround to this? Thanks in advance!
User contributions licensed under CC BY-SA 3.0