I am trying to write some code to sign a request, and save the resulting
certificate. I am having a number of problems, but have "distilled" this
down to the sample code shown below.
I have tried loading an existing request (as in the code below), as well as
creating a request in memory - in both cases, I have the same problem,
which is that it "segmentation faults" during the X509_set_issuer_name()
This code is deliberately trivial, with many debugging statements, to try
and show the problem I'm having in its simplest form.
I know the openssl command line 'req' option can perform this task, and
I've been looking at the code in req.c to try to see what I'm doing
wrong. No doubt it's something trivial, or I've completely misunderstood
what I should be doing!
Can anyone help, please? To reiterate, the program segmentation faults
during X509_set_issuer_name() :