Hi, 

I recently posted a question about reading and writing RSA keys.
I want to write the public key to a seperate file because that file needs 
to be distributed. But when i read it, I first of all get "expecting 
public key" error from PEM_read_bio_PUBKEY(). Won't the original RSA 
structure be destroyed (so I lose the private key)??
or is it maybe possible to encrypt with an RSA key without the private 
key (I am ,obviously ,encrypting only with the given public key) inside.

Just for clearing up why I want the above construction:

I want an RSA keypair, The private and public keys should be stored to 
disk seperatly (maybe a private file with public inside, but public must 
also be alone in a file). The public key will be distributed and must be 
readable by another application to be used for encrypting data which has 
to be send back to the originator.

Maybe anybody can help with the top problem, 

Thanks,

Thijs Volders.


     


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to