Connecting SSL with problematic self-built Gitlab server via Sourcetree

Source: Internet
Author: User
Tags git client sourcetree

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.