Amaze UI Logo

码动指尖



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

即可


 Linux

作者  :  奕弈

喵喵喵,你在心上



评论


About ME

about me

奕弈

为了最初的心,努力奋斗,从不懈怠的学习。

我不想成为一个庸俗的人。十年百年后,当我们死去,质疑我们的人同样死去,后人看到的是裹足不前、原地打转的你,还是一直奔跑、走到远方的我?

Contact ME