SSL Certificates with Certbot¶
利用Certbot自动申请Let's Encrypt自签名SSL证书¶
1. Requirements¶
- 一个有公网IPv4/IPv6的VPS
- 一个解析到VPS IP地址的子域名
2. Install Certbot¶
CentOS/RHEL:
Ubuntu/Debian:3. Using Certbot¶
(1). 停止所有的WEB服务¶
在Certbot申请证书过程中,会用到VPS的80和443端口,当有程序占用该端口时,程序会报错。
(2). Applying for SSL Certifications¶
在交互确认界面确认验证信息。完成申请后会显示证书存放的地址,一般为
/etc/letsencrypt/live/example.com/privkey.pem