PearlNovice has asked for the wisdom of the Perl Monks concerning the following question:
SSL has been turned off on the server where my script is run from. TLS1.0 and TLS1.1 are turned off also. I tested turning TLS1.0 back on my script will run without issue, but I'm not supposed to to use TLS1.0. So my question is what do I need to do to get my code work with TLS1.2? Below is how to currently attempt to get the DB connection using DBI:[Microsoft][ODBC SQL Server Driver][DBNETLIB]SSL Security error (SQL-0 +8001) [state was 08001 now 01000] [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (SECCreate +Credentials()). (SQL-01000) [state was 01000 now 01S00]
Thanks for your help!sub get_connection { my ($DSN, $DBServer, $DBUser, $PW) = @_; my $dbh = DBI->connect("dbi:ODBC:Driver={SQL Server};Server=${DBSe +rver};DSN=${DSN};UID=${DBUser};PWD=${PW};KeepAlive=1"); return $dbh; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: DBI connecting to MS SQL Server TLS 1.2
by Tux (Canon) on Sep 30, 2019 at 07:01 UTC | |
Re: DBI connecting to MS SQL Server TLS 1.2
by soonix (Chancellor) on Sep 29, 2019 at 17:49 UTC | |
by PearlNovice (Initiate) on Sep 29, 2019 at 23:12 UTC |