SSL works with browser, wget, and curl, but fails with git

前端 未结 6 1712
北海茫月
北海茫月 2021-01-31 04:23

I have a website I am using to host redmine and several git repositories

This works perfectly for http, but I can\'t clone with https, i.e.

git clone htt         


        
6条回答
  •  生来不讨喜
    2021-01-31 05:22

    I encountered this error with one of my Comodo PositiveSSL certificates and was able to fix it by changing the order of the intermediate certificates.

    After ordering the certificate, I was provided with the following files:

    • Root CA Certificate - AddTrustExternalCARoot.crt
    • Intermediate CA Certificate - COMODORSAAddTrustCA.crt
    • Intermediate CA Certificate - COMODORSADomainValidationSecureServerCA.crt
    • PositiveSSL Wildcard Certificate - STAR_mydomain_com.crt

    Originally, the order of certificates in the .crt I was providing to Nginx was as follows:

    • PositiveSSL Wildcard Certificate - STAR_mydomain_com.crt
    • Intermediate CA Certificate - COMODORSAAddTrustCA.crt
    • Intermediate CA Certificate - COMODORSADomainValidationSecureServerCA.crt

    However, I reversed the order of the last two certificates and Git no longer throws verification errors.

提交回复
热议问题