pub fn get_algorithm(cert_der: &[u8]) -> Result<String, KeyError>
Parses algorithm from X.509 certificate.
Returns an KeyError if parsing fails, or if algorithm is unsupported.
KeyError