我正在寻找一种在 Debian 6 squeeze 中运行的 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 客户端。
答案1
尝试 acme.sh shell 脚本(https://github.com/Neilpang/acme.sh)。我在这种旧发行版上没有使用 Certbot 的良好经验,但 acme.sh 对我来说效果很好。或者将您的操作系统升级到较新的版本(@Michael Hampton 在他的评论中已经说过了),但有时这可能很难,或者客户不想为此付费 :)