8000 SSL error on clone when running in .NET core 3.0 on Alpine Linux · Issue #1731 · libgit2/libgit2sharp · GitHub
[go: up one dir, main page]

Skip to content

SSL error on clone when running in .NET core 3.0 on Alpine Linux #1731

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
liiri opened this issue Oct 22, 2019 · 1 comment
Closed

SSL error on clone when running in .NET core 3.0 on Alpine Linux #1731

liiri opened this issue Oct 22, 2019 · 1 comment

Comments

@liiri
Copy link
liiri commented Oct 22, 2019

I'm running the following code:

var cloneOptions = new CloneOptions
{
    CredentialsProvider = ...,
    CertificateCheck = (certificate, valid, host) => true;
}
LibGit2Sharp.Repository.Clone(
    "url",
    "targetPath",
    cloneOptions
);

Using LibGit2Sharp 0.27.0.0 with git2-7ce88e6.dll

img

Whereas my git server is hosted on a remote server and I access it via IP address on https. I would like to trust the certificate.

The code works fine for when I'm running in my dev environment (OSX), but fails in my runtime, which is run on mcr.microsoft.com/dotnet/core/aspnet:3.0-alpine docker image.

Error trace:

LibGit2Sharp.LibGit2SharpException: SSL error: received early EOF
   at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
   at LibGit2Sharp.Core.Ensure.ZeroResult(Int32 result)
   at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts)
   at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options)

I'm guessing this is OS-specific in some manner. Any advice?

It might be the same issue as #1262

@liiri
Copy link
Author
liiri commented Oct 22, 2019

After digging around this seems to actually be relevant only to the native implementation. Opened an issue there: libgit2/libgit2#5279

@liiri liiri closed this as completed Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0