pub fn der_encode<T: ToASN1>(v: &T) -> Result<Vec<u8>, T::Error>
Automatically encode a type into binary via DER encoding, assuming that the type is a member of ToASN1.
ToASN1