On Tue, Apr 16, 2013, Derek Cole wrote: > Hello, > > I am cross posting this to the list in hopes of getting some more traffic: > > http://stackoverflow.com/questions/16026718/how-to-load-a-config-for-cert-signing-request-with-openssl-api > > Basically I am trying to modify the mkreq.c program to read in my already > existing config file instead of adding the ext's one at a time like is > happening in the example. It is not crashing, but I don't see any evidence > that it has loaded the config file either - perhaps someone can take a look > and show me how that should be done? >
First there's a typo in mkreq.c it should be STACK_OF(X509_EXTENSION). Have a look at the snippet in apps/req.c around line 880 (where it uses the variable X509V3_CTX). This uses the newer nconf code. If you want to use a LHASH directly you can use the older API which ends in _conf instead of _nconf. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org