fn builder_from_der_key(cert: &[u8], key: &[u8]) -> anyhow::Result<Self::Builder> {
        let _ = (cert, key);
        assert!(!Self::SUPPORTS_DER_KEYS);

        if !Self::SUPPORTS_PKCS12_KEYS {
            Err(crate::CommonError::TlsBuilderFromFromDerOrPkcs12NotSupported(Self::TYPE_DYN))?;
        }

        let (pkcs12, pkcs12pass) = der_to_pkcs12(cert, key)?;

        Self::builder_from_pkcs12(&pkcs12, &pkcs12pass)
    }
/// New builder from given server key.
///
/// Parameters are DER-encoded (binary) X509 cert and corresponding private key.
///
/// Note if this implementation does not support DER keys directly,
/// `openssl` command is used to convert the certificate.
New builder from given server key.
Parameters are DER-encoded (binary) X509 cert and corresponding private key.

Note if this implementation does not support DER keys directly,
`openssl` command is used to convert the certificate.
New builder from given server key . Parameters are DER - encoded ( binary ) X509 cert and corresponding private key . Note if this implementation does not support DER keys directly ` openssl ` command is used to convert the certificate .
fn builder_from_der_key(cert: &[u8], key: &[u8]) -> anyhow::Result<Self::Builder> {
        let _ = (cert, key);
        assert!(!Self::SUPPORTS_DER_KEYS);
        if !Self::SUPPORTS_PKCS12_KEYS {
            Err(crate::CommonError::TlsBuilderFromFromDerOrPkcs12NotSupported(Self::TYPE_DYN))?;
        }
        let (pkcs12, pkcs12pass) = der_to_pkcs12(cert, key)?;
        Self::builder_from_pkcs12(&pkcs12, &pkcs12pass)
    }
fn builder_from_der_key ( cert : & [ u8 ] , key : & [ u8 ] ) -> anyhow :: Result < Self :: Builder > { let _ = ( cert , key ) ; assert ! ( Self SUPPORTS_DER_KEYS ) ; if ! Self :: SUPPORTS_PKCS12_KEYS { Err ( crate :: CommonError :: TlsBuilderFromFromDerOrPkcs12NotSupported ( Self :: TYPE_DYN ) ) ? ; } let ( pkcs12 , pkcs12pass ) = der_to_pkcs12 ( cert , key ) ? ; Self :: builder_from_pkcs12 ( & pkcs12 , & pkcs12pass ) }
New builder from given server key.
New builder from given server key .
cert
&[u8]
key
&[u8]
cert
&[u8]
key
&[u8]