Allow configuring TLS backend (#386)

This commit is contained in:
Erick Guan 2025-02-26 00:27:44 +01:00 committed by GitHub
commit 09ef7f534e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 228 additions and 47 deletions

View file

@ -32,3 +32,21 @@ fetched from the latest `tldr-pages/tldr` GitHub release.
[updates]
archive_source = https://my-company.example.com/tldr/
### `tls_backend`
Specifies which TLS backend to use. Try changing this setting if you encounter certificate errors.
Available options:
- `rustls-with-native-roots` - [Rustls][rustls] (a TLS library in Rust) with native roots
- `rustls-with-webpki-roots` - Rustls with [WebPKI][rustls-webpki] roots
- `native-tls` - Native TLS
- SChannel on Windows
- Secure Transport on macOS
- OpenSSL on other platforms
[updates]
tls_backend = "native-tls"
[rustls]: https://github.com/rustls/rustls
[rustls-webpki]: https://github.com/rustls/webpki

View file

@ -48,7 +48,7 @@ Release build:
Release build with bundled CA roots:
$ cargo build --release --no-default-features --features webpki-roots
$ cargo build --release --no-default-features --features rustls-with-webpki-roots
Debug build with logging support: