/// Creates a Connector for TLS. This allows to set up a TLS connection as a
/// client. The `self_cert` is used as client certificate for mutual SSL and
/// the corresponding private key must be in the secret key store. The
/// client will only connect to a server that presents the
/// `trusted_server_cert` in the TLS handshake.
Creates a Connector for TLS. This allows to set up a TLS connection as a
client. The `self_cert` is used as client certificate for mutual SSL and
the corresponding private key must be in the secret key store. The
client will only connect to a server that presents the
`trusted_server_cert` in the TLS handshake.
Creates a Connector for TLS . This allows to set up a TLS connection as a client . The ` self_cert ` is used as client certificate for mutual SSL and the corresponding private key must be in the secret key store . The client will only connect to a server that presents the ` trusted_server_cert ` in the TLS handshake .
fn tls_connector(
        &self,
        self_cert: TlsPublicKeyCert,
        trusted_server_cert: TlsPublicKeyCert,
    ) -> Result<ConnectConfiguration, CspTlsClientHandshakeError> {
        Ok(ic_crypto_internal_tls::tls_connector(
            &key_from_secret_key_store(&*self.sks_read_lock(), &self_cert)?,
            &self_cert.as_x509(),
            &trusted_server_cert.as_x509(),
        )?)
    }
fn tls_connector ( & self , self_cert : TlsPublicKeyCert , trusted_server_cert : TlsPublicKeyCert , ) -> Result < ConnectConfiguration , CspTlsClientHandshakeError > { Ok ( ic_crypto_internal_tls :: tls_connector ( & key_from_secret_key_store ( & * self . sks_read_lock ( ) , & self_cert ) ? , & self_cert . as_x509 ( ) , & trusted_server_cert . as_x509 ( ) , ) ? ) }
Creates a Connector for TLS.
Creates a Connector for TLS .
&self
self_cert
TlsPublicKeyCert
trusted_server_cert
TlsPublicKeyCert