Skip to content

SSL error with custom CA certificates #1226

Open
@matthijscox-asml

Description

@matthijscox-asml

Unfortunately HTTP.jl doesn't work for me right now with custom CA certificates. I cannot query internal urls at my employer, nor do more complicated things.

julia> r = HTTP.request("GET", "https://internal_url.com")
ERROR: HTTP.ConnectError for url = `https://internal_url.com`: OpenSSL.OpenSSLError("unable to get local issuer certificate")

I love and applaud pure Julia packages like HTTP.jl, but this issue does not occur with Downloads.jl:

using Downloads
r = Downloads.request("https://internal_url.com"; method="GET")
r.status

# outputs

200

It's rather ironic that Downloads.jl can do a bit more than downloading, including HTTP PUT commands. That's why it took me a while to find Downloads.jl as solution. Maybe it's good to mention somewhere in the docs that Downloads.jl can be used as alternative to HTTP.jl? I realized even that Pkg.jl also uses Downloads.jl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions