× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.