<div dir="ltr">Thanks to further information shared by Jakub Wilk,<br>specifically the issue discussion being tracked here:<br><br><a href="https://github.com/libwww-perl/lwp-protocol-https/pull/14">https://github.com/libwww-perl/lwp-protocol-https/pull/14</a><br>
<br>I was able to resolve connection issues with servers containing <br>self-signed SSL (localized dev servers)  using following method:<br><br>Based on information in above link and a small patch to lwp-protocol-https as shown in link below:<br>
<br><a href="https://github.com/libwww-perl/lwp-protocol-https/pull/14#issuecomment-42950342">https://github.com/libwww-perl/lwp-protocol-https/pull/14#issuecomment-42950342</a><br><br>This fixes the real issue of $ssl_opt{ssl_verify_mode} getting clobbered and <div>
causing the failed connections to self-signed servers. While the fix is meant </div><div>for versions < 1.950, it also work in 1.988-1.</div><div><br></div><div>I can now ignore setting both environment variables:<br><br>
PERL_LWP_SSL_VERIFY_HOSTNAME<div>and  <span style="color:rgb(0,0,0);line-height:19.200000762939453px">PERL_LWP_SSL_CA_PATH</span></div><div><span style="color:rgb(0,0,0);line-height:19.200000762939453px"><br></span></div>
<div><span style="color:rgb(0,0,0);line-height:19.200000762939453px">I instead opted to modify the library code my client-side tool depends on</span></div><div><span style="color:rgb(0,0,0);line-height:19.200000762939453px">where LWP is being called and introduced a single option </span></div>
<div><span style="color:rgb(0,0,0);line-height:19.200000762939453px">to specify accepting connections to self-signed servers.</span></div><div><br></div><div>As noted by Jakub this is done with:</div><div><br></div>$ua->ssl_opts( SSL_verify_mode => 0, verify_hostname => 0, );<div>
<div><div><br></div></div></div></div><div>So for me the fix was two-fold, avoid clobbering of ssl_verify_mode in lwp-protocol-https</div><div>and set above options if connecting to self-signed SSL servers.</div><div><br>
</div><div>With the clobbering part fixed other things such as GET/POST from LWP also work.</div><div><br></div></div>