Hi again, after setting to work LunaCA3 with OpenCA, I have
encountered another problem. I've generated correctly the CA
certificate using the HSM, but when creating the initial administrator
of the CA, there is a strange behaviour: in lib/cmds/basic_csr  this
code

## create the key
if( not $cryptoShell->genKey(
               BITS      => $bits,
               OUTFILE   => $keyFile,
               ALGORITHM => $alg,
               PASSWD    => $PASSWD ) ) {
         generalError (gettext ("Cannot create keypair!").
                "<br>".$OpenCA::OpenSSL::errno,
                  $OpenCA::OpenSSL::errno);
}

instead of calling the genKey() of
perl5/i386-linux-thread-multi/OpenCA/OpenSSL.pm, it calls the genKey()
of perl5/OpenCA/Token/LunaCA3.pm and this obviously doesn't work
because the parameters are different and because in basic_csr the key
must be generated not on HSM token!

How can this be possible ? only because the two functions have the
same name ? or other ?

-- 
Diego de Felice


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Openca-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openca-users

Reply via email to