[R] curl options?
Roy Mendelssohn - NOAA Federal
roy@mende|@@ohn @end|ng |rom no@@@gov
Thu Jul 23 23:56:08 CEST 2020
I am trying to get the following command to work:
> sshInfo <- rerddap::info('hawaii_soest_f75b_adc6_12ab', url = 'https://apdrc.soest.hawaii.edu/erddap/')
On a Mac at least (but I know for a fact not necessarily on other OSes) I get:
> Error in curl::curl_fetch_memory(x$url$url, handle = x$url$handle) :
> SSL certificate problem: certificate has expired
Parenthetically, this also happened with R itself awhile back where an intermediate cert on the search path had expired, not the cert of the service itself, and depending on which implementation of ssl was used, it either ignored it or threw an error, as in this case. Someone I am working with on another OS can indeed run the same command, so if your particular OS may not have an issue
Anyhow, for a problem a I am working on I need to access this server with that and related commands. 'rerddap::info()' allows me to pass curl options, and normally with Curl you can get around the expired certificate using the '-k' or '--insecure' option. When I look at:
I do not see this option. I do not understand all the options listed there, so maybe that option is in a different form that I am missing. Or is there another way around this still using 'curl' . Using another function that does similar to 'curl' is not an option, because I need the 'rerddap::info()' call which calls a package called "crul" which ultimately calls 'curl'.
PS - And yes I informed the owner of the site about the expired certificate, that was a couple of weeks ago.
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
Supervisory Operations Research Analyst
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Fax: (831) 420-3980
e-mail: Roy.Mendelssohn using noaa.gov www: https://www.pfeg.noaa.gov/
"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
More information about the R-help