<html><head></head><body>This should help you get going making HTTPS requests using httpc:<div><a href="https://erlef.github.io/security-wg/secure_coding_and_deployment_hardening/ssl"><caret></caret>https://erlef.github.io/security-wg/secure_coding_and_deployment_hardening/ssl</a><br><div id="protonmail_mobile_signature_block"><br></div> <div><br></div><div><br></div>On Fri, Sep 10, 2021 at 17:17, pablo platt <<a href="mailto:pablo.platt@gmail.com" class="">pablo.platt@gmail.com</a>> wrote:<blockquote class="protonmail_quote" type="cite"> <div dir="ltr"><div>Hi,</div><div><br></div><div>When I'm sending a request to <a href="http://content.googleapis.com">content.googleapis.com</a> without the verify ssl option I'm getting a warning:<br></div><div>Url = "<a href="https://content.googleapis.com/youtube/v3/videos">https://content.googleapis.com/youtube/v3/videos</a>",<br>httpc:request(get,<br> {Url, []},<br> [],<br> []).</div><div><br></div><div>Description: "Authenticity is not established by certificate path validation"<br> Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"</div><div><br></div><div>When I'm adding the verify_peer option I'm getting an error:<br></div><div>Url = "<a href="https://content.googleapis.com/youtube/v3/videos">https://content.googleapis.com/youtube/v3/videos</a>",<br>httpc:request(get,<br> {Url, []},<br> [{ssl, [{verify, verify_peer}]}],<br> []).</div><div><br></div><div>{error,{failed_connect,[{to_address,{"<a href="http://content.googleapis.com">content.googleapis.com</a>",<br> 443}},<br> {inet,[inet],{options,{cacertfile,[]}}}]}}</div><div><br></div><div>What is the correct way to send the request?</div><div><br></div><div>Thanks<br></div></div>
</blockquote><div><br></div><div><br></div></div></body></html>