Hi,

I am having a problem with the RSA functions of the openssl package.
I want to generate an RSA key pair. Write them to disk and use them later
(this all in linux/AIX)
I managed to generate a keypair. But then the problem starts. I canīt find
any functions to write the whole key (not just private of public) to disk.
When i write them seperately I canīt read the public key in an rsa
structure. The function PEM_read_bio_PUBKEY() comes with the error
"EXPECTING PUBLIC KEY" But the file is a public key ?!

Iīve tried to strip the rsa.c and the genrsa.c but that didnīt work for me.
I also looked at the examples but also these didnīt provide me with the
right information.

Can anybody supply me with an example of how to write an RSA key (encrypted
or not) to disk and read them in again to use it with RSA_public_encrypt().


Met vriendelijke groet / With kind regards,

Thijs Volders


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

Reply via email to