fn tls_acceptor(
        &self,
        self_cert: X509PublicKeyCert,
        trusted_client_certs: Vec<X509PublicKeyCert>,
    ) -> Result<SslAcceptor, CspTlsServerHandshakeError> {
        let self_cert_x509 = self_cert_x509(&self_cert)?;
        let trusted_client_certs_x509 = trusted_client_certs_x509(trusted_client_certs)?;
        Ok(ic_crypto_internal_tls::tls_acceptor(
            &key_from_secret_key_store(&*self.sks_read_lock(), &self_cert)?,
            &self_cert_x509,
            trusted_client_certs_x509,
        )?)
    }
/// Creates an Acceptor for TLS. This allows to set up a TLS connection as a
/// server. The `self_cert` is used as server certificate and the
/// corresponding private key must be in the secret key store. The
/// server will only allow TLS connections from clients that
/// authenticate with a client certificate in `trusted_client_certs`.
Creates an Acceptor for TLS. This allows to set up a TLS connection as a
server. The `self_cert` is used as server certificate and the
corresponding private key must be in the secret key store. The
server will only allow TLS connections from clients that
authenticate with a client certificate in `trusted_client_certs`.
Creates an Acceptor for TLS . This allows to set up a TLS connection as a server . The ` self_cert ` is used as server certificate and the corresponding private key must be in the secret key store . The server will only allow TLS connections from clients that authenticate with a client certificate in ` trusted_client_certs ` .
fn tls_acceptor(
        &self,
        self_cert: X509PublicKeyCert,
        trusted_client_certs: Vec<X509PublicKeyCert>,
    ) -> Result<SslAcceptor, CspTlsServerHandshakeError> {
        let self_cert_x509 = self_cert_x509(&self_cert)?;
        let trusted_client_certs_x509 = trusted_client_certs_x509(trusted_client_certs)?;
        Ok(ic_crypto_internal_tls::tls_acceptor(
            &key_from_secret_key_store(&*self.sks_read_lock(), &self_cert)?,
            &self_cert_x509,
            trusted_client_certs_x509,
        )?)
    }
fn tls_acceptor ( & self , self_cert : X509PublicKeyCert , trusted_client_certs : Vec < X509PublicKeyCert > , ) -> Result < SslAcceptor , CspTlsServerHandshakeError > { let self_cert_x509 = self_cert_x509 ( & self_cert ) ? ; let trusted_client_certs_x509 = trusted_client_certs_x509 ( trusted_client_certs ) ? ; Ok ( ic_crypto_internal_tls :: tls_acceptor ( & key_from_secret_key_store ( & * self . sks_read_lock ( ) , & self_cert ) ? , & self_cert_x509 , trusted_client_certs_x509 , ) ? ) }
Creates an Acceptor for TLS.
Creates an Acceptor for TLS .
&self
self_cert
X509PublicKeyCert
trusted_client_certs
Vec<X509PublicKeyCert>
&self
self_cert
X509PublicKeyCert
trusted_client_certs
Vec<X509PublicKeyCert>