From 8d6f7bde2fb866dedc27cc1baa2be6171a42834a Mon Sep 17 00:00:00 2001 From: nefrathenrici Date: Thu, 5 Jun 2025 10:08:29 -0700 Subject: [PATCH] Bypass certificate verification in downloader --- src/DataWrangling/DataWrangling.jl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/DataWrangling/DataWrangling.jl b/src/DataWrangling/DataWrangling.jl index 70b20646..4c641501 100644 --- a/src/DataWrangling/DataWrangling.jl +++ b/src/DataWrangling/DataWrangling.jl @@ -84,8 +84,11 @@ end function netrc_downloader(username, password, machine, dir) netrc_file = netrc_permission_file(username, password, machine, dir) downloader = Downloads.Downloader() - easy_hook = (easy, _) -> Downloads.Curl.setopt(easy, Downloads.Curl.CURLOPT_NETRC_FILE, netrc_file) - + easy_hook = (easy, _) -> begin + Downloads.Curl.setopt(easy, Downloads.Curl.CURLOPT_NETRC_FILE, netrc_file) + # Bypass certificate verification because ecco.jpl.nasa.gov is using an untrusted CA certificate + Downloads.Curl.setopt(easy, Downloads.Curl.CURLOPT_SSL_VERIFYPEER, false) + end downloader.easy_hook = easy_hook return downloader end