前に試したときのSSLで、期限切れ間近の通知がメールで来ていた。
letsencryptはgitで入れていたので、おもむろにpullする。
git pull
./letsencrypt-auto --apache
Checking for new version...
Upgrading letsencrypt-auto 0.5.0.dev0 to 0.4.0...
Replacing letsencrypt-auto...
cp /tmp/tmp.f13SOawKz6/letsencrypt-auto ./letsencrypt-auto
Creating virtual environment...
Installing Python packages...
Requesting root privileges to run letsencrypt...
/root/.local/share/letsencrypt/bin/letsencrypt --no-self-upgrade --apache
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NotSupportedError('Apache plugin support requires libaugeas0 and augeas-lenses version 1.2.0 or higher, please make sure you have you have those installed.',)
ライブラリのバージョンがダメらしい。
https://github.com/letsencrypt/letsencrypt/pull/1961
この辺ではpassと出ているのになあと思いつつ、またまたおもむろにgit grepしたら書いてあった。
git log --grep=wheezy
commit 9ea3dc313697f52889a6bf3d89edefb9132a618c
Author: Peter Eckersley <pde@eff.org>
Date: Mon Nov 30 22:12:02 2015 -0800
Hackishly add wheezy backports libaugeas0 where required
なるほど。
「Hackishly add」が若干気になるが…。
sources.listに
deb http://ftp.jp.debian.org/debian/ wheezy-backports main contrib non-free
を追記。
apt-get install -t wheezy-backports libaugeas0
backportsのものをインストールして、letsencrypt-autoを実行。
./letsencrypt-auto --apache
いけた。
これで古いテストサーバーもかなり楽になる気がする。
ただどこが編集されたのか分からない。
設定が消えたりすることは無かったが無駄な設定が残ることがあるので、先にバーチャルホスト設定ファイルのバックアップを取っておいた方が良さそう。