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

x509: certificate signed by unknown authority #50

Open
juacompe opened this issue Feb 16, 2018 · 0 comments
Open

x509: certificate signed by unknown authority #50

juacompe opened this issue Feb 16, 2018 · 0 comments

Comments

@juacompe
Copy link

When I'm running silk against certificate signed by untrusted root, I got the following error.

> silk -silk.url="https://untrusted-root.badssl.com/" ./**/*.silk.md
silk: running 1 file(s)...
x509: certificate signed by unknown authority
--- FAIL: silk (0.67s)
FAIL

I tried to find a way to skip certification checking in help but couldn't find it. (like option -k in curl)

 -k, --insecure      Allow connections to SSL sites without certs (H)

I think the error was caused by http.DefaultTransport used in Runner.DoRequest. It seems to me that DefaultTransport does not allow a connection to insecure SSL sites.

DoRequest: http.DefaultTransport.RoundTrip,

I found a way to skip it here https://groups.google.com/d/msg/golang-nuts/v5ShM8R7Tdc/I2wyTy1o118J

I'm thinking of adding another option in silk to allow connections to SSL sites without certs. Any idea what the option should be? Is -k ok?

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

1 participant