有人可以帮我解决这个问题吗?我已经使用zimbra preauth进行了身份验证,但是当尝试获取令牌时,出现以下错误。
我现在有这段代码
StylesProvider
我得到的是结果而不是令牌。
回溯(最近通话最近一次):
import pythonzimbra.communication from pythonzimbra.communication import Communication import pythonzimbra.tools from pythonzimbra.tools import auth url = ' https://zimbra server/service/soap ' comm = Communication(url) token = auth.authenticate( url, 'myuser@mydomain.com', 'preauthkey' )
在处理上述异常期间,发生了另一个异常:
File "C:\Users\EstDorisMaribelMarca\AppData\Local\Programs\Python\Python37\lib\urllib\request.py", line 1317, in do_open encode_chunked=req.has_header('Transfer-encoding')) File "C:\Users\EstDorisMaribelMarca\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1229, in request self._send_request(method, url, body, headers, encode_chunked) File "C:\Users\EstDorisMaribelMarca\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1275, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "C:\Users\EstDorisMaribelMarca\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1224, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\Users\EstDorisMaribelMarca\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1016, in _send_output self.send(msg) File "C:\Users\EstDorisMaribelMarca\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 956, in send self.connect() File "C:\Users\EstDorisMaribelMarca\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1392, in connect server_hostname=server_hostname) File "C:\Users\EstDorisMaribelMarca\AppData\Local\Programs\Python\Python37\lib\ssl.py", line 412, in wrap_socket session=session File "C:\Users\EstDorisMaribelMarca\AppData\Local\Programs\Python\Python37\lib\ssl.py", line 853, in _create self.do_handshake() File "C:\Users\EstDorisMaribelMarca\AppData\Local\Programs\Python\Python37\lib\ssl.py", line 1117, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)