I have previously installed the package below on a RStudio WorkBench (RedHat 7) server, but recently migrated to a RedHat 8 and the installation throws the error below showing a SSL certificate issue. How can I solve this error?

devtools::install_github("AscentiumCapital/Ascentium")
Error: Failed to install 'unknown package' from GitHub:
SSL certificate problem: self signed certificate in certificate chain

As this repo is private, did you fully configure your Github account in RStudio? Are you able to push to your own Github from RStudio?

The issue is not only for my private package but for any package from github. For example:

remotes::install_github("davidADSP/xgboostExplainer")
Error: Failed to install 'unknown package' from GitHub:
SSL certificate problem: self signed certificate in certificate chain