On Wed, Mar 26, 2003, marek cervenka wrote:

> hi,
> 
> i have a single file in PKCS#7 format
> can i decrypt this file with openssl?
> 
> i try this
> [EMAIL PROTECTED] cp]# openssl smime -decrypt -inform der -in pkcs7.enc -recip 
> test.pem -inkey key.pem
> Enter PEM pass phrase:
> Error decrypting PKCS#7 structure
> 3428:error:21070073:PKCS7 routines:PKCS7_dataDecode:no recipient matches 
> certificate:pk7_doit.c:371:
> 3428:error:21072077:PKCS7 routines:PKCS7_decrypt:decrypt error:pk7_smime.c:405:
> 

You can if pass it a private key and certificate corresponding to one of
the recipients of the message.

Steve.
--
Dr Stephen N. Henson.
Core developer of the   OpenSSL project: http://www.openssl.org/
Freelance consultant see: http://www.drh-consultancy.demon.co.uk/
Email: [EMAIL PROTECTED], PGP key: via homepage.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to