Php SSL证书问题:推送到远程存储库时无法获取本地颁发者证书

Php SSL证书问题:推送到远程存储库时无法获取本地颁发者证书,php,git,Php,Git,我想将本地存储库推送到远程存储库,但我在GIT中遇到了这个错误 $ git push origin master fatal: unable to access 'https://git.kgmedia.id/es/portal/home.git/': SSL certificate problem: unable to get local issuer certificate 我不知道它出了什么问题,上次我推到远程存储库时,它没有出现您可以使用它作为解决方法: git config --g

我想将本地存储库推送到远程存储库,但我在GIT中遇到了这个错误

$ git push origin master
fatal: unable to access 'https://git.kgmedia.id/es/portal/home.git/': SSL 
certificate problem: unable to get local issuer certificate

我不知道它出了什么问题,上次我推到远程存储库时,它没有出现

您可以使用它作为解决方法:

git config --global http.sslVerify false

请不要禁用SSL验证。这使整个事情变得毫无意义。这不应该是一个解决方案,即使它能工作。我知道这样做不好,我现在只是提供了一个解决方案,我正在寻找一个实际的解决方案。你在Windows上吗?是的,我在使用Widows。你可能做的是,你安装了git和linux crypto后端。看。如果以下命令解决了问题:
git config--global http.sslbackend schannel
我建议重新安装git,并确保在安装过程中选择Windows本机加密层。