From 77588aba810aeef71c8159520684308f0b39c19a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Aug 2024 23:54:18 +0000 Subject: [PATCH] build(deps): update rcgen requirement from 0.12 to 0.13 (#590) * build(deps): update rcgen requirement from 0.12 to 0.13 Updates the requirements on [rcgen](https://github.com/rustls/rcgen) to permit the latest version. - [Commits](https://github.com/rustls/rcgen/compare/v0.12.0...v0.13.1) --- updated-dependencies: - dependency-name: rcgen dependency-type: direct:production ... Signed-off-by: dependabot[bot] * chore: fix rcgen tests --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rob Ede --- actix-tls/Cargo.toml | 2 +- actix-tls/tests/accept-openssl.rs | 6 +++--- actix-tls/tests/accept-rustls.rs | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/actix-tls/Cargo.toml b/actix-tls/Cargo.toml index cb90fb7f..7d4cf563 100644 --- a/actix-tls/Cargo.toml +++ b/actix-tls/Cargo.toml @@ -131,7 +131,7 @@ bytes = "1" pretty_env_logger = "0.5" futures-util = { version = "0.3.17", default-features = false, features = ["sink"] } itertools = "0.13" -rcgen = "0.12" +rcgen = "0.13" rustls-pemfile = "2" tokio-rustls-026 = { package = "tokio-rustls", version = "0.26" } trust-dns-resolver = "0.23" diff --git a/actix-tls/tests/accept-openssl.rs b/actix-tls/tests/accept-openssl.rs index 217e8e5d..41fb1d7b 100644 --- a/actix-tls/tests/accept-openssl.rs +++ b/actix-tls/tests/accept-openssl.rs @@ -21,12 +21,12 @@ use rustls_pki_types_1::ServerName; use tokio_rustls_026::rustls::RootCertStore; fn new_cert_and_key() -> (String, String) { - let cert = + let rcgen::CertifiedKey { cert, key_pair } = rcgen::generate_simple_self_signed(vec!["127.0.0.1".to_owned(), "localhost".to_owned()]) .unwrap(); - let key = cert.serialize_private_key_pem(); - let cert = cert.serialize_pem().unwrap(); + let key = key_pair.serialize_pem(); + let cert = cert.pem(); (cert, key) } diff --git a/actix-tls/tests/accept-rustls.rs b/actix-tls/tests/accept-rustls.rs index bc29971c..f31606e7 100644 --- a/actix-tls/tests/accept-rustls.rs +++ b/actix-tls/tests/accept-rustls.rs @@ -24,12 +24,12 @@ use rustls_pki_types_1::PrivateKeyDer; use tls_openssl::ssl::SslVerifyMode; fn new_cert_and_key() -> (String, String) { - let cert = + let rcgen::CertifiedKey { cert, key_pair } = rcgen::generate_simple_self_signed(vec!["127.0.0.1".to_owned(), "localhost".to_owned()]) .unwrap(); - let key = cert.serialize_private_key_pem(); - let cert = cert.serialize_pem().unwrap(); + let key = key_pair.serialize_pem(); + let cert = cert.pem(); (cert, key) }