Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sdmorel opened this issue Aug 7, 2019 · 0 comments

Comments

@sdmorel
Copy link

sdmorel commented Aug 7, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant