centos7 安装rvm报错 无证书 doman错误解决

安装rvm时 curl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate.

This error occurs because there is a mismatch between the domain name in the requested URL and the domain name in the server's certificate. To resolve this issue, you could try the following solutions:

下面是chatgpt的回答,已解决

  1. Use the -k flag with curl to ignore SSL certificate errors.
curl -kSL https://get.rvm.io | bash -s stable
  1. Update your ca-certificates package:
sudo apt-get update sudo apt-get install ca-certificates
  1. Try installing RVM from an alternative source:
curl -sSL https://rvm.io/mpapis.asc | gpg --import - curl -sSL https://get.rvm.io | bash -s stable --ruby

 

posted @   zhg1016  阅读(538)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
· 三行代码完成国际化适配,妙~啊~
点击右上角即可分享
微信分享提示