Hi,

I configure my CSRs to obtain some BASIC ELEMENTS from a xml file:

(in ca.conf):
...
DN_TYPE_BASIC_ELEMENT_2                "(OU) Group"
DN_TYPE_BASIC_ELEMENT_2_XML_FILE       "/pki/ca/etc/custom_csr.xml"
DN_TYPE_BASIC_ELEMENT_2_XML_PATH       "basic_csr/basic/element_2/option"
...

But it did not work, so I patched the sub cmdBasic_csr in lib/cmds/basic_csr:

sub cmdBasic_csr {
...
# begin patch
# my $twig = loadConfigXML (getRequired ("DN_TYPE_".$type."_ELEMENT_".$i."_XML_FILE"));
my $twig = loadConfigXML ("DN_TYPE_".$type."_ELEMENT_".$i."_XML_FILE");
# end patch


...
# begin patch
#my $twig = loadConfigXML (getRequired ("DN_TYPE_".$type."_SUBJECTALTNAME_".$i."_XML_FILE"));
my $twig = loadConfigXML ("DN_TYPE_".$type."_SUBJECTALTNAME_".$i."_XML_FILE");
# end patch
...
}


There were errors only in BASIC ELEMENTS.

I saw that the function getRequired was invoked in the sub loadConfigXML,
so getRequired was invoked twice.

I do not know if this patch is the best solution, but now it works fine.

Regards, Jose



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
OpenCA-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openca-devel

Reply via email to