Function rustls::sign::any_ecdsa_type
source · pub fn any_ecdsa_type(
der: &PrivateKey
) -> Result<Arc<dyn SigningKey>, SignError>
Expand description
Parse der
as any ECDSA key type, returning the first which works.
Both SEC1 (PEM section starting with ‘BEGIN EC PRIVATE KEY’) and PKCS8 (PEM section starting with ‘BEGIN PRIVATE KEY’) encodings are supported.