Dr. Henson, following your last e-mail.
Yes, I would like to obtain a PKCS#7 data ContentInfo from my binary file: so can you tell me more about the API albeit function? And another question : what is the input file format with - signer in smime function. I have an .509 extension and I have an error message saying unable to load certificate. Following the examples, I guess it takes a PEM format. Do you know how to translate a .509 format to a PEM format? Thank you Danny ******************************************** Danny Joseph, ing./P. Eng. Recherche et D�veloppement Research and Development [EMAIL PROTECTED] �quipement Electroline Equipment Inc. 8265 boul. St-Michel, Montr�al, QC H1Z 3E4, Canada Tel: +1 (514) 374-6204 ext.447 Fax: +1 (514) 374-8901 ******************************************** > What I want to do is to take my binary file, encapsulate it in a PKCS #7 > data message (without signing) and then, take this last one and, along with > the cert and private key, create a PKCS #7 signed data message. > The requirement for the input file that I have to sign is : it has to be a > DER-encoded PKCS #7 ContentInfo. > That's how PKCS#7 signedData is normally encapsulated, the signed data is another PKCS#7 ContentInfo which is of type data for OpenSSLs smime command. Or do you want to obtain the PKCS#7 data ContentInfo from the binary file too? If so there isn't an OpenSSL command that can do that at present, though it is possible to do that with the API albeit a bit messily. 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]
