exchangelib

SSL: CERTIFICATE_VERIFY_FAILED when connecting to a company Exchange Server

自古美人都是妖i 提交于 2019-12-07 08:09:28
I try to send mails from out company exchange server via Python. My problem is, that I get a SSL error. I read a lot of pem-, cer-, crt-files, but I can not connect all these information to have success. I am sure, that if one can fix the issue in my little example script, one could fix the exchange script, too. I read a lot about certificates and ca_bundles, but I don't know how to apply all of that to my issue. Example-Script : import requests requests.get('https://mail.ourserver.loc') Error : C:\Python\python.exe "PATHtoMYproject/testing.py" Traceback (most recent call last): File "C: