LoginSignup
2
2

More than 5 years have passed since last update.

Debian Wheezy (Apache2.2)で Let's Encrypt が自動設定できるようになっていた

Last updated at Posted at 2016-02-19

前に試したときのSSLで、期限切れ間近の通知がメールで来ていた。

Let's Encryptを試したログ

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

いけた。
これで古いテストサーバーもかなり楽になる気がする。

ただどこが編集されたのか分からない。
設定が消えたりすることは無かったが無駄な設定が残ることがあるので、先にバーチャルホスト設定ファイルのバックアップを取っておいた方が良さそう。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2