Hi,
(openca 0.9.2.1, 10-jan-2005)
I tried to rebuild the SSL index on the CA NODE (cmd rebuildOpenSLLindexDB)
An error appears (... array extend .... crypto-utils.lib) while processing the CA Certificate
In the sub export_openssl_db (crypto-utils.lib), the certificate serial is retrieved as 2147483647.
This number is -1 (7FFFFFFF) but it is used to index an array (@index) and the program fails.
I patched the sub:
sub export_openssl_db { ... ## get all valid_ca_certificates @list = $db->searchItems ( DATATYPE => "VALID_CA_CERTIFICATE" ); foreach my $value (@list) { ... # begin patch # Old code: # $index [$value->getSerial()] = \%hash; # $max = $value->getSerial() if ($value->getSerial() > $max); # New code: my $caserial = $value->getSerial(); $caserial = 0 if ( $caserial == 2147483647); $index [$caserial] = \%hash; $max = $caserial if ($caserial > $max); # end patch }
Now the command runs ok, but I do not know if I had to patch the code due a missconfiguration on my node.
Could anyone help?
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 OpenCA-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openca-devel