Subject: | Nessus-Login, LWP::UserAgent and the CA-file |
Date: | Wed, 07 Mar 2012 23:27:13 +0100 |
To: | bug-Net-Nessus-XMLRPC [...] rt.cpan.org |
From: | Martin Schobert <martin [...] mailbeschleuniger.de> |
Hello,
I encountered a problem with connecting in to a Nessus backend, Maybe
something changed in Nessus or LWP::UserAgent. However, I traced the
problem and detected, that LWP::UserAgent fails to connect, because it
does not know the server's certificate. Obviously, that makes sense. I
fixed it, by obtaining the servers certificate using
openssl s_client -host 127.0.0.1 -showcerts -port 8834
extracted both certs and wrote them to a file 'ca'. By setting the
environment variable $ENV{HTTPS_CA_FILE} = 'ca'; it was possible to
connect to the Nessus server. Maybe you might want to document this or
add a further optional parameter to the new() and login() functions in
Net::Nessus::XMLRPC to specify a CA file.
Regards,
Martin
Message body not shown because it is not plain text.