>From the C interface, is there a preferred / generalized way to take a public
key or certificate and put it in a binary form suitable for network
transmission?  There's a whole set of functions for reading and writing keys
in PEM format, but nothing for binary.  I could, for example, pull from an
RSA key the n and e values and put them in a buffer, but that seems a bit
too hard-coded.  I'd prefer not to dig into the implementation details of
these keys.  I could also use one of the PEM write routes to write the PEM
to a memory sink and manually decode the base64 (I don't see any base64
routines, and BIO_f_base64 seems to only work in one direction), but that's
a major kludge.

So what is the proper way to go about this?

Thanks,
Dennis

-- 
View this message in context: 
http://www.nabble.com/Writing-public-keys---certificates-in-binary-form-tp22834760p22834760.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to