Hello list,
Are the ASN.1 functions in OpenSSL "generic" enough to be used for other purposes besides reading/writing certificates?
I was curious if the ASN.1 code could encode/decode both BER and DER, generically, even if the source of the data is NOT associated with certificates. For instance, can these routines be used to encode/ decode a CMS container. Since CMS is pretty close to PKCS#7, my assumption would be "yes". But taken to another extreme, could I use the ASN.1 library in OpenSSL to encode/decode Kerberos traffic, or SNMP traffic (BER), or other protocols encoded in BER/DER?
Just curious how "reusable" the OpenSSL ASN.1 was, and if it's not "quite" as reusable as I am thinking about, is there a generic library available? I've tried using "asn1c", but this code seems to break when I feed it valid BER...
Thanks! Randy
smime.p7s
Description: S/MIME cryptographic signature