跳至主要内容

错误:SSL 证书问题,请确认 CA 证书是否正常

此错误表示您的 CA 根证书已过期。如果需要更新 CA 根证书,您将无法向 GitHub 仓库推送或拉取代码。

您可能会看到如下错误信息

$ git push -u github.main
> fatal: 'github.main' does not appear to be a git repository
> fatal: The remote end hung up unexpectedly

$ git pull -u github
> error: SSL certificate problem, verify that the CA cert is OK. Details:
> error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/tqisjim/google-oauth.git/info/refs
> fatal: HTTP request failed

“CA” 是 “certificate authority(证书颁发机构)” 的缩写,它是负责在网络上处理安全连接的第三方组织。他们颁发数字 “证书”,用于确保两台机器之间(例如您的计算机和 GitHub.com)存在有效的连接。没有证书,两台机器之间的安全风险会更高。

当您收到此错误时,通常意味着您的 CA 已过期,需要更新。一般来说,更新操作系统也会同步更新 CA,从而解决该问题。

© . This site is unofficial and not affiliated with GitHub, Inc.