Requests is running with a non urllib3 backend - NoCertificateRetrievedWarning
sdmorel opened this issue · 0 comments
sdmorel commented
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?