我在連接到Microsoft Exchange. 最近開始了。問題是我不確定在哪里尋找解決方案。
問題是我正在嘗試連接,office.de但證書現在似乎不包含此域。
在哪里尋找解決方案/錯誤?:
- 我的電腦(Ubuntu 20.04)
- 蟒蛇請求
- 蟒蛇交換庫
- Microsoft 證書(臨時頒發)
追溯:
Traceback (most recent call last):
account = Account(
File "/home/milano/.virtualenvs/xx-xxx-xxxx/lib/python3.9/site-packages/exchangelib/account.py", line 126, in __init__
self.protocol = Protocol(config=config)
File "/home/milano/.virtualenvs/xx-xxx-xxxx/lib/python3.9/site-packages/exchangelib/protocol.py", line 405, in __call__
raise e
File "/home/milano/.virtualenvs/xx-xxx-xxxx/lib/python3.9/site-packages/exchangelib/protocol.py", line 400, in __call__
protocol = super().__call__(*args, **kwargs)
File "/home/milano/.virtualenvs/xx-xxx-xxxx/lib/python3.9/site-packages/exchangelib/protocol.py", line 434, in __init__
self.config.auth_type = self.get_auth_type()
File "/home/milano/.virtualenvs/xx-xxx-xxxx/lib/python3.9/site-packages/exchangelib/protocol.py", line 439, in get_auth_type
auth_type, api_version_hint = get_service_authtype(
File "/home/milano/.virtualenvs/xx-xxx-xxxx/lib/python3.9/site-packages/exchangelib/transport.py", line 155, in get_service_authtype
raise TransportError(str(e)) from e
exchangelib.errors.TransportError: HTTPSConnectionPool(host='outlook.office.de', port=443): Max retries exceeded with url: /EWS/Exchange.asmx (Caused by SSLError(SSLCertVerificationError("hostname 'outlook.office.de' doesn't match either of '*.internal.outlook.com', '*.outlook.com', 'outlook.com', 'office365.com', '*.office365.com', '*.outlook.office365.com', '*.office.com', 'outlook.office.com', 'substrate.office.com', 'attachment.outlook.live.net', 'attachment.outlook.office.net', 'attachment.outlook.officeppe.net', 'attachments.office.net', '*.clo.footprintdns.com', '*.nrb.footprintdns.com', 'ccs.login.microsoftonline.com', 'ccs-sdf.login.microsoftonline.com', 'substrate-sdf.office.com', 'attachments-sdf.office.net', '*.live.com', 'mail.services.live.com', 'hotmail.com', '*.hotmail.com'")))
uj5u.com熱心網友回復:
問題是我正在嘗試連接到 office.de 但證書現在似乎不包含此域。
這是對的。對瀏覽器的檢查將表明這不是 Python 的問題,而是站點以這種方式設定,即瀏覽器也會抱怨。
雖然官方記錄在Office 365 Germany 端點上使用,但該域似乎office.de未設定為與具有此域名的 HTTPS 一起使用。
由于outlook.office.de目前只是一個別名(DNS CNAME),outlook.office.com我的猜測是記錄的域不打算通過 HTTPS 直接訪問,而是僅記錄它們以獲得必要的 IP 范圍。在內部,MS Exchange 可能會改用office.com域,從而成功匹配證書。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/352198.html
上一篇:Self._printChanges()在哪里為SwiftUI定義和/或記錄?
下一篇:R中的西班牙日期
