This is my first Perl script. I have installed SOAP::Lite using CPAN and it seems to have gone okay.
I\'m trying to access a simple HelloWorld .NET web service. I\'m get
Here is how to make this work securely, i.e. without disabling SSL hostname checking.
If you're talking to a public system with a CA-signed certificate, you need to point LWP to your distribution's root certificate collection. Under a Debian-based system (Ubuntu, etc.), this is kept under /etc/ssl/certs/.
BEGIN {
$ENV{HTTPS_CA_DIR} = '/etc/ssl/certs'
}
If you are talking to your own server with a self-signed certificate, you can save a copy of that certificate on the client, and point your script to that particular file.
BEGIN {
$ENV{HTTPS_CA_FILE} = '/path/to/my/server-certificate.crt'
}
You could instead set these in the environment before running your script (e.g. export them from your shell), or you could apply the settings directly to your UserAgent object. See the LWP::UserAgent documentation for more details; search for ssl_opts.