Handling git ssl certificate in RedHat Linux

Source: Internet
Author: User

Handling git ssl certificate in RedHat Linux

Handling git ssl certificate in RedHat Linux

Problem:
error: SSL certificate problem, verify that the CA cert is OK. Details:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/.../***.git/info/refs?service=git-upload-packfatal: HTTP request failed
Solution (download new ca certificate ):
curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt

Reference: http://serverfault.com/questions/394815/how-to-update-curl-ca-bundle-on-redhat

Curl is using the system-default CA bundle is stored in/etc/pki/tls/certs/ca-bundle.crt. before you change it, make a copy of that file so that you can restore the system default if you need. you can simply append new CA certificates to that file, or you can replace the entire bundle.

Are you also wondering where to get the certificates? I (and others) recommend curl. haxx. se/ca. In one line:

curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt Alternately, you can follow instructions in this article: https://gist.github.com/996292 to request the certs over https.

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.