Arch Linuxsudo pacman -S certbot
Debian
如果你运行Debian Buster或Debian testing/Sid,则可以通过以下命令轻松安装certbot软件包:sudo apt-get update
sudo apt-get install certbot
如果你运行Debian Stretch,我们建议你使用Debian backports仓库中的软件包,首先,您必须按照以下说明进行操作https://backports.debian.org/Instructions/ 如果还没有启用Stretch Backports存储库,请启用它,然后运行:sudo apt-get install certbot -t stretch-backports
在这些情况下,还可以使用软件包来帮助Certbot与Apache,nginx或各种DNS服务集成,如果你使用的是Apache或nginx,强烈建议你安装python-certbot-apache 或者 python-certbot-nginx 软件包,以便Certbot可以完全自动化服务器的HTTPS配置,可以通过以下命令找到这些软件包的完整列表:apt search 'python-certbot*'
可以通过运行相同安装命令来安装它们,但是替换certbot 所需包的名称。
Debian Jessie没有可用的Certbot软件包,Jessie用户应改用certbot-auto。
Ubuntu
如果你运行Ubuntu Trusty,xenial或Bionic,则certbot可通过官方PPA获得,可以按以下方式安装:sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
然后,可以使用以下命令安装certbot :sudo apt-get install certbot
(可选)要安装Certbot Apache插件,可以使用:sudo apt-get install python-certbot-apache
Fedorasudo dnf install certbot python2-certbot-apache
FreeBSD端口: cd/usr/ports/security/py-certbot&&makeinstallclean 包: pkginstallpy27-certbot
基图
Gentoo Portage中提供了Certbot的官方客户端,如果要使用apache插件,必须单独安装:emerge -av app-crypt/certbot
emerge -av app-crypt/certbot-apache
如果你使用默认的Gentoo,则在使用Apache插件时,会遇到"cannot find an SSLCertificateFile directive" 或者"cannot find an SSLCertificateKeyFile directive for certificate" 错误,httpd.conf 你可以通过注释两行来解决这个问题 /etc/apache2/httpd.conf 如下所示:
更改
LoadModule ssl_module modules/mod_ssl.so
到#
LoadModule ssl_module modules/mod_ssl.so
#
目前,这是apache插件在安装证书时识别指令的唯一方法,注:其他插件不需要进行此更改。
NetBSD从源代码生成: cd/usr/pkgsrc/security/py-certbot&&makeinstallclean 安装预编译软件包: pkg_addpy27-certbot
OpenBSDPort: cd/usr/ports/security/letsencrypt/client&&makeinstallclean 包: pkg_addletsencrypt