How to solve various SSL certificate problem problems when running Git commands

Source: Internet
Author: User
Tags ssl certificate self signed certificate

How to solve various SSL certificate problem problems when running Git commands

For example, if I use git clone gitURL in Windows

The SSL certificate problem: self signed certificate prompt is displayed.

This problem occurs frequently in windows. I guess git is mainly developed based on linux. On windows, it is easy to missing some environments.

According to some articles, the solution is "no matter what the ssl certificate is."-_-|

The method is as follows:

1. create temporary environment variables:

On Windows, enter the following command line:

Set GIT_SSL_NO_VERIFY = true git clone

In Linux:

Env GIT_SSL_NO_VERIFY = true git push here clon can be replaced with other git commands as needed.

You can also change the temporary environment variable to permanent. It is no risk to never verify the ssl certificate.

2. Use the configuration command that comes with git:

Git config -- global http. sslVerify false

Solve the problem.

GitHub Tutorials:

Create a personal technical blog via GitHub

GitHub tutorials

Git tag management details

Git branch management

Git remote repository details

Git local Repository (Repository) Details

Git server setup and Client installation

Git Overview

Share practical GitHub tutorials

GitHub details: click here
GitHub: click here

This article permanently updates the link address:

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.