-
Notifications
You must be signed in to change notification settings - Fork 7
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
Switch to add_parsable_certificates #114
Conversation
According to the documentation the add method is apparently known to fail for some certificates so I switched to the add_parsable_certificates method instead now. |
crates/tx5-signal/Cargo.toml
Outdated
@@ -31,8 +31,6 @@ tokio-tungstenite = { workspace = true } | |||
tracing = { workspace = true } | |||
tx5-core = { workspace = true } | |||
url = { workspace = true } | |||
|
|||
[target.'cfg(not(any(target_os = "windows", target_os = "linux", target_os = "macos")))'.dependencies] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't appear to be platform specific in any way, but it looks like it was deliberately only included for platforms that won't have a certificate store. Now that we're successfully using the certificate store on windows and this isn't being used on the platforms it's been included for, should this be reverted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this should be reverted. rustls_native_certs
doesn't currently work on android or ios. (although it'd be nice if it did : )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes, sorry. I added this with the initial approach where the certs would be bundled.
Tested on Windows where this was crashing for me, confirmed that this solves the problem and I can still make connections |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Should address holochain/holochain#4418