On Samstag, 21. September 2002 14:13, Touria Zaddaoui wrote:
> dear all,
> can anybody help me with this problem?
> when i sign document with a signing algorithm different than md5 like md2
> for example, i get an error in the verification, i use the following
> commands:
> 1- to sign:
> openssl dgst -sign priv_key.pem -out signature.pem -md2 doc.txt
> 2-to verify:
> openssl dgst -verify pub_key.pem -signature signature.pem doc.txt
>
> i get as a result verification failure

try:
openssl dgst -verify ...  -signature ... -md2 doc.txt
                                                    ^^^^ 
If you don't specify a hash algorithm the default hash 'md5'
is used.

Regards,
Nils
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to