]> git.proxmox.com Git - proxmox-backup.git/commitdiff
use SslAcceptor::mozilla_intermediate_v5
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 14 Oct 2020 10:24:15 +0000 (12:24 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 14 Oct 2020 10:37:42 +0000 (12:37 +0200)
This allows TLSv1.3, and let the client select ciphers. After this
change AES is prefered over chacha20, so TLS speed is now much faster.

src/bin/proxmox-backup-proxy.rs
src/bin/proxmox_backup_client/benchmark.rs

index b28ac035594b945ed856afe2041b792f67245ebd..7593dc43b1b77ed248d0119691a4406f974bf29a 100644 (file)
@@ -69,7 +69,7 @@ async fn run() -> Result<(), Error> {
     let key_path = configdir!("/proxy.key");
     let cert_path = configdir!("/proxy.pem");
 
-    let mut acceptor = SslAcceptor::mozilla_intermediate(SslMethod::tls()).unwrap();
+    let mut acceptor = SslAcceptor::mozilla_intermediate_v5(SslMethod::tls()).unwrap();
     acceptor.set_private_key_file(key_path, SslFiletype::PEM)
         .map_err(|err| format_err!("unable to read proxy key {} - {}", key_path, err))?;
     acceptor.set_certificate_chain_file(cert_path)
index 716aaf0de2fd311e87c95ee612523daab7c0103e..37bb87fb22a4a5503aa0b2f758d2330a06783b30 100644 (file)
@@ -86,7 +86,7 @@ struct BenchmarkResult {
 static BENCHMARK_RESULT_2020_TOP: BenchmarkResult =  BenchmarkResult {
     tls: Speed {
         speed: None,
-        top: 1_000_000.0 * 690.0, // TLS to localhost, AMD Ryzen 7 2700X
+        top: 1_000_000.0 * 1235.0, // TLS to localhost, AMD Ryzen 7 2700X
     },
     sha256: Speed {
         speed: None,