mirror of
https://github.com/fafhrd91/actix-net
synced 2025-06-26 22:07:42 +02: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:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user