On Mon, Dec 01, 2003, Слепнев Владимир wrote: > Hello, > > suppose I have a binary (or base64-encoded) representation of an RSA > public key modulus - just a raw string of 1024 bytes. And I know that > the corresponding public key exponent is 65537. Now, how do I convert > this information to a .der or .pem public key file, recognizable by > OpenSSL? >
You can either write a short program which places the components into an RSA structure and writes to a file or use the OpenSSL 0.9.8-dev mini ASN1 compiler. In the latter case there's an example in the manual pages for ASN1_generate_nconf() which can be called from the 0.9.8-dev asn1parse utility. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]