On Wed, Dec 15, 2004, Aparna Nandyal wrote: > > 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? >
Depends on the file format. If its PEM (e.g. smime -sign works with it) then PEM_read_PrivateKey() will do the trick. Check out the pem manual page for more details. 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]
