Skip to content

git not working after setting http.sslBackend = schannel #1899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
tianpomin opened this issue Oct 26, 2018 · 2 comments
Closed
1 task done

git not working after setting http.sslBackend = schannel #1899

tianpomin opened this issue Oct 26, 2018 · 2 comments

Comments

@tianpomin
Copy link

tianpomin commented Oct 26, 2018

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.19.1.windows.1
cpu: x86_64
built from commit: 11a3092e18f2201acd53e45aaa006f1601b6c02a
sizeof-long: 4
sizeof-size_t: 8
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.17134.345]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: SublimeText
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: WinSSL
CRLF Option: LFOnly
Bash Terminal Option: ConHost
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled
Enable Builtin Rebase: Disabled
Enable Builtin Stash: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

we have own .crt file and private repo.packagist

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

bash

composer global require "xxx/installer" -vvv
  • What did you expect to occur after running these commands?

working

  • What actually happened instead?

[Composer\Downloader\TransportException]
The "https://xxx/repository/composer-public/packages.json" file could not be downloaded: SSL operatio
n failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

something maybe help:

  1. i choose native Windows Secure Channel Library as Https transport backend
  2. the company CA file, xxx.crt can work normally in chrome, it seems like git windows can not get the windows certificate store
@dscho
Copy link
Member

dscho commented Oct 31, 2018

When you write composer, I get the impression that you are talking about PHP, not about Git for Windows. Where does Git come into play here?

@dscho
Copy link
Member

dscho commented Nov 22, 2018

Closing for lack of an answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants