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

no content with SSL: CERTIFICATE_VERIFY_FAILED error #53

Open
nlamirault opened this issue Jul 10, 2015 · 3 comments
Open

no content with SSL: CERTIFICATE_VERIFY_FAILED error #53

nlamirault opened this issue Jul 10, 2015 · 3 comments

Comments

@nlamirault
Copy link

i try to list events.
If i've got an error of type CERTIFICATE_VERIFY_FAILED, the library failed :

File "/venv/lib/python2.7/site-packages/pyexchange/connection.py", line 67, in send
    log.debug(err.response.content)
AttributeError: 'NoneType' object has no attribute 'content'

It works with : log.debug(err)

pyexchange.exceptions.FailedExchangeException: Unable to connect to Exchange: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
@busilogic
Copy link

I'm having similar issue. Any resolution on this?

@mieubrisse
Copy link

Relevant: #38 and #42

The quick and dirty fix is to change line 64 of connection.py to be:

response = self.session.post(self.url, data=body, headers=headers, verify=False)

@joelbyrnes
Copy link

connection = ExchangeNTLMAuthConnection(url=URL,
                                        username=USERNAME,
                                        password=PASSWORD)
connection.session = connection.build_session()
connection.session.verify = "keychain.int.pem"

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

4 participants