Hello,

could someone help me in resolving the following problem ?

I create a new certificate request with
X509_REQ_new()
I give it the key with
X509_REQ_set_pubkey(req,pkey)
I set the version
X509_REQ_set_version(req,0L)
I use X509_NAME_add_entry_by_txt(.....) to add entries
and then I sign it
X509_REQ_sign(req,pkey,digest).

Is there the right way to do ?

Because I can't read the request with the method
PEM_read_bio_X509_REQ(in,NULL,0,NULL)

More if I create a certificate with openssl command line I can read this 
certificate but openssl can't read a certificate create as above.

What's the problem here ?

Thx.

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

Reply via email to