Skip to content

Commit b3cf23d

Browse files
Bypass certificate verification in downloader (#557)
1 parent 42bc765 commit b3cf23d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/DataWrangling/DataWrangling.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,11 @@ end
8484
function netrc_downloader(username, password, machine, dir)
8585
netrc_file = netrc_permission_file(username, password, machine, dir)
8686
downloader = Downloads.Downloader()
87-
easy_hook = (easy, _) -> Downloads.Curl.setopt(easy, Downloads.Curl.CURLOPT_NETRC_FILE, netrc_file)
88-
87+
easy_hook = (easy, _) -> begin
88+
Downloads.Curl.setopt(easy, Downloads.Curl.CURLOPT_NETRC_FILE, netrc_file)
89+
# Bypass certificate verification because ecco.jpl.nasa.gov is using an untrusted CA certificate
90+
Downloads.Curl.setopt(easy, Downloads.Curl.CURLOPT_SSL_VERIFYPEER, false)
91+
end
8992
downloader.easy_hook = easy_hook
9093
return downloader
9194
end

0 commit comments

Comments
 (0)