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

InsecureVerifySkip Flag does not work with this #7

Open
mathewusher opened this issue Dec 4, 2016 · 2 comments
Open

InsecureVerifySkip Flag does not work with this #7

mathewusher opened this issue Dec 4, 2016 · 2 comments
Assignees
Labels

Comments

@mathewusher
Copy link

When running the crypto/tls package and setting the InsecureVerifySkip to true
I still get the error
x509: certificate signed by unknown authority golang

@jochasinga jochasinga added the bug label Dec 5, 2016
@jochasinga jochasinga self-assigned this Dec 5, 2016
@jochasinga
Copy link
Owner

@mathewusher thanks for letting me know. I'll look into it asap.

@jochasinga
Copy link
Owner

@mathewusher sorry for being away for a while. Did you create a &tls.Config pointer or just the tls.Config struct? I tested the code with:

        tlsConfig := func(r *requests.Request) {
                r.TLSClientConfig = &tls.Config{
                        InsecureSkipVerify: true,
                }
        }

       res, err := requests.Get("https://requestb.in/opfq41op", tlsConfig)

And I received 200 from my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants