Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: NTLM Authentication w/ Internal Site

by DanEllison (Scribe)
on May 19, 2022 at 21:47 UTC ( [id://11144019]=note: print w/replies, xml ) Need Help??


in reply to Re: NTLM Authentication w/ Internal Site
in thread NTLM Authentication w/ Internal Site

It's a large corporation, so even the CA was internal to the company. I thought I had downloaded the rootCa as well as all the intermediate certificates, but it still wouldn't verify the host. I did find a certificate bundle on my linux host and downloaded that to my windows box and that seems to have resolved the verify host issue.

Its still not authenticating against NTLM even though I can see the "WWW-Authenticate: NTLM <token>" being sent. I do see another warning now, "Peer certificate not verified".

  • Comment on Re^2: NTLM Authentication w/ Internal Site

Replies are listed 'Best First'.
Re^3: NTLM Authentication w/ Internal Site
by hippo (Bishop) on May 20, 2022 at 08:37 UTC
    I do see another warning now, "Peer certificate not verified".

    That's presumably because you have have left verify_hostname as zero. Test:

    use strict; use warnings; use Test::More tests => 2; use LWP::UserAgent; my $ua = LWP::UserAgent->new; isnt get_cw ($ua), 'Peer certificate not verified', 'Verify = no warni +ng'; $ua->ssl_opts (verify_hostname => 0); is get_cw ($ua), 'Peer certificate not verified', 'No Verify = warning +'; sub get_cw { my $lpw = shift; my $res = $lpw->head ('https://www.perlmonks.org/'); my $cw = $res->header ('Client-SSL-Warning') // ''; return $cw; }

    🦛

      No, all ssl_opts have been removed.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11144019]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found