美文网首页
linux 导入自签CA证书

linux 导入自签CA证书

作者: 0neBean | 来源:发表于2019-11-10 23:13 被阅读0次

    方法大致有二

    • 手动导入ca-bundle.crt

    cat ca.crt >> /etc/pki/tls/certs/ca-bundle.crt
    

    如果是其他Linux发行版,该文件的位置可能是下面这些,视情况而定:

    /etc/ssl/certs/ca-certificates.crt
    /etc/ssl/ca-bundle.pem
    /etc/ssl/cert.pem
    /usr/local/share/certs/ca-root-nss.crt
    

    • 通过 ca-certificates

     yum install -y ca-certificates
    sudo cp ca.crt /usr/local/share/ca-certificates/kubernetes.crt
    sudo update-ca-certificates
    
    
    # Updating certificates in /etc/ssl/certs...
    # 1 added, 0 removed; done.
    # Running hooks in /etc/ca-certificates/update.d....
    # done.
    

    相关文章

      网友评论

          本文标题:linux 导入自签CA证书

          本文链接:https://www.haomeiwen.com/subject/htrzbctx.html