DERofStruct
function DERofStruct(aStruct: tASN1Base): OctetString;
DERofStruct returns the complete DER encoding (tag, length and content) of an ASN.1 object as an OctetString. Pass the object obtained from an interface through its GetStruct accessor.