Hi,

Sorry, wrong error. The actual error is:

max@spirit6 ~/Downloads/openssl-1.0.1c/apps $ ./openssl smime -verify
-in message.txt.signed  -text -CAfile cacert.pem
Verification failure
2897402476:error:0D0D50CE:asn1 encoding routines:SMIME_text:mime no content
type:asn_mime.c:586:
2897402476:error:21075081:PKCS7 routines:PKCS7_verify:smime text
error:pk7_smime.c:395:



On Mon, Dec 17, 2012 at 5:41 PM, massimiliano.m...@gmail.com <
massimiliano.m...@gmail.com> wrote:

> Hello All,
>
> I am trying to do some interoperability tests with S/MIME and java bouncy
> castle. I have issues
> with S/MIME signature verification.
>
> max@spirit6 ~/Downloads/openssl-1.0.1c/apps $ ./openssl
> OpenSSL> version
> OpenSSL 1.0.1c 10 May 2012
> OpenSSL> max@spirit6 ~/Downloads/openssl-1.0.1c/apps $ cat >> message.txt
> Hi, this is a text message
> max@spirit6 ~/Downloads/openssl-1.0.1c/apps $ ./openssl smime -sign
> -signer cert.pem -inkey key.pem -in message.txt -out message.txt.signed
> max@spirit6 ~/Downloads/openssl-1.0.1c/apps $ ./openssl smime -verify
> -text -in message.txt.signed
> Verification failure
> 2897402476:error:21075075:PKCS7 routines:PKCS7_verify:certificate verify
> error:pk7_smime.c:342:Verify error:unable to get local issuer certificate
> max@spirit6 ~/Downloads/openssl-1.0.1c/apps $ ./openssl smime -verify
> -text -in message.txt.signed -CAfile cert.pem
> Verification failure
> 2897402476:error:21075075:PKCS7 routines:PKCS7_verify:certificate verify
> error:pk7_smime.c:342:Verify error:unable to get local issuer certificate
> max@spirit6 ~/Downloads/openssl-1.0.1c/apps $
>
> This happens with version 1.0.1c.
> key: http://www.mascanc.net/~max/SMIME/key.pem
> cert: http://www.mascanc.net/~max/SMIME/cert.pem
>
> Is it a FAQ? If yes, sorry for that!
>
> Thank you,
>
>
>        Massi
>
>


-- 
Massimiliano Masi

http://www.mascanc.net/~max

Reply via email to