Article directory
1. Reproduce the error
When using git clone xxx.git
the project today, the following error message was reported:
i.e. SSL certificate problem: self signed certificate in certificate chain
error.
2. Analysis errors
It is catching up with the recent ChatGPT
popularity, and you can use it to analyze errors, as shown in the following figure:
This problem occurs when the SSL certificate presented by the server is not signed by a trusted certificate authority (CA). Instead, it is a self-signed certificate.
This can happen for a variety of reasons. For example, the website owner may have generated their own SSL certificate instead of purchasing one from a trusted CA. Alternatively, the CA that issued the certificate may not be recognized by the web browser being used to access the website.
When a self-signed certificate is encountered, the web browser will display a warning message to the user. The message will indicate that the certificate is not trusted and may be fraudulent. This can cause users to be wary of the website and may discourage them from continuing to use it.
To resolve this problem, website owners should obtain a valid SSL certificate from a trusted CA. This will ensure that users do not encounter any warning messages and can trust that their connection to the website is secure.
However, ChatGPT
the reply is in English, so you might as well translate it into Chinese, as follows:
This issue occurs when the server presents
SSL
a certificate that is not(CA)
signed . Instead, it's a self-signed certificate.
This can happen for a variety of reasons. For example, a website owner may have generated their own SSL certificate instead of purchasing one from a trusted CA.Web
Alternatively, the browser used to access the website may not recognize the certificate that was issuedCA
.
When encountering a self-signed certificate,Web
the browser will display a warning message to the user. The message will indicate that the certificate is not trusted and may be fraudulent. This may cause users to become wary of the website and may prevent them from continuing to use it. To resolve this issue, website owners should obtain valid certificates
from trusted . This will ensure that users do not encounter any warning messages and can trust that their connection to the website is secure.CA
SSL
ChatGPT
After so many replies, in a word, SSL
the authentication failed.
It says this happens for a number of reasons, as follows:
-
The website owner may have generated their own
SSL
certificate instead of purchasing one from a trusted providerCA
. -
Web
The browser used to access the website may not recognize the certificate that was issuedCA
.
However, I'm just gitlab
downloading the code from above and don't need to buy an ssl certificate.
It seems that ChatGPT
my error is not solved, only by my own analysis.
Since it says that ssl
the authentication failed, then SSL
just turn off the authentication.
So, how to turn off ssl
authentication?
3. Fix bugs
Open Git Bash
and run the following command
export GIT_SSL_NO_VERIFY=true
git config --global http.sslVerify "false"
Or, in windows
the command line of , enter git
the disk location where the command is located, and execute the following git
command:
git config --global http.sslVerify false