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

Self-signed SSL #126

Closed
ugamarkj opened this issue Jan 8, 2017 · 4 comments
Closed

Self-signed SSL #126

ugamarkj opened this issue Jan 8, 2017 · 4 comments
Labels

Comments

@ugamarkj
Copy link

ugamarkj commented Jan 8, 2017

Does the current package support environments with self-signed SSL certs? I can't figure out what I need to do to pass the "verify=False" argument in requests.post()

@graysonarts
Copy link
Contributor

Hey,

We support it at the server object level. There is an add_http_options method call that allows you to pass arguments to requests.

You can see an example of this in the sample here: https://github.com/tableau/server-client-python/blob/master/samples/set_http_options.py#L36

Line 36 is the interesting bit there. Let me know if you run into any problems with setting it.

@t8y8
Copy link
Collaborator

t8y8 commented Jan 8, 2017

In addition you may get warnings, the workaround is to put this in your script:

import requests
from requests import InsecureRequestWa‌​rning
requests.packages.urllib3.disable_warnings(InsecureRequestWa‌​rning)

@ugamarkj
Copy link
Author

ugamarkj commented Jan 8, 2017

Great! Thanks for the help

@t8y8 t8y8 added the docs label Mar 1, 2017
@talvalin
Copy link
Contributor

talvalin commented Mar 14, 2017

Should this issue be closed out now, given that I updated the sign-in/sign-out doc to explicitly talk about the workaround for self-signed certificates? https://github.com/tableau/server-client-python/blob/development/docs/docs/sign-in-out.md

@t8y8 t8y8 closed this as completed Mar 14, 2017
bryceglarsen pushed a commit to bryceglarsen/server-client-python that referenced this issue Dec 28, 2023
* Fix tableau#117 by only attempting files with the right extension inside the archive (tableau#118)

* Commenting and Docstring cleanup. A few very small code cleanups (tableau#120)

Add docstrings and remove clutter. I also made some very tiny tweaks to some code for clarity.

* Small cleanups for various editors. Play nice with built in test-runners (tableau#121)

* Add Py36, update travis to use pycodestyle (tableau#124)

* Add `initial sql` and `query band` support (tableau#123)

Addresses tableau#109 and tableau#110

* Prep for release of 0.6 (tableau#125)

* Prep for release of 0.6

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

No branches or pull requests

4 participants