Watch
0
0
Fork
You've already forked hyperhive
0

gateway reaches the controller over tls with its own client leaf when the tcp listener is on

This commit is contained in:
atlas 2026-11-15 16:10:59 +01:00 • committed by mara
commit 187ed82de0

View file

@ -175,7 +175,10 @@ fn read_pair(cert: &Path, key: &Path, provider: &CryptoProvider) -> Result<Arc<C
.key_provider
.load_private_key(key)
.context("the private key is not one rustls can sign with")?;
Ok(Arc::new(CertifiedKey::new(chain, signing)))
let pair = CertifiedKey::new(chain, signing);
pair.keys_match()
.context("the private key does not belong to the certificate")?;
Ok(Arc::new(pair))
}
/// Accepts exactly the certificates `inner` accepts that also name `name`.