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
Ignore SSL Verification #140
Comments
A quick work-around would be to override the default package main
import (
"net/http"
"crypto/tls"
"github.com/go-git/go-git/v5/plumbing/transport/client"
httptransport "github.com/go-git/go-git/v5/plumbing/transport/http"
)
func init(){
var transport = httptransport.NewClient(&http.Client{
transport: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
})
client.InstallProtocol("https", transport)
} But be careful! disabling security checks is dangerous and should be avoided .. you can read about alternate ways on this stack overflow post |
Hey guys, I put a PR #228 to add support for this. Can anyone take a look at it? |
@StrongMonkey i will give a try this week |
How can we turn off SSL Verify with CloneOptions?
Here is how we do it with git
The text was updated successfully, but these errors were encountered: