curl 不接受通过存储库提交的官方签名证书

curl 不接受通过存储库提交的官方签名证书

我的服务器上安装了签名证书。它与网络服务器配合良好。但如果我尝试将某些内容提交到存储库,则会收到以下错误消息:

   Warning: post-commit hook failed (exit code 60) with output:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
Current
                                 Dload  Upload   Total   Spent    Left
Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
    0curl: (60) SSL certificate problem: unable to get local issuer
certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

我更新了 curl,检查了权限和证书,也检查了路径,但没有发现错误。

有人知道我需要做什么才能解决这个问题吗?

(主机是 SMP Debian 3.2.65-1)

提前致谢

最真诚的

双手

答案1

您要么需要在 CLI 上向 curl 提供整个证书链,要么正确配置您的服务器以便它发送整个链。

相关内容