Hi, Thank you for your response. But I have a file in which private key is available.
Smime -sign command prompts me for a pass word which I enter and internally private key is passed to pkcs7_sign () in EVP_PKEY without pass word. But I have a password protected private key in a file which I am not able to input to pkcs7_sign() directly. I also have the password in another file. So is there any function which takes password protected private key and password and return an EVP_PKEY without password? Thanks and Regards Aparna -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dr. Stephen Henson Sent: Wednesday, December 15, 2004 7:18 PM To: [EMAIL PROTECTED] Subject: Re: pkcs7_sign function On Wed, Dec 15, 2004, Aparna Nandyal wrote: > > Hi > > Im using pkcs7_sign method. One of the input parameters to this function is > EVP_PKEY private key. But private keys are password protected and there is > no parameter in the function to take the password for the private key. So > can anyone let me know how pkcs7_sign method can be used with password > protected key? > The password protection is normally handled when you obtain the EVP_PKEY structure. That might be from a PEM file or a PKCS#12 file. Those (and other options) include support for passwords. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]