美文网首页
ubuntu使用certbot获取ssl证书

ubuntu使用certbot获取ssl证书

作者: TinyThing | 来源:发表于2021-01-29 13:03 被阅读0次

1.安装certbot

apt install certbot python3-certbot-nginx

2.配置nginx中的server_name

3.执行certbot

certbot --nginx -d aaa.test.com -d www.test.com

其中aaa.test.com等是你要注册的域名

4.注意事项
执行报错:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 2: ordinal not in range(128)

说明nginx配置中包含中文,去除后再次执行即可

参考文章
https://blog.nhtzj.com/697484412/

相关文章

网友评论

      本文标题:ubuntu使用certbot获取ssl证书

      本文链接:https://www.haomeiwen.com/subject/bgeqtltx.html