Hi, everyone.

I'm new to OpenSSL and have what will probably be a
stupid question. I've been reading and fiddling with
things for weeks now and still I'm not clear on the
best way to do the following (standard) procedure:

I need to generate public and private keys, store them
in some persistent form that carries all the
information necessary for separate encryption and
decryption to be sent across a network, and encrypt
and subsquently decrypt a message.

I've been using RSA_generate_key, RSA_public_encrypt,
and RSA_private_decrypt for the above, but am having
problems with the rsa_st structure, since it can't be
easily encapsulated for use by the
RSA_public(private)_encrypt(decrypt) functions. I've
been reading through the demos and docs and trying to
figure out a possible connection with PEMs and DERs or
certificates, but I'm afraid I'm getting more
confused.

I'm hoping someone has some code examples or can point
me towards the relevant man/.h pages. The more
detailed an explanation, the more grateful I'll be.

Thank you very much for any help, Drani. 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to