ssl - HEROKU 免费层 SSL : You need to be running on either Hobby or Professional dynos to be able to use SNI SSL

标签 ssl heroku https lets-encrypt certbot

我在 heroku 上免费托管我的网站。所以我必须手动启用 SSL,因为他们的自动化版本只能从 hobby dyno 开始使用。
我使用以下方法生成了证书:

sudo certbot certonly --manual


当我尝试添加证书时:

sudo heroku certs:add /etc/letsencrypt/live/www.sitename.com/fullchain.pem /etc/letsencrypt/live/www.sitename.com/privkey.pem


我收到了这个错误:

▸ You need to be running on either Hobby or Professional dynos to be able to use SNI SSL.


我认为手动执行此操作是可能的,但显然即使手动我也需要爱好版本。

最佳答案

绕过 Heroku 的 cert统统。通过合并 cert,我能够保护我的免费关卡登台站点。文件到 Procfile :

web: gunicorn mysite.wsgi --timeout 90 --certfile /certs/fullchain.pem --keyfile /certs/privkey.pem --keep-alive 5 --log-level debug --log-file -
方法应该类似于 nginxapache .只需将其放入您的 Procfile .

关于ssl - HEROKU 免费层 SSL : You need to be running on either Hobby or Professional dynos to be able to use SNI SSL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64747197/

相关文章:

ssl - 如何让 Gitlab 6.5 在 Apache 2.4 代理下显示其图标?

ruby-on-rails - rails 4 - 使用 Paperclip 和 Dropbox 在 Heroku 中不显示图像。

git 只推送一个文件到 Heroku

php - 验证码 file_get_contents() : SSL operation failed

linux - 在 UNIX 中下载 SSL 证书

c# - UWP 应用程序 HttpClient HTTPS 客户端证书问题

c# - MS Windows 服务和 https

web-services - 你能通过 HTTPS 运行soap吗?

ssl - Azure APIM 自定义域 SSL 让我们加密

ruby-on-rails - 如何重置我的 heroku 数据库?