This error occurred when we were about to push to the remote repository after we had written the code

The solution

Locate the.gitconfig file and add sslVerify = false to the HTTP TAB, or enter it from the command line in your git project directory

git config http.sslVerify false

Note: The above method is for a single project, if you want to turn off SSL validation for all libraries, use the following sentence

git config –global http.sslVerify false