1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-23 18:51:06 +01:00

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] <support@github.com>

* chore: fix rcgen tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
dependabot[bot] 2024-08-06 23:54:18 +00:00 committed by GitHub
parent aad3a48edd
commit 77588aba81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -131,7 +131,7 @@ bytes = "1"
pretty_env_logger = "0.5" pretty_env_logger = "0.5"
futures-util = { version = "0.3.17", default-features = false, features = ["sink"] } futures-util = { version = "0.3.17", default-features = false, features = ["sink"] }
itertools = "0.13" itertools = "0.13"
rcgen = "0.12" rcgen = "0.13"
rustls-pemfile = "2" rustls-pemfile = "2"
tokio-rustls-026 = { package = "tokio-rustls", version = "0.26" } tokio-rustls-026 = { package = "tokio-rustls", version = "0.26" }
trust-dns-resolver = "0.23" trust-dns-resolver = "0.23"

View File

@ -21,12 +21,12 @@ use rustls_pki_types_1::ServerName;
use tokio_rustls_026::rustls::RootCertStore; use tokio_rustls_026::rustls::RootCertStore;
fn new_cert_and_key() -> (String, String) { 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()]) rcgen::generate_simple_self_signed(vec!["127.0.0.1".to_owned(), "localhost".to_owned()])
.unwrap(); .unwrap();
let key = cert.serialize_private_key_pem(); let key = key_pair.serialize_pem();
let cert = cert.serialize_pem().unwrap(); let cert = cert.pem();
(cert, key) (cert, key)
} }

View File

@ -24,12 +24,12 @@ use rustls_pki_types_1::PrivateKeyDer;
use tls_openssl::ssl::SslVerifyMode; use tls_openssl::ssl::SslVerifyMode;
fn new_cert_and_key() -> (String, String) { 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()]) rcgen::generate_simple_self_signed(vec!["127.0.0.1".to_owned(), "localhost".to_owned()])
.unwrap(); .unwrap();
let key = cert.serialize_private_key_pem(); let key = key_pair.serialize_pem();
let cert = cert.serialize_pem().unwrap(); let cert = cert.pem();
(cert, key) (cert, key)
} }