Skip to content

Requests is running with a non urllib3 backend - NoCertificateRetrievedWarning #118

Description

@sdmorel

Hello,

I'm testing Rundeck with WinRM against a Windows server using NTLM authentication.
I run into a similar situation to the one described here requests/requests-kerberos#128

I followed the same steps, added some print lines at L198

print(raw_response.__class__)
print(HTTPResponse)

And got:

<class 'urllib3.response.HTTPResponse'>
<class 'requests.packages.urllib3.response.HTTPResponse'>

I'm not sure what's the reason for the check at L185. But when I replaced it with a if True:

I got no warnings or errors and the process (copy a PowerShell script and run it) finished successfully.

Then I added this to L194 and saw exactly that message in the output.

print("No certificate received from peer")

My env:

# pip freeze | grep requests
requests==2.22.0
requests-kerberos==0.12.0
requests-ntlm==1.1.0

So, is there a way to fix the check at L185?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions