我在 amazon ec2 中有一个 ec2 实例。因为我有 php 文件和 mysql 数据库。我正在按照以下方式使用 ec2 连接我的数据库
http://18.37.220.172/phpInsert.php .但是我没有安全感。所以我想更改为安全站点。
像这样https://18.37.220.172/phpInsert.php
我已经在 ec2 实例中安装了 letsencrypt ssl 证书。但是 http 并没有变成 https。
如何在 ec2 实例中启用 ssl。我没有任何域名。
所以我想转换我的IP地址https://18.37.220.172 .是否可以。
我必须做什么?
最佳答案
letsencrypt 不支持生成没有域名的证书:https://community.letsencrypt.org/t/certificate-for-public-ip-without-domain-name/6082
It is possible to purchase certificates for IP addresses, but not from Let’s Encrypt. Let’s Encrypt may offer IP address certificates in the future, but as of September 2018 we do not.
关于ssl - 如何通过 LetsEncrypt 将 Amazon Ec2 中的 http 更改为 https,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56685377/