webauthn-rs-demo: make tls support optional#357
Conversation
|
In keeping with the "do it right by default" can we make TLS a default feature and just disable it in the windows workspace builds? |
There's no way to enable/disable this conditionally by platform: rust-lang/cargo#1197 A work-around would be to convert it to a library, and then use it from another package which has a As far as I can tell, the other
This binary currently generates a self-signed certificate at start-up, and there's no way to provide one. As a result, you either need to:
Because the certificate will change on start-up, there's marginal benefit to using HTTPS over plain HTTP. I guess the open question is how is https://webauthn.firstyear.id.au configured, and will this break it? |
|
I more meant add |
|
The trouble is that on an affected target, you'd need to apply TLS support in Once the demo is migrated from |
|
Dropping this in favour of #360 |
rustlsdepends onring 0.16, which doesn't build onaarch64-pc-windows-msvc, and has lots of other cross-compiling issues. Many of these issues have been fixed, but only on thering 0.17branch.This PR makes
webauthn-rs-demoTLS support optional (--features tls).Longer term, I'd rather switch this over to using OpenSSL like everything else, but this at least unblocks building the entire workspace with default features on a system
ring 0.16doesn't support.