Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

requests.exceptions.SSLError: hostname #125

Closed
johnlabarge opened this issue Apr 5, 2017 · 1 comment
Closed

requests.exceptions.SSLError: hostname #125

johnlabarge opened this issue Apr 5, 2017 · 1 comment

Comments

@johnlabarge
Copy link

When I try to use the instructions from the documentation to connect to a GKE cluster using the config file it fails with the dreaded: "requests.exceptions.SSLError: hostname." I expect this to work by not validating the hostname and instead validating the cert.

The workaround is to use kubectl proxy and http://localhost:8001 which is just an extra step for the user. It would be nice if requests could turn host validation off in this case, but there is no such feature in that library. I filed a feature request with it as well, but it is basically rejected.

It may be worth updating the docs to deal with this.

@brosner
Copy link
Contributor

brosner commented Jun 30, 2017

I am hoping this is fixed with the change in 2f06f60. If it is not then I am happy to add in more docs.

@brosner brosner closed this as completed Jun 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants