https - How to specify CAFile path inline with the GIT command? -


i'm trying clone repository on https , reason local config says take cafile tries use value global config.

local config:

[http]     sslcainfo = c:/../cacert-client.pem 

global config:

[http]     sslcainfo = /bin/curl-ca-bundle.crt 

when i'm executing clone command see instead of local value trying use global cafile value.

how specify http.sslcainfo inline git clone command?

c:/your/path/to/cacert-client.pem should work ,supposing '/../' in question stands your/path/to (otherwise c:/../xx points non-existent path).

if doesn't work, can try other syntax:

git config http.sslcainfo /c/your/path/to/cacert-client.pem 

you can set git_curl_verbose 1 , see more of git using.

getting path right (either git config, or environment variable git_ssl_cainfo) bettern alternative: git_ssl_no_verify=true or git config --global http.sslverify false.


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -