-
Notifications
You must be signed in to change notification settings - Fork 121
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
Connecting to Azure SQL with tokio (on mac) gives a Tls connection closed via error. #65
Comments
It works without issues on Windows except that the username needs to be set as |
What version? I remember @esheppa fixing this a while ago already. |
@pimeys Has there been a solution to this? I am currently running into this issue for my own project. |
I ended up using ODBC since it doesn't work on the latest release. |
I believe it's a mac TLS issue since it works on Linux |
We might need a developer using a Mac to fix this issue...
Sent from ProtonMail mobile
…-------- Original Message --------
On Aug 13, 2020, 19:58, Ads Sengupta wrote:
I believe it's a mac TLS issue since it works on Linux
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#65 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAAIRF3IP6PU4LX2UKT7YBDSAQSUPANCNFSM4OPESXQA).
|
@AdsSengupta I ended up using ODBC as well |
It seems to be a problem with native-tls and Catalina: |
It would be really nice if somebody could debug this a bit, forking Tiberius and then in their app then pointing to this fork and seeing certain things first:
async-native-tls = { version = "0.4", default-features = false, features = [ "runtime-tokio" ] } If none of these work, the problem might be with the system certificates (Catalina has more strict rules how big the certificate needs to be compared to the older mac versions). |
Here's a ticket that might provide some useful information: |
And another one: |
I found a way to get TLS working on macOS and here's the plan how to move forward: We create a new crate async-openssl that takes some code from native-tls and async-native-tls. This crate uses openssl always, and we can force vendoring to statically compile openssl. From here Tiberius would have a new feature flag Candidating for the next release. |
Hey all! TLS should now work on macOS systems. With no additional feature flags you must have OpenSSL installed to your system before compiling Tiberius. You can also use a feature flag Please open up a new issue if having problems. |
Versions 0.5.2 and 0.4.19 are released with this fix. |
i'm sorry to bother you, but i'm having issues with the "vendored-openssl" feature flag on macos again. error[E0252]: the name error[E0308]: mismatched types |
OH! Damn it - i'm so sorry! I had tiberius in my shared types folder for some macro magic where i didn't set the correct feature flags. |
this is my code
and I get
thread 'main' panicked at 'Failed!: Tls("connection closed via error")', src/main.rs:80:22
The text was updated successfully, but these errors were encountered: