我正在寻找一种在 Debian 6 挤压中运行的 Apache 中使用免费 SSL 证书的方法。
我尝试使用 Lets-Encrypt
跑步
./certbot-auto --apache certonly --no-bootstrap
抛出错误
WARNING: couldn't find Python 2.7+ to check for updates.
Traceback (most recent call last):
File "<stdin>", line 16, in <module>
File "/usr/lib/python2.6/distutils/version.py", line 140, in __cmp__
compare = cmp(self.version, other.version)
AttributeError: StrictVersion instance has no attribute 'version'
我尝试使用在 Sqeeze 中安装 python 2.7
apt-get install python-pip
但这会引发错误
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
openssl : Depends: libssl1.0.0 (>= 1.0.1e-2+deb7u5) but it is not installable
python-pip : Depends: python-pkg-resources but it is not going to be installed
Depends: python-setuptools (>= 0.6c1) but it is not going to be installed
wkhtmltox : Depends: libssl1.0.0 but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
如何在 Apache 的 sqeeze 中使用免费的 SSL 证书?
Squeeze 还从源代码安装了 Mono 最新版本。也许可以使用一些 .NET 或 Mono ACME 客户端。
改用 acme.sh shell 脚本(https://github.com/Neilpang/acme.sh)。在这样的旧发行版上,我对 Certbot 没有很好的经验,但 acme.sh 对我来说效果很好。或者将您的操作系统升级到更新版本(@Michael Hampton 在他的评论中已经说过),但有时可能很难或者客户不想付费:)