Yuji Shinozaki wrote:
> 
> I see there is a way to convert from an s/mime message to a pkcs7.  Is
> there a way to do the reverse?  It seems the smime utility requires you to
> do a signing when creating the s/mime message.  But what I would like to
> do is construct an smime message manually, using a signature and data that
> are already packed in a pkcs7...
> 

Converting S/MIME to PKCS#7 PEM can be done with the -pk7out option.

As for the reverse, the 'smime' utility doesn't do that but you can use
the S/MIME API, for example SMIME_write_PKCS7().

The latest snapshot version of the smime utility is also a bit more
flexible in that it can handle PKCS#7 structures in PEM format and
external content rather than only handling S/MIME messages.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business 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