http://qs321.pair.com?node_id=486661

Sifmole has asked for the wisdom of the Perl Monks concerning the following question:

Hi all, I am attempting to get LWP::UserAgent to properly handly a connection which requires a protected certificate. My current issue is that no matter which way I have tried to define the callback via any of the following:
set_default_passwd_cb CTX_set_default_passwd_cb $IO::Socket::SSL::SSL::GLOBAL_CONTEXT_ARGS{'SSL_passwd_cb'} &IO::Socket::SSL::context_init('SSL_passwd_cb' => \&foo );
The LWP::UserAgent either asks via the TTY for the passphrase or barges ahead not asking for one but not succeeding in making the connection. Anybody ever managed to use this feature?