Skip to content
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

user cancelled certificate check #1546

Closed
nk111 opened this issue Mar 13, 2018 · 4 comments
Closed

user cancelled certificate check #1546

nk111 opened this issue Mar 13, 2018 · 4 comments

Comments

@nk111
Copy link

nk111 commented Mar 13, 2018

I'm using the github for visual studio extension in VS2017. When i try to create a new pull request i always get the error message "user cancelled certificate check".

This is the log:
2018-03-13 17:35:10.332 INFO [56] GitHubPackage Initializing GitHub Extension v2.4.3.1737 in Microsoft Visual Studio 2017 (15.6.27428.2002)
2018-03-13 17:35:32.470 EROR [12] PullRequestCreationViewModel Error creating pull request
LibGit2Sharp.LibGit2SharpException: user cancelled certificate check:
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
at LibGit2Sharp.Core.Proxy.git_remote_push(RemoteHandle remote, IEnumerable1 refSpecs, GitPushOptions opts) at LibGit2Sharp.Network.Push(Remote remote, IEnumerable1 pushRefSpecs, PushOptions pushOptions)
at LibGit2Sharp.Network.Push(Remote remote, String pushRefSpec, PushOptions pushOptions)
at LibGit2Sharp.Network.Push(Remote remote, String objectish, String destinationSpec, PushOptions pushOptions)
at GitHub.Services.GitClient.<>c__DisplayClass7_0.b__0() in C:\projects\visualstudio\src\GitHub.App\Services\GitClient.cs:line 64
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at GitHub.Services.PullRequestService.d__42.MoveNext() in C:\projects\visualstudio\src\GitHub.App\Services\PullRequestService.cs:line 659

Any ideas how to fix this?

@ethomson
Copy link
Member

You'd need to add a certificate validation callback to your code. But if you're using the GitHub for Visual Studio 2017, then you need to open an issue in that project.

@nk111
Copy link
Author

nk111 commented Mar 13, 2018

Thanks for the heads up @ethomson

@ethomson
Copy link
Member

No problem. Mention me on the issue if you’d like and I can give some input.

@rotemwolfovich
Copy link

Hi ,
my app was using the ibgit2sharp 0.22 version and i was able to push and clone even when i was working under a proxy server .
now i want to use the libgit2sharp-ssh version but i am getting this exception ?
is libgit2sharp-ssh not support proxy ? or this connect to something else ?

thank you !

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

3 participants