On Tue, Mar 23, 2010, Thomas Guettler wrote:

> Hi,
> 
> I try to verify the file 'data'. The signature is in file 'sig' and the 
> public key in 'pub_key.pem'
> 
> But it fails. Can someone please help me? What I am doing wrong?
> 
> u...@host> bin/openssl  pkeyutl -verify -in data -sigfile sig -pubin -inkey 
> pub_key.pem
> Public Key operation error
> 139738714994328:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong 
> tag:tasn_dec.c:1320:
> 139738714994328:error:0D06C03A:asn1 encoding 
> routines:ASN1_D2I_EX_PRIMITIVE:nested asn1 error:tasn_dec.c:832:
> 139738714994328:error:0D08303A:asn1 encoding 
> routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error:tasn_dec.c:752:Field=r,
> Type=DSA_SIG
> 
> Version: OpenSSL 1.0.0-beta5 20 Jan 2010
> 
> The files are attached (the are only a few bytes)
> 
>   Thomas
> 
> PS: I can't access the code which creates the signature file.
> 

The signature you have is a PKCS#7 structure. You need to use the cms
utilities and an appopriate certificate to verify it.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to