Hi all,

I am trying to modify a request DN and save it into an
alternate file/output.

I have succeded in generating a new DN from a string and
I get no error when using:

        if(!X509_REQ_set_subject_name ( req, n ))
                return(0);

where the req is the loaded request and n is the X509_NAME
generated structure.

The new subject name is displayed correctly when using the:

        if( verbose )
              {
              print_name(bio_err, "new subject=",
                        X509_REQ_get_subject_name(req), nmflag);
              }

But when sending it out I get the old DN:

        i=PEM_write_bio_X509_REQ(out,req);

Why ??? I am patching the req.c file, but I am stuck with this
problem. Someone can help ???

C'you,

        Massimiliano Pala ([EMAIL PROTECTED])

S/MIME Cryptographic Signature

Reply via email to