SSL_CTX_set_default_passwd_cb_userdata(pNewContext, <password>);
..load in pem file
SSL_CTX_set_default_passwd_cb_userdata(pNewContext, "");

Xeno Campanoli wrote:
> 
>  I get the above prompt when passing any certificate/privatekey
>  (including one without a passphrase) to my Net::SSLeay.pm perl
>  programmed client.  How can I pass the pass phrase to these routines
> and
>  stop the prompting from happening?  The prompt appears to live in:
> 
>         crypto/pem/pem_lib.c
> 
>  My perl code looks more or less like this:
> 
>          Net::SSLeay::CTX_use_RSAPrivateKey_file($this->{ctx},
>                                          $this->{privatekey_filespec},
>                                          &Net::SSLeay::FILETYPE_PEM);
>            Net::SSLeay::CTX_use_certificate_file($this->{ctx},
> 
>  $this->{certificate_filespec},
> 
>  &Net::SSLeay::FILETYPE_PEM);
> 
>  with error handling removed.  I do CTX_set_options before that, and do
>  the rest afterward.
>  Everything else seems to be working in all related circumstances.
>  However, the first
>  call above seems to yield the prompt I gave in my subject line:
> 
>  Enter PEM pas phrase:
> 
>  and since this is an automated program, I don't want that.  I'm looking
>  around for how to
>  do this the other way in Perl, but I don't see the routines.  If anyone
>  has any suggestions they would be appreciated.
> 
>  Sincerely, Xeno
> 
>  formerly subscribed from [EMAIL PROTECTED]
> 
> 
>  --
>  Xeno Campanoli - Aspiring and self-appointed member of the Diligentsia,
>          generally eschewing Dilatorian digressions and Obnoxioso
>  expenditures.
>  Email:  [EMAIL PROTECTED] (home home page:
>  http://www.aa.net/~xeno
> 
> --
> Xeno Campanoli - Aspiring and self-appointed member of the Diligentsia,
>         generally eschewing Dilatorian digressions and Obnoxioso expenditures.
> Email:  [EMAIL PROTECTED] (home home page:  http://www.aa.net/~xeno
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]

-- 
+-----------------------------------
| Tat Sing Kong Bsc(Hons)               
| Senior Technical Architect            
| Consegna Advanced Technologies Ltd    
| 1st Floor, 30-32 Thomas Street        
| Manchester, M4 1ER, United Kingdom             
| http://www.consegna.co.uk       
| Tel : +44 (0)161 833 3777
| Fax : +44 (0)161 833 3636
| Email : [EMAIL PROTECTED]  

+------------------------------------------------------------------------

 This e-mail is from Consegna Advanced Technologies. The information in
 this e-mail and any files transmitted with it are confidential and may
 be legally privileged. It is intended solely for the stated recipient.
 Access to this e-mail by anyone else is unauthorised. If you are not
 the intended recipient, any disclosure, copying, distribution or any
 action taken or omitted to be taken in reliance on it, is prohibited
 and may be unlawful.
 
 If you have received this e-mail in error please notify
 [EMAIL PROTECTED] or telephone +44 (0)161 833 3777. Views or opinions
 expressed by an individual within this e-mail may not necessarily
 reflect the views of Consegna Advanced Technologies.
+-------------------------------------------------------------------------

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to