简体   繁体   English

Rails,DNSimple,Heroku和SSL-我需要证书吗?

[英]Rails, DNSimple, Heroku and SSL - do I need a certificate?

So I'm currently deploying my app via Heroku. 因此,我目前正在通过Heroku部署我的应用程序。 I noticed that in my-app-name.herokuapp.com has HTTPS, so if I do config.force_ssl = true in my environments/production.rb it seems like I have wildcare SSL, right? 我注意到在my-app-name.herokuapp.com中具有HTTPS,因此,如果我在我的environments/production.rb config.force_ssl = true执行config.force_ssl = true ,则好像我具有Wildcare SSL,对吗?

Now I'm using DNSimple to get my actual name - call it my-app-name.com. 现在,我正在使用DNSimple获取我的真实姓名-称为my-app-name.com。 Which currently resolves to http://my-app-name.com , but really is just a namespace for . 当前解析为http://my-app-name.com ,但实际上只是的命名空间。

So I guess I'm wondering, given that I'm technically still hitting my herokuapp, cam I covered by the wildcard SSL certificate? 所以我想我想知道,从技术上讲我仍然在打我的herokuapp,我是否已被通配SSL证书覆盖?

I just went through this same scenario. 我只是经历了同样的情况。 The certificate you see in your herokuapp is the wildcard certificate issued for *.herokuapp.com . 您在herokuapp看到的证书是为*.herokuapp.com发行的通配符证书。

If you want to secure a custom domain name http://my-app-name.com , you would need to purchase and install your own wildcard certificate via DNSimple. 如果要保护自定义域名http://my-app-name.com ,则需要通过DNSimple购买并安装自己的通配符证书。

If you want to use a custom domain, with a Heroku app and a free SSL certificate it's worth checking out Cloudflare as your DNS service. 如果您想使用自定义域,Heroku应用程序和免费的SSL证书,则值得将Cloudflare作为DNS服务。 The free product includes a shared SSL certificate much like the Heroku one! 免费产品包括一个共享的SSL证书,就像Heroku一样!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM