使用 CmisClient 库连接到安全网站

connecting to secure website using CmisClient library

在我的项目中,我们尝试使用 CMIS 获取文件夹存储库,我使用 python 脚本对其进行测试;下面是我使用的一段代码

from cmislib.model import CmisClient
client = CmisClient('http://localhost/CMIS/Service/servicedoc', 's', 's')
repo = client.defaultRepository
info = repo.info
for k,v in info.items():
    print "%s:%s" % (k,v)

somefld = repo.getObject('idf_96_Z2CMIS')      
props = somefld.properties
for k,v in props.items():
    print "%s:%s" % (k,v)

这段代码工作得很好。但是现在该服务已启用 SSL,因此 (https//localhost/CMIS/Service/servicedoc) 当我在 CmisClient 中更改 URL 时,它会抛出以下错误

c:\Python27>python.exe cmis.py
CMIS client connection to https://localhost/Cmis/Service/servicedoc
Traceback (most recent call last):
  File "cmis.py", line 4, in <module>
    repo = client.defaultRepository
  File "c:\Python27\lib\site-packages\cmislib-0.5.1-py2.7.egg\cmislib\model.py",
 line 179, in getDefaultRepository
  File "c:\Python27\lib\site-packages\cmislib-0.5.1-py2.7.egg\cmislib\model.py",
 line 206, in get
  File "c:\Python27\lib\site-packages\cmislib-0.5.1-py2.7.egg\cmislib\net.py", l
ine 145, in get
  File "c:\Python27\lib\urllib2.py", line 404, in open
    response = self._open(req, data)
  File "c:\Python27\lib\urllib2.py", line 422, in _open
    '_open', req)
  File "c:\Python27\lib\urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "c:\Python27\lib\urllib2.py", line 1222, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "c:\Python27\lib\urllib2.py", line 1184, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 10054] An existing connection was forcibly closed by the remote host>

如何使用 CMISClient 库连接到启用 SSL 的网站。提前致谢。

我更改了我的 URL 以使用 <> 而不是本地主机 https://<>/Cmis/Service/servicedoc 并且它起作用了。