之前曾经为自己的博客站点(咦,我的博客站点哪里去了?)设置SSL证书,网站服务器用的是Apache,那么Nginx站点是否也可以用Certbot来搞定HTTPS访问呢?答案是肯定的。
首先,访问如下页面:
然后选择服务器类型和操作系统版本:
然后定向到新的页面中,按新页面提示操作即可。
操作步骤
首先SSH登录系统。
执行如下指令:
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
安装certbot
sudo apt-get install certbot python-certbot-nginx
为网站设置证书
sudo certbot --nginx
按提示输入邮件地址:
按提示接受许可协议:
选择是否分享邮件地址:
选择要设置的站点(可用空格选择所有):
选择是否重定向http访问至https
搞定了,是不是很简单?至于自动续费它也帮我们设置好了定时任务脚本,完全不用我们操心,很体贴有木有?
相关链接
https://steemit.com/~witnesses type in
oflyhigh
and click VOTE
Vote @oflyhigh via Steemconnect
Thank you!
恭喜你!您的这篇文章入选 @justyy 今日 (2019-07-13) 榜单 【优秀的文章】, 回复本条评论24小时内领赏,点赞本评论将支持 @dailychina 并增加将来您的奖赏。
@justyy 是CN区的见证人,请支持他,给他投票,或者设置justyy为见证人代理。感谢!@justyy的主要贡献:https://steemyy.com
Congratulations! This post has been selected by @justyy as today's (2019-07-13) 【Good Posts】, Steem On! Reply to this message in 24 hours to get rewards. Upvote this comment to support the @dailychina and increase your future rewards! ^_^
SteemIt 工具、API接口、机器人和教程
SteemIt Tools, Bots, APIs and Tutorial
If you believe what I am doing, please consider a spare vote voting me here, thank you very much indeed.
@justyy - the author of https://SteemYY.com and I have been a Steem Witness for more than a year now.
区块链中文第一大银行简介:你的比特币拿不了利息,但是你把比特币换成steem后就能拿利息了!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thx
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you so much for participating in the Partiko Delegation Plan Round 1! We really appreciate your support! As part of the delegation benefits, we just gave you a 3.00% upvote! Together, let’s change the world!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit