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

Ignore SSL Certificate #196

Closed
lgonzalezsa opened this issue Aug 30, 2018 · 1 comment
Closed

Ignore SSL Certificate #196

lgonzalezsa opened this issue Aug 30, 2018 · 1 comment

Comments

@lgonzalezsa
Copy link

Hello All,

Could be possible to define site connection but ignoring the SSL certificate?
I am using internal mediawiki and I would like to skip SSL certificate verification for testing purposes.

site = mwclient.Site(host='hpedia.osp.hpe.com', verify=False)

I am using mwclient-0.9.1 oauthlib-2.1.0 requests-oauthlib-1.0.0

@danmichaelo
Copy link
Member

danmichaelo commented Sep 2, 2018

It's possible to pass options like this to requests. Unfortunately, it's not so intuitive how to do it:

site = mwclient.Site(host='hpedia.osp.hpe.com', reqs={'verify': False})

Reminds me that this was brought up in #119 , will create a new issue so I don't forget again: #197

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

2 participants