{verify, verify_peer} warning or error

pablo platt <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CANdLC8U3GHiUVb4c45tv9o5ctkqc5GWnB1A26xPdxza+AUaLpA@mail.gmail.com>
Hi,

When I'm sending a request to content.googleapis.com without the verify ssl
option I'm getting a warning:
Url = "https://content.googleapis.com/youtube/v3/videos",
httpc:request(get,
    {Url, []},
    [],
    []).

Description: "Authenticity is not established by certificate path
validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is
missing"

When I'm adding the verify_peer option I'm getting an error:
Url = "https://content.googleapis.com/youtube/v3/videos",
httpc:request(get,
    {Url, []},
    [{ssl, [{verify, verify_peer}]}],
    []).

{error,{failed_connect,[{to_address,{"content.googleapis.com",
                                     443}},
                        {inet,[inet],{options,{cacertfile,[]}}}]}}

What is the correct way to send the request?

Thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.