Skip to main content

error setting certificate verify locations when run git clone



I run into this error while using git clone.

D:\Projects>git clone https://github.com/jonmountjoy/facebook-template-ruby
Cloning into 'facebook-template-ruby'...
fatal: unable to access 'https://github.com/jonmountjoy/facebook-template-ruby/': error setting certificate verify locations:
  CAfile: C:/Program Files (x86)/Git/mingw32/ssl/certs/ca-bundle.crt
  CApath: none

How to fix


Run DOS Prompt as Administrator, and run git config --system http.sslcainfo "Path to ca-bundle.crt"

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>git config --system http.sslcainfo "C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt"

C:\WINDOWS\system32>

Then, I can run git clone successfully.

D:\Projects>git clone https://github.com/jonmountjoy/facebook-template-ruby
Cloning into 'facebook-template-ruby'...
remote: Counting objects: 177, done.
remote: Total 177 (delta 0), reused 0 (delta 0), pack-reused 177
Receiving objects: 100% (177/177), 138.36 KiB | 101.00 KiB/s, done.
Resolving deltas: 100% (68/68), done.
Checking connectivity... done.

Popular posts from this blog

Windows 10: Install SuSE Linux Enterprise - SLES

With Microsoft-Windows-Subsystem-Linux feature enabled, we can install Linux distributions on Windows 10.

IBM i: DB2 for i

IBM DB2 for i DB2 for i is a member of IBM’s family of DB2 databases. What makes DB2 for i unique is its integration with the platform, the IBM i operating system and Power Systems. This unique integration means you do less managing of your database, and more building of applications for analytics, mobile, cloud, or day to day operational purposes. DB2 for i’s open standards support allows you to leverage the world of development tools while protecting your investment in legacy applications. Self managing is what DB2 for i is all about ! Let's ST a R t SQL  with STRSQL command. Query all databases SELECT DISTINCT table_schema FROM systables Query returns list of all databases

Microsoft Office 365: Compare all plans

Check Get the latest advanced features with Office 365 for the lastest update and price. Check Get Office 365 free for your entire school for Education plans.