简体   繁体   English

适用于受控用户组的Heroku SSL证书

[英]Heroku SSL certificate for controlled group of users

I have a Rails app hosted on Heroku and it runs on its own custom domain. 我在Heroku上托管了一个Rails应用程序,它在自己的自定义域上运行。 To provide more security, I have enabled the setting force_ssl so all traffic is HTTPS. 为了提供更高的安全性,我启用了force_ssl设置,因此所有流量均为HTTPS。 With a custom domain however, the browser shows a certificate warning about an untrusted website. 但是,使用自定义域时,浏览器会显示有关不可信网站的证书警告。

I can solve that by purchasing a certficate and enable the SSL endpoint add-on on Heroku. 我可以通过购买证书并在Heroku上启用SSL端点附件来解决该问题。 This costs money however, the add-on itself is 20 dollar a month. 但是,这要花钱,附加组件本身是每月20美元。 The application is for a limited, controlled group of users in my company, so in my opionion a paid certificate is not necessary. 该应用程序仅适用于我公司中有限的受控用户组,因此在我看来,不需要付费证书。 What are my options here? 我在这里有什么选择? Is it possible to create a certificate myself and give it to all the users to add to their browser? 是否可以自己创建证书并将其授予所有用户以添加到他们的浏览器中?

Whilst the browser shows a warning the connection will infact still be SSL. 浏览器显示警告时,连接实际上仍为SSL。 The warning means that the certificate being used in this case mismatches the domain so is a warning to the user about something not being quite right. 该警告表示在这种情况下使用的证书与域不匹配,因此是警告用户某些不正确的信息。 If it's a controlled group of users then I think as long as you tell them this then it shouldn't be such a shock and they can safely click on. 如果这是一组受控的用户,那么我认为,只要您告诉他们,那么这应该不会造成太大的冲击,他们可以安全地单击。

That, or maybe revert to the *.herokuapp.com domain that your application will have and which will work with the wildcard SSL certificate that Heroku have already installed. 那,或者恢复到您的应用程序将拥有的* .herokuapp.com域,该域将与Heroku已安装的通配符SSL证书一起使用。

Either of those options seem much less hassle (to me) than worrying about self signing certificates and having your users install it 在我看来,这些选项中的任何一个似乎都比担心自签名证书并让您的用户安装证书要麻烦得多

....or purchase the actual cert and pay $20 a month. ....或购买实际证书并每月支付$ 20。

A good option would have been to use a self-signed SSL certificate, but Heroku doesn't support that on their stack. 一个不错的选择是使用自签名SSL证书,但是Heroku不支持其堆栈。

You can either instruct your users to access your app through appname.herokuapp.com , which always has SSL enabled (via Heroku's wildcard SSL for that domain), and comes at no additional cost. 您可以指示用户通过appname.herokuapp.com来访问您的应用程序,该应用程序始终启用SSL(通过该域的Heroku通配符SSL),并且无需支付额外费用。

The only other option is to go with $20/month for a proper SSL cert for your domain. 唯一的其他选择是每月为您的域使用$ 20的适当SSL证书。

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

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