简体   繁体   English

Heroku上的SSL证书

[英]SSL certificate on Heroku

I have one domain purchased from GoDaddy. 我有一个从GoDaddy购买的域名。

lets say it is www.example.com, I have purchased wild card SSL certificate from GoDaddy for this domain. 可以说是www.example.com,我已经从GoDaddy购买了该域的通配SSL证书。

This domain is pointing to one of my app on Heroku. 该域指向Heroku上我的一个应用程序。 When I type http://www.example.com , it is working fine. 当我输入http://www.example.com时 ,它工作正常。 But when I type https://www.exapmle.com , 但是当我输入https://www.exapmle.com时

It says "web page not available" and error code is: 它显示“网页不可用”,错误代码为:

 "ERR_CONNECTION_REFUSED".

So do I need to add SSL certificate on Heroku too? 所以我也需要在Heroku上添加SSL证书吗? How https will work on my site when it's pointing to Heroku? 当https指向Heroku时,https如何在我的网站上工作? Thank you in advance. 先感谢您。

You need to upload your SSL certificate to Heroku with its CLI command heroku certs:add . 您需要使用其CLI命令heroku certs:add将SSL证书上传到Heroku。 Probably you also need to activate an SSL Endpoint addon ($20/month) and set your DNS CNAME pointing to it. 可能还需要激活一个SSL Endpoint插件(每月20美元)并设置指向它的DNS CNAME。

See https://devcenter.heroku.com/articles/ssl-endpoint#provision-the-add-on for details, and subsequent sections. 有关详细信息和后续部分,请参见https://devcenter.heroku.com/articles/ssl-endpoint#provision-the-add-on

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

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