V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
frozenway
V2EX  ›  CentOS

各位大牛,在 centos7 中安装 letsencrypt 证书时遇到这个错误怎么解决?

  •  
  •   frozenway · 2019-04-12 15:31:58 +08:00 · 3323 次点击
    这是一个创建于 2051 天前的主题,其中的信息可能已经有所发展或是发生改变。

    错误代码是

    Replacing certbot-auto...
    Creating virtual environment...
    Installing Python packages...
    Traceback (most recent call last):
      File "/tmp/tmp.BZ7PbBwAvJ/pipstrap.py", line 177, in <module>
        sys.exit(main())
      File "/tmp/tmp.BZ7PbBwAvJ/pipstrap.py", line 158, in main
        for path, digest in PACKAGES]
      File "/tmp/tmp.BZ7PbBwAvJ/pipstrap.py", line 117, in hashed_download
        response = opener(using_https=parsed_url.scheme == 'https').open(url)
      File "/usr/lib64/python2.7/urllib2.py", line 437, in open
        response = meth(req, response)
      File "/usr/lib64/python2.7/urllib2.py", line 550, in http_response
        'http', request, response, code, msg, hdrs)
      File "/usr/lib64/python2.7/urllib2.py", line 469, in error
        result = self._call_chain(*args)
      File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
        result = func(*args)
      File "/usr/lib64/python2.7/urllib2.py", line 656, in http_error_302
        return self.parent.open(new, timeout=req.timeout)
      File "/usr/lib64/python2.7/urllib2.py", line 437, in open
        response = meth(req, response)
      File "/usr/lib64/python2.7/urllib2.py", line 550, in http_response
        'http', request, response, code, msg, hdrs)
      File "/usr/lib64/python2.7/urllib2.py", line 469, in error
        result = self._call_chain(*args)
      File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
        result = func(*args)
      File "/usr/lib64/python2.7/urllib2.py", line 656, in http_error_302
        return self.parent.open(new, timeout=req.timeout)
      File "/usr/lib64/python2.7/urllib2.py", line 431, in open
        response = self._open(req, data)
      File "/usr/lib64/python2.7/urllib2.py", line 449, in _open
        '_open', req)
      File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
        result = func(*args)
      File "/usr/lib64/python2.7/urllib2.py", line 1258, in https_open
        context=self._context, check_hostname=self._check_hostname)
      File "/usr/lib64/python2.7/urllib2.py", line 1214, in do_open
        raise URLError(err)
    urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618)>
    

    应该怎么解决?

    2 条回复    2020-01-26 17:50:12 +08:00
    frozenway
        1
    frozenway  
    OP
       2019-04-12 15:38:32 +08:00
    有人吗?是因为 python 版本太高还是太低吗?
    deasty
        2
    deasty  
       2020-01-26 17:50:12 +08:00
    @frozenway 这个问题你解决了吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5321 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 08:01 · PVG 16:01 · LAX 00:01 · JFK 03:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.