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

Ansible 出现"Failed to validate the SSL certificate"

  •  
  •   JasonLaw · 2022-10-17 12:15:13 +08:00 · 687 次点击
    这是一个创建于 528 天前的主题,其中的信息可能已经有所发展或是发生改变。

    不是特别了解 Ansible ,运行 Ansible get_url module 时出现错误,请问怎么解决?

    fatal: [xxx]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to validate the SSL certificate for xxx:443. Make sure your managed systems have a valid CA certificate installed. If the website serving the url uses SNI you need python >= 2.7.9 on your managed machine or you can install the `urllib3`, `pyopenssl`, `ndg-httpsclient`, and `pyasn1` python modules to perform SNI verification in python >= 2.6. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible"}
    
    第 1 条附言  ·  2022-10-27 12:27:13 +08:00
    julyclyde
        1
    julyclyde  
       2022-10-17 15:00:43 +08:00
    你 get 的网址上的证书是正经证书吗?
    如果是的话,需要更新被控节点上的 ca
    mmm159357456
        2
    mmm159357456  
       2022-10-17 16:01:19 +08:00
    JasonLaw
        3
    JasonLaw  
    OP
       2022-10-17 21:40:47 +08:00
    julyclyde
        4
    julyclyde  
       2022-10-18 08:52:26 +08:00
    @JasonLaw 你手头管理的这些已经版本太旧了,建议整体升级
    不仅仅是 ansible 、python 的问题
    JasonLaw
        5
    JasonLaw  
    OP
       2022-10-18 08:58:38 +08:00
    @julyclyde #4 不是我想升级就升级的😅。公司要求的是稳定性,不会让这么干的,没办法,行业决定了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1190 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:15 · PVG 02:15 · LAX 11:15 · JFK 14:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.