libgit2 / libgit2/libgit2sharp
LibGit2Sharp.LibGit2SharpException: could not set credentials: could not open libssl
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
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)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Azure DevOps clone on the stated .NET 8 Ubuntu 22.04 image with libssl3. Read the failing paths in Ensure.cs, Proxy.cs, and Repository.cs, then trace where credentials and the native SSL dependency are loaded. Done means the supplied CloneOptions can complete the clone without the libssl error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git, linux, ubuntu
- Domain
- devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100