使用puma-dev获取本地的SSL/https for Rails

Bri*_*oos 3 ruby-on-rails keychain puma

puma-dev -install当您访问时,puma-dev应该只使用初始安装时使用https/SSL https://yourlocalsitename.dev.

我可以在Chrome> Dev Tools> Security中看到证书,但它说

This page is not secure (broken HTTPS).

Certificate Error
There are issues with the site's certificate chain (net::ERR_CERT_AUTHORITY_INVALID).
Run Code Online (Sandbox Code Playgroud)

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

Bri*_*oos 7

如果正常puma-dev -install不行,即使在brew卸载/安装puma-dev之后尝试这个推荐这里

  1. Chrome>开发者工具> 安全性中,单击查看证书
  2. 将证书图标拖到OS X桌面
  3. 在桌面上,双击证书将其安装在OS X> Keychain Access as System(不登录)中
  4. 从Keychain Access中,双击cert(在System中)并将下拉列表更改为Always Trust

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