let's encrypt install

let's encrypt 的安装。今天突然发现服务器的https证书失效了。得重新安装一下,但是问题来了,我记不住要哪些参数。所以最好的办法就是自己记录一下吧。

let's encrypt install

let's encrypt 的安装。

今天突然发现服务器的https证书失效了。得重新安装一下,但是问题来了,我记不住要哪些参数。所以最好的办法就是自己记录一下吧。


git clone https://github.com/letsencrypt/letsencrypt

cd letsencrypt

./certbot-auto --help all

./certbot-auto certonly --standalone --email admin@laozuo.org -d laozuo.org -d www.laozuo.org

PS:

如果ubuntu上安装报错 


E: Package 'python-virtualenv' has no installation candidate


则 将/etc/apt/source.list文件里的内容全部删除,然后加上如下语句


deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe

执行

sudo apt-get update

然后再次执行

./certbot-auto certonly --standalone --email admin@laozuo.org -d laozuo.org -d www.laozuo.org

即可


奕弈

作者:奕弈

喵喵喵,你在心上。记录开发实践与踩坑笔记。