Hi Lampa, On Tue, Nov 18, 2008 at 06:39:59PM -0800, lampa wrote: > I am so puzzled about generating of PIN hash value. > I find the code like this: > open $OPENSSL ,$open ; > > print {$OPENSSL} "dgst -sha1\n"; > print {$OPENSSL} "lampa\x00"; > print {$OPENSSL} "exit\n"; > > close $OPENSSL ; > > But, the value hashed by above code is different from the value hashed by > command "openssl -sha1 /usr/local/sha1". and "/usr/local/sha1" is file > ,which contain the value is "lampa". It looks like your file should contain "lampa\x00exit\n", at least the file generated with perl -e 'print "lampa\x00exit\n"' > /tmp/foo.txt gives me the same digest as the code above. I haven't tried it on the OpenCA interface, though.
Cheers, Alex -- Dipl.-Math. Alexander Klink | IT-Security Engineer | [EMAIL PROTECTED] mobile: +49 (0)178 2121703 | Cynops GmbH | http://www.cynops.de ----------------------------+----------------------+--------------------- HRB 7833, Amtsgericht | USt-Id: DE 213094986 | Geschäftsführer: Bad Homburg v. d. Höhe | | Martin Bartosch
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Openca-Users mailing list Openca-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openca-users