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

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

  •  
  •   frozenway · 240 天前 · 1372 次点击
    这是一个创建于 240 天前的主题,其中的信息可能已经有所发展或是发生改变。

    错误代码是

    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)>
    

    应该怎么解决?

    1 回复  |  直到 2019-04-12 15:38:32 +08:00
        1
    frozenway   240 天前
    有人吗?是因为 python 版本太高还是太低吗?
    关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   981 人在线   最高记录 5043   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.3 · 21ms · UTC 18:25 · PVG 02:25 · LAX 10:25 · JFK 13:25
    ♥ Do have faith in what you're doing.