libgit2sharp icon indicating copy to clipboard operation
libgit2sharp copied to clipboard

LibGit2Sharp.LibGit2SharpException: could not set credentials: could not open libssl

Open piteerus opened this issue 7 months ago • 0 comments

You are opening a bug report against the LibGit2Sharp project: we use GitHub Issues for tracking bug reports and feature requests. If you have a question about an API or usage, please ask on StackOverflow: http://stackoverflow.com/questions/tagged/libgit2sharp.

Otherwise, to report a bug, please fill out the reproduction steps (below) and delete these introductory paragraphs. Thanks!

Reproduction steps

Just to try clone a repository form Azure DevOps.

var options = new CloneOptions
{
    FetchOptions = {
        CredentialsProvider = CredentialsProvider,
        OnTransferProgress = OnTransferProgress
    },
    OnCheckoutProgress = OnCheckoutProgress
};
Repository.Clone(remoteUrl, local.FullName, options);

Expected behavior

Actual behavior

Error thrown

LibGit2Sharp.LibGit2SharpException: could not set credentials: could not open libssl
   at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 154
   at LibGit2Sharp.Core.Ensure.ZeroResult(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 172
   at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts) in /_/LibGit2Sharp/Core/Proxy.cs:line 278
   at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options) in /_/LibGit2Sharp/Repository.cs:line 824

Version of LibGit2Sharp (release number or SHA1)

0.30

Operating system(s) tested; .NET runtime tested

dotnet 8.0 image (ubuntu 22.04 + libssl3)

piteerus avatar Jul 25 '24 11:07 piteerus