I’m having trouble with a corporate MITM firewall and Julia-1.6.x, just with fetching https://pkg.julialang.org/registries
.
(testing) pkg> up
Updating registry at `~/.julia/registries/General`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_julia/julia/work/julia-1.6.1/usr/share/julia/stdlib/v1.6/Pkg/src/Types.jl:980
julia> import Downloads
julia> Downloads.download("https://pkg.julialang.org/registries", stdout)
ERROR: SSL: certificate verification failed (result: 5) while requesting https://pkg.julialang.org/registries
On my home network, there is no error. I found other discussions about this, but my issue seems to be different. I’m on a Mac (10.15.7), and I have several things installed via macports, including curl and openssl that are first in my path. I copied my corporate cert file corporate.pem
to /opt/local/etc/openssl/
and ran openssl rehash /opt/local/etc/openssl/
. After that, and using export SSL_CERT_DIR="/opt/local/etc/openssl/"
, I get instead:
julia> import NetworkOptions
julia> NetworkOptions.ca_roots_path()
"/opt/local/etc/openssl/"
julia> import Downloads
julia> Downloads.download("https://pkg.julialang.org/registries", stdout)
┌ Error: curl_easy_setopt: 4
└ @ Downloads.Curl /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_julia/julia/work/julia-1.6.1/usr/share/julia/stdlib/v1.6/Downloads/src/Curl/utils.jl:36
/registry/23338594-aafe-5451-b93e-139f81909106/4475704d0eb7b01b2ac0c1e3a3f08b98cb7ac8c8
Base.TTY(RawFD(14) open, 0 bytes waiting)
I am not able to make much of this error. But it looks like the registry was downloaded? Suggestions?