Hi, here is the connection string I used:
'jdbc:sqlserver://ServerName:1433'
As you can see I didn't add any other parameters. If I didn't
explicitly enable SSL on the RPG side, is there any way it would use it
anyway?
Chris Anderson
Partners Mutual
Waukesha, WI
Hi Chris,
The following site tells you what all of the properties supported by SQL
server are, and their potential values:
http://msdn2.microsoft.com/en-us/library/ms378988.aspx
You'll note that the 'encrypt' property controls whether SSL is used or
not, and it's set to FALSE by default, so SSL is not used unless you
tell it otherwise ither with setProp or by specifying it in the
connection string.
The code you posted uses a variable named 'server' for the connection
string, but you did not tell us what's in that variable. If you want SSL
turned on, you'll want to add 'encrypt=true' to that string. if not,
you'll want to make sure it's not there.
I can think of several possible causes for the "handshake failed" error:
a) RPG program is using SSL, but SQL server doesn't allow it.
b) SQL Server requires SSL, but RPG program isn't using it.
c) SQL server allows both, but on different ports, and you're connecting
to the wrong port.
d) You are trying to enable SSL, but there's a problem in the SSL
configuration.
As an Amazon Associate we earn from qualifying purchases.