加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 使用puma-dev为Rails本地工作SSL / https

发布时间:2020-12-17 01:36:51 所属栏目:百科 来源:网络整理
导读:当您访问https://yourlocalsitename.dev时,puma-dev应该与https / SSL一起使用初始安装puma-dev -install. 我可以在Chrome中看到证书开发工具安全,但它说 This page is not secure (broken HTTPS).Certificate ErrorThere are issues with the site's certif
当您访问https://yourlocalsitename.dev时,puma-dev应该与https / SSL一起使用初始安装puma-dev -install.

我可以在Chrome中看到证书>开发工具>安全,但它说

This page is not secure (broken HTTPS).

Certificate Error
There are issues with the site's certificate chain (net::ERR_CERT_AUTHORITY_INVALID).

我怎样才能让puma-dev在本地https工作?

解决方法

如果普通的puma-dev -install即使在brew卸载/安装puma-dev之后也不起作用,试试这个 recommended here

>在Chrome中>开发人员工具>安全性单击查看证书
>将证书图标拖到OS X桌面
>在桌面上,双击证书,将其安装在OS X>中.钥匙串访问系统(不登录)
>从Keychain Access,双击证书(在系统中)并将下拉列表更改为始终信任

现在再次尝试访问https://yourlocalsitename.dev,但是在新选项卡中,它应该是绿色的https.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读