Skip to content

Commit

Permalink
build(deps): update rcgen requirement from 0.12 to 0.13 (#590)
Browse files Browse the repository at this point in the history
* 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](rustls/rcgen@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>
  • Loading branch information
dependabot[bot] and robjtede authored Aug 6, 2024
1 parent aad3a48 commit 77588ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
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

0 comments on commit 77588ab

Please sign in to comment.