I'm using Sourcetree as a git client, using it to connect a self-built git service with an HTTPS certificate expiration, you receive the following error:
Abort:error: _ssl.c:507:error:14090086:ssl routines:SSL3_GET_SERVER_CERTIFICATE:certificate Verify failed
Fatal:repository ' https://****/guohongjun/mytest/' not found
Error Validating server Certificate for ' https://****:443 ':
-The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually!
-The certificate hostname does not match.
-The certificate has expired.
Certificate Information:
-Hostname: * * * *
-Valid:from Thu, Sep 01:59:22 GMT until Fri, Sep 01:59:22 GMT
-issuer:http://certs.godaddy.com/repository/, GoDaddy.com, Inc., Scottsdale, Arizona, US
-fingerprint:a4:e0:66:ca:ba*******
(R) eject, accept (t) emporarily or accept (p) ermanently? Svn:E175002:Unable to connect to a repository at URL ' Https://******/guohongjun/mytest '
Svn:E175002:OPTIONS of ' https://*****/guohongjun/mytest ': Server certificate verification failed:certificate has Expir Ed, certificate issued for a different hostname, issuer was not trusted (https://*****)
This is because when Sourcetree creates a new warehouse, it checks for SSL when cloning from a URL, such as:
Is that you set the "Prohibit SSL check" in the settings.
solution, use the command line clone project, and then add the existing local repository by adding it.
Git Global Settings
git config--global user.name "Guo Hongjun" git config--global user.email [email protected]***. **
Create a warehouse and update to a remote server
mkdir mytest01cd mytest01git inittouch readmegit add readmegit commit-m ' first commit ' git remote add Origin http://*****/ Guohongjun/mytest01.gitgit Push-u Origin Master
Existing git Repo has local git Repo
CD existing_git_repogit Remote Add Origin Http://118.194.63.8/guohongjun/mytest01.gitgit Push-u Origin Master
Before making a remote server submission, you need to execute the following command to disable the SSL checksum
git config--global http.sslverify false
Prepare local library related
Submit to remote server
At this point, we can increase the number of new warehouses that are already in existence by using the warehouse.
Connecting SSL with problematic self-built Gitlab server via Sourcetree