Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL certificate problem on MacOS #500

Closed
AngusMcLure opened this issue Dec 22, 2021 · 4 comments
Closed

SSL certificate problem on MacOS #500

AngusMcLure opened this issue Dec 22, 2021 · 4 comments

Comments

@AngusMcLure
Copy link

I see on Twitter that there were some SSL issues on mac that were resolved in October, however I am still having SSL problems. Whenever I try to work with rhub (e.g. either directly using rhub::check_for_cran via devtools::chech_rhub) I get this error:

Error in curl::curl_fetch_memory(url, handle = handle) : 
  SSL certificate problem: certificate has expired

I am also getting the same error with other web-based functions like rhub::validate_email

I have tried reinstalling rhub and its dependancies, but no luck.

macOS version: 10.14.6 (18G103)
R version: 4.1.2
R Studio version: 1.4.1717

@gaborcsardi
Copy link
Collaborator

This is a bug in macOS, so updating the R packages will have no effect.

This is a bug in the libressl that comes with mojave and apple did not fix it. You can fix it manually. You need to edit /etc/ssl/cert.pem (make a backup copy first), and remove the cert that expired on Sep 30 14:01:15 2021 GMT. Its entry starts with

## Digital Signature Trust Co.

until the end of the cert, the first

-----END CERTIFICATE-----

line. You can test it with something like

curl -v https://builder.r-hub.io >/dev/null

from a shell. This should fail before, and not fail after your edit.

Depending on which browser you use, you might need to update that as well, at least I had to update chrome.

Or you can update to Catalina or Big Sur.

@AngusMcLure
Copy link
Author

AngusMcLure commented Jan 18, 2022

Great, thank you Gábor. Editing /etc/ssl/cert.pem has fixed the issue!

@shntnu
Copy link

shntnu commented Mar 20, 2023

@gaborcsardi I believe the certificate might have actually expired for real just now.

@gaborcsardi
Copy link
Collaborator

Sorry about that, should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants