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