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

Add option to emulate curl -k behavior #68

Closed
japesinator opened this issue Jun 16, 2015 · 3 comments
Closed

Add option to emulate curl -k behavior #68

japesinator opened this issue Jun 16, 2015 · 3 comments

Comments

@japesinator
Copy link

I could not find in the documentation a way of simply ignoring bad certificates, but I would like to do so

@abailly
Copy link

abailly commented Dec 10, 2015

Here is what I do:

ignoreTLSCertificatesSettings :: Bool -> ManagerSettings
ignoreTLSCertificatesSettings cadisable = mkManagerSettings (TLSSettingsSimple cadisable False False) Nothing

withTlsSettings :: Options -> Bool -> Options
withTlsSettings opts cadisable = opts & manager .~ Left (ignoreTLSCertificatesSettings cadisable)

@bos
Copy link
Collaborator

bos commented Dec 22, 2015

Thanks, @abailly. For obvious reasons I don't want to document this :-)

@bos bos closed this as completed Dec 22, 2015
@abailly
Copy link

abailly commented Dec 22, 2015

I found it useful for automated testing purpose without going through the hassle of setting up a whole closed circuit CA stack :-)

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

3 participants