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

Ignoring bad certificate does not work #135

Open
farao opened this issue Dec 14, 2018 · 0 comments
Open

Ignoring bad certificate does not work #135

farao opened this issue Dec 14, 2018 · 0 comments

Comments

@farao
Copy link

farao commented Dec 14, 2018

For testing purposes, I need to ignore a self-signed certificate. I have tried getWith using the TLSSimpleSettings as shown here: https://gist.github.com/j-keck/4f025ea39d6da259c1dc - but I'm still getting the certificate error:

(InternalException (HandshakeFailed (Error_Protocol ("certificate has unknown CA",True,UnknownCa))))

Simplified example code:

let opts = defaults & manager .~ Left (mkManagerSettings (TLSSettingsSimple True False False) Nothing)
r <- getWith opts url
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