Feedback
Did this article resolve your question/issue?

   

Article

Error "SSL is needed" when connecting to SQL Azure using ODBC

« Go Back

Information

 
TitleError "SSL is needed" when connecting to SQL Azure using ODBC
URL Name000057797
Article Number000192458
EnvironmentProduct: Connect/Connect64 for ODBC SQL Server Wire Protocol driver
Version: 7.1.4 and later
Product: Progress DataDirect for ODBC SQL Server Wire Protocol driver
Version : 8.0 and higher
OS: All supported platforms
Database: SQL Azure
Question/Problem Description
The errors below are returned when connecting to SQL Azure.
Steps to Reproduce
Clarifying Information
Error Message[DataDirect][ODBC SQL Server Wire Protocol driver]SSL is required, but was not requested.
[DataDirect][ODBC SQL Server Wire Protocol driver]Cannot load trust store.
Defect Number
Enhancement Number
Cause
The Azure SQL Database requires encryption (SSL) at all times.
"Azure SQL Database Security Guidelines and Limitations" https://msdn.microsoft.com/en-us/library/azure/ff394108.aspx
Resolution
Turn on SSL for the data source by setting Encryption Method (EncryptionMethod) to 1 (SSL) and also configure the Trust Store.
 
Workaround
For testing only, ValidateServerCertificate=0 can be set so that the driver does not validate the certificate that is sent by the database server. This is useful in test environments because it eliminates the need to specify truststore information on each client in the test environment.
Notes
References to other documentation:

Progress DataDirect for ODBC for SQL Server Wire Protocol Driver User's Guide and Reference, "Connection Option Descriptions"
https://documentation.progress.com/output/DataDirect/odbcsqlserverhelp/index.html#page/odbcsqlserver%2Fconnection-option-descriptions.html%23
 
DataDirect Connect® Series for ODBC User's Guide, "Drivers for 32-Bit and 64-Bit Platforms" : "The SQL Server Wire Protocol Driver" : "Connection Option Descriptions for SQL Server Wire Protocol driver"
http://media.datadirect.com/download/docs/odbc/allodbc/#page/odbc%2Fconnection-option-descriptions-for-sql-server-wi.html%23
Last Modified Date1/8/2020 9:56 PM
Attachment 
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.