如何用certbot申请免费的域名证书
Certbot是什么
Certbot 是一款免费的开源软件工具,用于在网站上自动使用 Let's Encrypt 证书来启用 HTTPS。Certbot 由电子前沿基金会 (EFF) 制作,该基金会是一家位于加利福尼亚州旧金山的非营利组织,旨在捍卫数字隐私、言论自由和创新。
如何安装
Debian/Ubuntu:
apt update -y && apt install -y certbot
怎么使用
申请证书
首先确认443和80端口无占用
lsof -i:端口号
certbot certonly --standalone -d $domain --email your@email.com --agree-tos --no-eff-email --force-renewal
证书在哪
ls /etc/letsencrypt/live