Skip to content

Commit

Permalink
Fixes build
Browse files Browse the repository at this point in the history
  • Loading branch information
mango-dee committed Dec 12, 2024
1 parent a44ec8a commit 7cf9d8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quic-forward-proxy/src/tls_self_signed_pair_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ impl SelfSignedTlsConfigProvider {

fn gen_tls_certificate_and_key(hostnames: Vec<String>) -> (Certificate, PrivateKey) {
let cert = generate_simple_self_signed(hostnames).unwrap();
let key = cert.key_pair.serialize_der();
(Certificate(cert.key_pair.serialize_der()), PrivateKey(key))
let key = cert.serialize_private_key_der();
(Certificate(cert.serialize_der().unwrap()), PrivateKey(key))
}

fn build_client_crypto_insecure() -> ClientConfig {
Expand Down

0 comments on commit 7cf9d8a

Please sign in to comment.