Re: No socket creation during request

[email protected] ("Olaf Alders") Thu, 07 Mar 2024 19:16:05 -0500
Newsgroups perl.libwww
Message-ID <[email protected]>
--2c8664d470144239b3b0d3cf2f97cdbf
Content-Type: text/plain;charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi N G Hemanth Kumar,

I don't know if anyone is really using this mailing list anymore. If you=
 open an issue on the GitHub repo you're far more likely to get good hel=
p.

All the best,

Olaf

On Tue, Mar 5, 2024, at 12:14 AM, N G Hemanth Kumar wrote:
> Hi team,
>=20
> Sorry I forgot a little more information.=20
> We are able to connect to the sharepoint server through openssl comman=
d(*openssl s_client connect server:port*).
> The request made via the LWP module to the sharepoint-server is throug=
h *TLS-1.2* protocol.
>=20
> *Perl version being used: perl-5.18.2*
> **
> Thanks,
> N G Hemanth Kumar
>=20
> On Tue, Mar 5, 2024 at 10:29=E2=80=AFAM N G Hemanth Kumar <hemanthkuma=
[email protected]> wrote:
>> Hi team,
>>=20
>> Hope you are doing well. We have NTLM Sharepoint application configur=
ed in our application. The library we are using to support the authentic=
ation operation/feature is *LWP::Authen::Ntlm and Net::SSL*. The authent=
ication flow is similar to what is posted in the page=E2=80=99s <https:/=
/metacpan.org/pod/LWP::Authen::Ntlm> synopsis. It was working fine with =
apache2-2.4.51(without tls1.3) and *openssl-1.0.2p*.
>>=20
>> But recently we upgraded the apache2 library to support tls1.3(with *=
openssl-1.1.1d*). After this upgrade, the app is not able to make a sock=
et connection to the sharepoint server. When debugged further - it wasn'=
t able to create an ssl-socket using *Crypt::SSLeay::Conn->new *in *Net:=
:SSL(v2.85)* module.
>>=20
>> Could you please let us know what might be the possible reasons for t=
his issue and what are the possible ways to resolve this issue?
>>=20
>> Apache2 mod-perl : *apache2-mod_perl-2.0.8-13.5.1.x86_64*
>> LWP based modules : *perl-libwww-perl-6.05, perl-LWP-MediaTypes-6.02,=
 perl-LWP-Protocol-https-6.04, perl-IO-Socket-SSL-2.052-4.3.1, perl-Cryp=
t-SSLeay-0.64-3.57, perl-NTLM-1.09-1.1, perl-Net-HTTP-6.06-5.2, perl-Net=
-SSLeay-1.64-3.2.*
>>=20
>>=20
>> Thanks,
>> N G Hemanth Kumar

--
Olaf Alders

=F0=9F=93=AE [email protected]
=F0=9F=9A=80 https://prettygoodping.com


--2c8664d470144239b3b0d3cf2f97cdbf
Content-Type: text/html;charset=utf-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html><html><head><title></title><style type=3D"text/css">p.Mso=
Normal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi&nbsp;N G Hem=
anth Kumar,<br></div><div><br></div><div>I don't know if anyone is reall=
y using this mailing list anymore. If you open an issue on the GitHub re=
po you're far more likely to get good help.<br></div><div><br></div><div=
>All the best,<br></div><div><br></div><div>Olaf</div><div><br></div><di=
v>On Tue, Mar 5, 2024, at 12:14 AM, N G Hemanth Kumar wrote:<br></div><b=
lockquote type=3D"cite" id=3D"qt" style=3D""><div dir=3D"ltr"><div>Hi te=
am,<br></div><div><div><br></div><div><div>Sorry I forgot a little more =
information.&nbsp;<br></div><div>We are able to connect to the sharepoin=
t server through openssl command(<b>openssl s_client connect server:port=
</b>).<br></div><div>The request made via the LWP module to the sharepoi=
nt-server is through <b>TLS-1.2</b> protocol.<br></div><div><br></div><d=
iv><b>Perl version being used:&nbsp;perl-5.18.2</b><br></div></div></div=
><div><b></b><br></div><div>Thanks,<br></div><div>N G Hemanth Kumar<br><=
/div></div><div><br></div><div class=3D"qt-gmail_quote"><div dir=3D"ltr"=
 class=3D"qt-gmail_attr">On Tue, Mar 5, 2024 at 10:29=E2=80=AFAM N G Hem=
anth Kumar &lt;<a href=3D"mailto:[email protected]">hemanthkuma=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"qt-gmail_qu=
ote" style=3D"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-l=
eft:0.8ex;border-left-width:1px;border-left-style:solid;border-left-colo=
r:rgb(204, 204, 204);padding-left:1ex;"><div dir=3D"ltr"><div><div>Hi te=
am,<br></div><div><br></div><div>Hope you are doing well. We have NTLM S=
harepoint application configured in our application. The library we are =
using to support the authentication operation/feature is <b>LWP::Authen:=
:Ntlm and Net::SSL</b>. The authentication flow is similar to what is po=
sted in the&nbsp;<a href=3D"https://metacpan.org/pod/LWP::Authen::Ntlm" =
target=3D"_blank">page=E2=80=99s</a>&nbsp;synopsis. It was working fine =
with apache2-2.4.51(without tls1.3) and <b>openssl-1.0.2p</b>.<br></div>=
<div><br></div><div>But recently we upgraded the apache2 library to supp=
ort tls1.3(with <b>openssl-1.1.1d</b>). After this upgrade, the app is n=
ot able to make a socket connection to the sharepoint server. When debug=
ged further - it wasn't able to create an ssl-socket using&nbsp;<b>Crypt=
::SSLeay::Conn-&gt;new </b>in <b>Net::SSL(v2.85)</b> module.<br></div></=
div><div><div><br></div><div>Could you please let us know what might be =
the possible reasons for this issue and what are the possible ways to re=
solve&nbsp;this issue?<br></div><div><br></div><div>Apache2 mod-perl : <=
b>apache2-mod_perl-2.0.8-13.5.1.x86_64</b><br></div><div>LWP based modul=
es :&nbsp;<b>perl-libwww-perl-6.05,&nbsp;perl-LWP-MediaTypes-6.02,&nbsp;=
perl-LWP-Protocol-https-6.04,&nbsp;perl-IO-Socket-SSL-2.052-4.3.1,&nbsp;=
perl-Crypt-SSLeay-0.64-3.57,&nbsp;perl-NTLM-1.09-1.1,&nbsp;perl-Net-HTTP=
-6.06-5.2,&nbsp;perl-Net-SSLeay-1.64-3.2.</b><br></div></div><div><div><=
br></div><div><br></div><div>Thanks,<br></div><div>N G Hemanth Kumar<br>=
</div></div></div></blockquote></div></blockquote><div><br></div><div id=
=3D"sig121518600"><div class=3D"signature">--<br></div><div class=3D"sig=
nature"><span class=3D"font" style=3D"font-family:monospace;"><span clas=
s=3D"size" style=3D"font-size:16px;"><span style=3D"text-wrap:nowrap;">O=
laf Alders</span></span></span><br></div><div style=3D"color:rgb(32, 33,=
 36);font-family:Arial, Helvetica, sans-serif;font-size:small;font-style=
:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weig=
ht:400;letter-spacing:normal;orphans:2;text-align:start;text-indent:0px;=
text-transform:none;text-wrap:wrap;widows:2;word-spacing:0px;-webkit-tex=
t-stroke-width:0px;text-decoration-thickness:initial;text-decoration-sty=
le:initial;text-decoration-color:initial;" class=3D"signature"><div><spa=
n class=3D"font" style=3D"font-family:monospace;"><span class=3D"size" s=
tyle=3D"font-size:16px;"><span style=3D"text-wrap:nowrap;"></span></span=
></span><br></div><div><div><span class=3D"font" style=3D"font-family:mo=
nospace;"><span class=3D"size" style=3D"font-size:16px;"><span style=3D"=
text-wrap:nowrap;">=F0=9F=93=AE <span class=3D"color" style=3D"color:rgb=
(255, 255, 255);"><a href=3D"mailto:[email protected]">olaf@wunde=
rsolutions.com</a></span></span></span></span><br></div><div><span class=
=3D"font" style=3D"font-family:monospace;"><span class=3D"size" style=3D=
"font-size:16px;"><span style=3D"text-wrap:nowrap;"><span class=3D"color=
" style=3D"color:rgb(255, 255, 255);"></span>=F0=9F=9A=80 <a href=3D"htt=
ps://prettygoodping.com/" target=3D"_blank">https://prettygoodping.com</=
a></span></span></span><br></div></div></div><div class=3D"signature"><b=
r></div></div><div><br></div></body></html>
--2c8664d470144239b3b0d3cf2f97cdbf--