Feedback
Did this article resolve your question/issue?

   

Article

SSL error occurs when connecting to SQL Server Azure using the Connect for JDBC driver

Information

 
TitleSSL error occurs when connecting to SQL Server Azure using the Connect for JDBC driver
URL NameSSL-error-occurs-when-connecting-to-SQL-Server-Azure-using-the-Connect-for-JDBC-driver
Article Number000183760
EnvironmentProduct: Connect for JDBC SQL Server Wire Protocol driver
Version: 5.1.4 and later
OS: JAVA
Database: Microsoft SQL Azure
Application: All supported applications
Question/Problem Description
SSL error occurs when connecting to SQL Server Azure using the Connect for JDBC driver
Steps to Reproduce
Clarifying Information
Error Message[Datadirect][SQLServer JDBC Driver]The SQL Server login requires an SSL connection.
Defect Number
Enhancement Number
Cause
The Azure SQL Database requires encrypted connections. (SSL).
Reference: http://blogs.msdn.com/b/appfabricannounce/archive/2010/05/10/remember-to-encrypt-your-connection.aspx
Resolution
Turn on SSL for the data source by setting EncryptionMethod=1 and configure the trust store.

For testing purposes when a trust store has not been configured, set EncryptionMethod=1 and ValidateServerCertificate=0. The driver will not try to validate the certificate that is sent by the database server.  This is useful in test environments because it eliminates the need to specify trust store information on each client in the test environment.
For example:
"jdbc:datadirect:sqlserver://Myhost.net:1433;DatabaseName=MyDatabase;EncryptionMethod=SSL;ValidateServerCertificate=false

Connect for JDBC drivers older than version 5.1 are not supported with Microsoft SQL Azure.

For additional information refer to the driver documentation.
    
 
Workaround
Notes
References to other documentation:
DataDirect Driver Documentation, https://www.progress.com/documentation/datadirect-connectors
Last Modified Date7/15/2020 2:12 PM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.