[R] curl options?
Rasmus Liland
jr@| @end|ng |rom po@teo@no
Fri Jul 24 01:20:38 CEST 2020
On 2020-07-23 14:56 -0700, Roy Mendelssohn - NOAA Federal via R-help wrote:
> 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
I can download the dataset without
problems on my Linux thinkpad. Perhaps
you can provide some more info (but I do
not know what ...) so I/others can
reproduce this strange error ...
Have you checked the time on the laptop
being correct and not set to e.g.
1970-01-01 01:29? In the past, I have
found ssl errors are caused by the time
being off on my laptop, as in the case
of a flat cmos battery.
> 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:
>
> > curl::curl_options()
>
> 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'.
>
> Thanks,
>
> -Roy
>
> PS - And yes I informed the owner of
> the site about the expired
> certificate, that was a couple of
> weeks ago.
Perhaps setting
options("ssl_verifyhost"=0, "ssl_verifypeer"=0)
helps? [1]
Best,
Rasmus
[1] https://stackoverflow.com/questions/47715918/how-to-pass-the-curl-insecure-alternative-when-using-r
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20200724/8ea5291b/attachment.sig>
More information about the R-help
mailing list