MCPcopy Index your code
hub / github.com/Dstack-TEE/dstack / CertValidator

Interface CertValidator

gateway/src/kv/https_client.rs:32–38  ·  view source on GitHub ↗

Custom certificate validator trait for TLS handshake verification. Implementations can perform additional validation on the peer certificate during the TLS handshake, before any application data is sent.

Source from the content-addressed store, hash-verified

30/// Implementations can perform additional validation on the peer certificate
31/// during the TLS handshake, before any application data is sent.
32pub trait CertValidator: Debug + Send + Sync + 'static {
33 /// Validate the peer certificate.
34 ///
35 /// Called after standard X.509 chain verification succeeds.
36 /// Return `Ok(())` to accept the certificate, or `Err` to reject.
37 fn validate(&self, cert_der: &[u8]) -> Result<(), String>;
38}
39
40/// TLS configuration for mTLS with optional custom certificate validation
41#[derive(Clone)]

Callers

nothing calls this directly

Implementers 1

https_client.rsgateway/src/kv/https_client.rs

Calls

no outgoing calls

Tested by

no test coverage detected