学海无涯苦作粥(舟)
vpn_key

部署Let’s Encrypt免费SSL证书&&自动续期

摘要:自动续期SSL证书

  • 导出为PDF
  • 导出为Markdown

获取Let’s Encrypt

获取

wget https://dl.eff.org/certbot-auto

设置为可执行

chmod a+x certbot-auto

执行自动部署
./certbot-auto

安装过程

执行完成之后会提示输入您的电子邮件,会自动侦测你的服务器类型

Plugins selected: Authenticator nginx, Installer nginx
Enter email address (used for urgent renewal and security notices) (Enter ‘c’ to
cancel):

允许协议

Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v01.api.letsencrypt.org/directory

(A)gree/(C)ancel: A

关于共享你的电子邮件

Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let’s Encrypt project and the non-profit
organization that develops Certbot? We’d like to send you email about EFF and
our work to encrypt the web, protect its users and defend digital rights.

选择你要激活的域名

1: 2go.pub
2: www.2go.pub

Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter ‘c’ to cancel): 1 2

自动激活http跳转到https

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.

1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you’re confident your site works on HTTPS. You can undo this
change by editing your web server’s configuration.

Select the appropriate number [1-2] then [enter] (press ‘c’ to cancel): 2

过一会儿自动就完成了


发表评论

首次评论需要等待20分钟,以后评论间隔为12分钟,剩余:19分59秒