Hellan,Kim KHE wrote:
> 
> Hi
> 
> I have a private key (PEM), certificate/root certificate (DER) and a small
> text: "This is a test".
> Using PKCS#7, I would like to make a small test program, where I sign the
> text with the private key, write this PKCS#7 object to a file, read the file
> again and then verify the signature.
> 
> Could anyone please tell me which OpenSSL functions I must use to accomplish
> that and in what order they must be called.
> 
> Feel free to tell me to RTFM, if it is in there somewhere......I just
> couldn't find it :-)
> 

Its not in the FM yet but it is in the FS (source). Have a look at
apps/smime.c

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
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to