Let's Encrypt实现ssl(Assessment failed: Unable to connect to the serve)
文章目录
- 场景
- 工具
- 步骤
- 遇到的问题
- 解决
场景
- 今天把网站的协议转成了https, 所以记录下过程
工具
- certbot
步骤
安装certbot
- 官方安装方式列表
- $ sudo apt-get update
- $ sudo apt-get install software-properties-common
- $ sudo add-apt-repository ppa:certbot/certbot
- $ sudo apt-get update
- $ sudo apt-get install python-certbot-nginx
部署ssl
- 首先按照http的方式部署一个站点
- sudo certbot —nginx -d your-domian.com -d www.your-domain.com (certbot自动修改你的host文件)
- sudo certbot renew —dry-run (自动更新)
遇到的问题
Assessment failed: Unable to connect to the serve : No secure protocols supported
解决
- 我的主机加入了安全组 && 没有开放443接口, 增加一条443的规则解决
还没有评论,来说两句吧...