Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update rcgen requirement from 0.12 to 0.13 #590

Merged
merged 3 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion actix-tls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions actix-tls/tests/accept-openssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
6 changes: 3 additions & 3 deletions actix-tls/tests/accept-rustls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
Loading