首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Python连接到JIRA API时,SSL3证书验证失败

使用Python连接到JIRA API时,SSL3证书验证失败
EN

Stack Overflow用户
提问于 2014-05-31 03:18:51
回答 2查看 22.3K关注 0票数 12

当我尝试使用Python2.7和JIRA REST API (http://jira-python.readthedocs.org/en/latest/)连接到JIRA时,我目前遇到了一个错误。

当我执行以下命令时:

代码语言:javascript
复制
from jira.client import JIRA

options = {
    'server': 'https://jira.companyname.com'
}
jira = JIRA(options)

我在控制台看到以下错误信息:

代码语言:javascript
复制
requests.exceptions.SSLError: [Errno 1] _ssl.c:507: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

是否有我可能遗漏或操作不正确的地方?

谢谢!

EN

回答 2

Stack Overflow用户

发布于 2014-06-18 01:37:42

我遇到了一个类似的SSL证书验证错误,在查看"JIRA“方法定义时,可能会关闭验证。

代码语言:javascript
复制
    :param options: Specify the server and properties this client will use. Use a dict with any
     of the following properties:
      * server -- the server address and context path to use. Defaults to ``http://localhost:2990/jira``.
      * rest_path -- the root REST path to use. Defaults to ``api``, where the JIRA REST resources live.
      * rest_api_version -- the version of the REST resources under rest_path to use. Defaults to ``2``.
      * verify -- Verify SSL certs. Defaults to ``True``.
      * resilient -- If it should just retry recoverable errors. Defaults to `False`.

试试这个:

代码语言:javascript
复制
from jira.client import JIRA

options = {'server': 'https://jira.companyname.com','verify':False}
jira = JIRA(options)
票数 14
EN

Stack Overflow用户

发布于 2021-06-03 14:10:24

只需安装python-certifi-win32模块,这应该可以帮助您克服这些错误,而不会有任何麻烦

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23961956

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档