在 cpanel 服务器上安装 letsencrypt 免费 SSL

在 cpanel 服务器上安装 letsencrypt 免费 SSL

letsencrypt是免费的新证书颁发机构

现在问题已经解决,我正在编辑这个问题,因为如果有人也遇到同样的问题,请检查cPanel 官方插件在:

参考:https://documentation.cpanel.net/display/CKB/The+Let%27s+Encrypt+Plugin

我想要安装在 cPanel 的服务器域上。

我已经关注了怎么运行的

$ git clone https://github.com/letsencrypt/letsencrypt
$ cd letsencrypt
$ ./letsencrypt-auto --help

但它不起作用

我的控制台日志

root@host5 [~/letsencrypt]# ./letsencrypt-auto certonly --standalone -d softechdevelop.com -d www.softechdevelop.com
Bootstrapping dependencies for RedHat-based OSes...
yum is /usr/bin/yum
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.chpc.utah.edu
 * extras: mirror.tocici.com
 * updates: mirrors.usc.edu
Package python-2.6.6-64.el6.x86_64 already installed and latest version
Package python-devel-2.6.6-64.el6.x86_64 already installed and latest version
No package python-virtualenv available.
Nothing to do
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.chpc.utah.edu
 * extras: mirror.tocici.com
 * updates: mirrors.usc.edu
Package git-1.7.1-3.el6_4.1.x86_64 already installed and latest version
Package gcc-4.4.7-16.el6.x86_64 already installed and latest version
Package dialog-1.1-9.20080819.1.el6.x86_64 already installed and latest version
Package augeas-libs-1.0.0-10.el6.x86_64 already installed and latest version
Package openssl-devel-1.0.1e-42.el6.x86_64 already installed and latest version
Package libffi-devel-3.0.5-3.2.el6.x86_64 already installed and latest version
Package redhat-rpm-config-9.0.3-44.el6.centos.noarch already installed and latest version
Package ca-certificates-2015.2.4-65.0.1.el6_6.noarch already installed and latest version
Nothing to do
WARNING: Python 2.6 support is very experimental at present...
if you would like to work on improving it, please ensure you have backups
and then run this script again with the --debug flag!
root@host5 [~/letsencrypt]# ./letsencrypt-auto
Bootstrapping dependencies for RedHat-based OSes...
yum is /usr/bin/yum
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.chpc.utah.edu
 * extras: mirror.ancl.hawaii.edu
 * updates: mirrors.usc.edu
Package python-2.6.6-64.el6.x86_64 already installed and latest version
Package python-devel-2.6.6-64.el6.x86_64 already installed and latest version
No package python-virtualenv available.
Nothing to do
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.chpc.utah.edu
 * extras: mirror.tocici.com
 * updates: mirrors.usc.edu
Package git-1.7.1-3.el6_4.1.x86_64 already installed and latest version
Package gcc-4.4.7-16.el6.x86_64 already installed and latest version
Package dialog-1.1-9.20080819.1.el6.x86_64 already installed and latest version
Package augeas-libs-1.0.0-10.el6.x86_64 already installed and latest version
Package openssl-devel-1.0.1e-42.el6.x86_64 already installed and latest version
Package libffi-devel-3.0.5-3.2.el6.x86_64 already installed and latest version
Package redhat-rpm-config-9.0.3-44.el6.centos.noarch already installed and latest version
Package ca-certificates-2015.2.4-65.0.1.el6_6.noarch already installed and latest version
Nothing to do
WARNING: Python 2.6 support is very experimental at present...
if you would like to work on improving it, please ensure you have backups
and then run this script again with the --debug flag!

如果有人了解如何使用 apache 安装 SSL,那么您的建议对我以及全世界所有其他网站所有者都会非常有帮助。

答案1

从日志中可以看出:

  • 你使用的是 python 2.6,他们认为这个版本不够可靠,所以给它贴上标签very experimental
  • 您缺少该python-virtualenv软件包,可能是因为它不适用于您的发行版

我猜你使用的是 RHEL6/centos6,所以你的 python 2.7 包被命名了python27*,并且脚本还不够智能,无法解决这个问题。

相关内容