Switch webauthn-rs-demo to OpenSSL. #360
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #359
This includes #357 (which makes
rustls
support optional behind--features tls
), but switches everything over totide-openssl
and enables--features tls
by default (because it works onaarch64-pc-windows-msvc
and others).Removing
rustls
and its transitive dependency onring
also drops thewebauthn-rs-demo
binary size a fair bit: a release build onx86_64-apple-darwin
with dynamically-linked OpenSSL dropped the binary size from 9,444,928 bytes to 8,324,528 bytes (-12%); disablingtls
support drops it further to 8,114,872 bytes (-14%).This changes the behaviour of the server a fair bit – it won't generate a self-signed certificate at start-up anymore; it needs to be provided as a file.
I've updated the documentation to describe how TLS support works, and how to generate a self-signed certificate as the server used to generate.
This also updates the logging to use
INFO
level by default, so you actually see start-up messages now. :)