-
Notifications
You must be signed in to change notification settings - Fork 171
How to connect to a Sybase SSL port if the Sybase server uses TDS version 5.0? #511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Also, I have used FreeTDS 1.1.6 and 1.4 as well. Nothing works, when I look at the C++ files, the SSL checks are only enabled for TDS version 7 or greater. |
It sounds like something not supported by FreeTDS. Can you do a network trace of a successful connection (that is using Sybase libraries) to a SSL port? If you are concerned about security issues use a test server and/or test account/password and/or send privately to me. |
It works to connect through Stunnel . Otherwise, code changes are needed. FreeTDS Branch 1.5 introduced a mode I found I was able to get it working by forcing the server to TDS 5.0 in
The first change probably needs further consideration before being submitted as a patch , my fix might break whatever they were going for with the original test; it's only appopriate to this 5.0 use case. |
Yes, strict is designed for TDS 8. I would like to have a ASE setup with TLS to test. The capture I got time ago used an entirely different format from the standard TLS encapsulation. |
It's possible to install a 90 day free trial of SAP ASE, for Windows or Linux (or other options too). The instructions for enabling SSL are at https://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01672.1572/html/sec_admin/sec_admin383.htm . Additional notes: I generated a self-signed server certificate using:
Installing the cert:
and then database command:
In Windows the trusted file was Enabling the SSL listening port and telling query tools to use it is done via
(it didn't work with the "master" line under SYBASE_SSL -- the master for non-ssl and ssl had to be in the same section) It seems to need the NB. I have found Sybase non-SSL + Stunnel to behave identically to Sybase SSL, so far anyway. |
How to connect to a Sybase SSL port using
FreeTDS
? I am usingpyodbc
and while I am able to connect to a non-SSL port just fine, but SSL connections aren't working.Note that the Sybase server uses TDS version 5.0.
The text was updated successfully, but these errors were encountered: