-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
Anybody knows how to disable ssl verification on self-signed certificate? #627
Comments
You can't tell pygit2/libgit2 to ignore everything, but you can provide your own certificate validation function as a callback. If you set |
I did override a certificate_check in a subclass, here's what it looks like: class CustomRemoteCallbacks(RemoteCallbacks): def __init__(self, credentials=None, certificate=None): super(self.__class__, self).__init__(credendtials, certificate) def certificate_check(self, certificate, valid, host): return True The error shows there are too many redirects and exits! |
A "too many redirects" error is completely orthogonal to a certificate check. What exactly is saying there's too many redirects? What is the actual error that you get from the library? "too many redirects" can indicate that the server has a URL loop, or if you're on Windows, that your callback keeps providing wrong credentials. |
@jdavid it's probably a redirect loop. No need to keep this issue open. |
yes, closing, reporter didn't provide actual error when asked for |
I need to clone a repo from an internal git web server which holds a self-signed certificate. It fails on validating the certificate. How can I disable the validation step in pygit2? Thanks in advance!!!
The text was updated successfully, but these errors were encountered: