Issue/Error
When attempting to publish Shiny applications to shinyapps.io from RStudio on macOS, users may encounter the following SSL certificate error:
Error in curl::curl_fetch_memory(url, handle = handle) : SSL connect error [api.shinyapps.io]: TLS connect error: error:0BFFF065:x509 certificate routines:CRYPTO_internal:cert already in hash table
Description
This error occurs specifically on macOS systems due to differences in how macOS handles SSL certificate validation compared to other operating systems. The issue appears to be related to recent updates in the `curl` package for R and how it interacts with macOS's certificate management.
You can follow the ongoing investigation and updates here: GitHub Issue #1175.
Solution
There are two possible workarounds for this issue:
Option 1: Disable SSL Certificate Checking
- Open RStudio
- Go to Tools Global Options Publishing
- Uncheck "Check SSL certificates when publishing"
- Click Apply
Option 2: Downgrade the curl Package
If you prefer to keep SSL certificate checking enabled, you can downgrade the curl package to version 6.2.3 using one of these commands:
install.packages("http://cran.r-project.org/src/contrib/Archive/curl/curl_6.2.3.tar.gz", repos=NULL, type="source")
Or alternatively:
remotes::install_version('curl', version = '6.2.3')
If you're still having issues, you can reach out to Support by opening a ticket here.
Comments
0 comments
Article is closed for comments.