in reply to Re^2: Using an SSL cert to talk to a server
in thread Using an SSL cert to talk to a server

Thanks for the response but wow, that is really hard.

See http://cpansearch.perl.org/src/SULLR/IO-Socket-SSL-1.44/example/lwp-with-verifycn.pl and add SSL_key_file / SSL_cert_file .... something :)

Or, see also, http://cpansearch.perl.org/src/NANIS/Crypt-SSLeay-0.58/eg/lwp-ssl-test

Also, I'm sure any suggestions for making it easier would be appreciated https://rt.cpan.org/Public/Dist/Display.html?Name=libwww-perl

With curl you can just use -E to specify a cert. Is it really this hard in perl?

You can use curl from perl :)

  • Comment on Re^3: Using an SSL cert to talk to a server

Replies are listed 'Best First'.
Re^4: Using an SSL cert to talk to a server
by rastoboy (Monk) on Jun 09, 2011 at 23:35 UTC
    Thanks for that, Anon :-)

    Yeah I actually was playing with that example script last night--but sadly it doesn't execute even in stock form.

    I'll definitely make a suggestion once I figure it out, though.

    edit:I am indeed using curl with backticks at the moment, but my soul burns :-). I did experiement extensively with the various new() method options offered by IO::Socket::SSL to no avail. I guess this is a different sort of "using a cert".

    another update: and it also seems true that none of the cpan curl-related modules support this, either. I guess it is a weird thing we are doing :-)