linux apache certbot,从操作系统软件包安装Certbot
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服務(wù)集成,如果你使用的是Apache或nginx,強烈建議你安裝python-certbot-apache 或者 python-certbot-nginx 軟件包,以便Certbot可以完全自動化服務(wù)器的HTTPS配置,可以通過以下命令找到這些軟件包的完整列表:apt search 'python-certbot*'
可以通過運行相同安裝命令來安裝它們,但是替換certbot 所需包的名稱。
Debian Jessie沒有可用的Certbot軟件包,Jessie用戶應(yīng)改用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
如果你使用默認(rèn)的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 安裝預(yù)編譯軟件包: pkg_addpy27-certbot
OpenBSDPort: cd/usr/ports/security/letsencrypt/client&&makeinstallclean 包: pkg_addletsencrypt
總結(jié)
以上是生活随笔為你收集整理的linux apache certbot,从操作系统软件包安装Certbot的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux通过时间查询日志,linux按
- 下一篇: 软件工程环形复杂度计算方法有哪些_软件工