gateway reaches the controller over tls with its own client leaf when the tcp listener is on
This commit is contained in:
parent
17fffaae79
commit
187ed82de0
1 changed files with 768 additions and 49 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Reference in a new issue