in reply to Perl's Net:Kubernetes question

Can't connect to myK8Scluster:8443

The Net-Kubenetes documentation states that those SSL options "are basically just a passthrough to the underlying LWP::UserAgent used to handle the api requests".
And the LWP::UserAgent documentation says "the libwww-perl core no longer bundles protocol plugins for SSL. You will need to install LWP::Protocol::https separately to enable support for processing https-URLs".

So I would first install LWP::Protocol::https if it's not already, and see if that helps.
The LWP::UserAgent documentation makes reference to IO::Socket::SSL and Net::SSL modules, so I'm thinking you might also need at least one of those two installed.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Perl's Net:Kubernetes question
by Anonymous Monk on Nov 13, 2019 at 14:48 UTC
    Hi Rob, thanks for the pointers. I checked and my Perl install already has LWP::UserAgent, LWP::Protocol::https, and IO::Socket::SSL installed. The only missing one is Net::SSL. Are both IO::Socket::SSL AND Net::SSL required, or having one installed is sufficient?

      If you just want to confirm that your LWP::UserAgent can make an https connection try this from your shell:

      HEAD https://www.google.com/

      If the first line returned is 200 OK then you are good to go.

        Careful with this on OS X because of the default filesystem case insensitivity the LWP's HEAD is indistinguishable from the normal *NIX /usr/bin/head; you can use lwp-request -m HEAD https://www.google.com/ there instead to get the right thing.

        The cake is a lie.
        The cake is a lie.
        The cake is a lie.

        Hi hippo, yep, the test connection to google is good. So, looks like the issue is not because of LWP dependencies but something with Net::Kubernetes usage. Its doc. doesn't specifically say I can specify the string with full path and file name to the SSL keys, so I'm not sure if my code's call looks correct??