{"action":"created","issue":{"url":"https://api.github.com/repos/snoyberg/http-client/issues/164","labels_url":"https://api.github.com/repos/snoyberg/http-client/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/snoyberg/http-client/issues/164/comments","events_url":"https://api.github.com/repos/snoyberg/http-client/issues/164/events","html_url":"https://github.com/snoyberg/http-client/issues/164","id":113122849,"number":164,"title":"http-client & http-client-tls: Simple way to add a CA certificate?","user":{"login":"MaxDaten","id":1087418,"avatar_url":"https://avatars.githubusercontent.com/u/1087418?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxDaten","html_url":"https://github.com/MaxDaten","followers_url":"https://api.github.com/users/MaxDaten/followers","following_url":"https://api.github.com/users/MaxDaten/following{/other_user}","gists_url":"https://api.github.com/users/MaxDaten/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxDaten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxDaten/subscriptions","organizations_url":"https://api.github.com/users/MaxDaten/orgs","repos_url":"https://api.github.com/users/MaxDaten/repos","events_url":"https://api.github.com/users/MaxDaten/events{/privacy}","received_events_url":"https://api.github.com/users/MaxDaten/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-24T00:42:08Z","updated_at":"2015-10-27T00:34:00Z","closed_at":"2015-10-27T00:34:00Z","body":"Hi,\r\n\r\nfirst of all, thanks for this set of libraries. I'm not sure if this is the correct repository or if I should post this request into the `tls` package. But the `tls` package seems to me to be more low level, but my request is a more a high level one.\r\n\r\nFor an API request, i need to add an custom created CA certificate to the request. With curl it's simple: `curl --cacert path/to/ca.cert https://example.com`. For the `http-client` I found [this](http://stackoverflow.com/questions/25833305/accepting-specific-certificate-with-http-client-tls-or-tls) on SO. But to be honest: this seems not very practical for me.\r\n\r\nI stared couple of minutes onto `ClientParams` (which is without a `Default` implementation intentionally?) and `ClientHook` but I'm still not sure how to add one certificate. Both constructors seem to be very near to the implementation, they are not really simple or high level. But maybe I missed a simple way? The ideal way would be an curl equivalent. I think, doing security right should be simple as possible.\r\n\r\nI'm looking forward to any advice, and willing to help. Thanks."},"comment":{"url":"https://api.github.com/repos/snoyberg/http-client/issues/comments/151324871","html_url":"https://github.com/snoyberg/http-client/issues/164#issuecomment-151324871","issue_url":"https://api.github.com/repos/snoyberg/http-client/issues/164","id":151324871,"user":{"login":"MaxDaten","id":1087418,"avatar_url":"https://avatars.githubusercontent.com/u/1087418?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxDaten","html_url":"https://github.com/MaxDaten","followers_url":"https://api.github.com/users/MaxDaten/followers","following_url":"https://api.github.com/users/MaxDaten/following{/other_user}","gists_url":"https://api.github.com/users/MaxDaten/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxDaten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxDaten/subscriptions","organizations_url":"https://api.github.com/users/MaxDaten/orgs","repos_url":"https://api.github.com/users/MaxDaten/repos","events_url":"https://api.github.com/users/MaxDaten/events{/privacy}","received_events_url":"https://api.github.com/users/MaxDaten/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T00:34:00Z","updated_at":"2015-10-27T00:34:00Z","body":"Okay thanks anyway. Yes, currently I disabled the CA check as an intermediate solution. Maybe I will figure it out how to do it correctly and can contribute a simple access to this or the `tls` package."}}