Hatena::ブログ(Diary)

猫又移転先

2009-03-29

lenny upgrade https

自前局運用なhostでlennyにdist-upgradeした際、既存の設定fileを維持したためいくつか苦戦したのでメモ。

Listen 443

/etc/apache2/ports.confに

<IfModule mod_ssl.c>
    # SSL name based virtual hosts are not yet supported, therefore no
    # NameVirtualHost statement here
    Listen 443
</IfModule>

などと追加されたため、起動時に以下のような文言でbindできない旨怒られる。

"Address already in use: make_sock: could not bind to address [::]:443"

/etc/apache2/site-enabled/sslから同じ行をcomment outする。

証明書再生成

browser(iceweasel3.0.6)から

"SSL received a record that exceeded the maximum permissible length."

やら

lenny "Certificate type not approved for application."

で怒られる。

結論としてはetchの時の

# /usr/lib/ssl/misc//CA.sh -newca

ではなく

# make-ssl-cert /usr/share/ssl-cert/ssleay.cnf [dest_path/]apache.pem

で証明書を再生成することで解決した。

ちなみにcommon nameしか質問されないのでそれなりの内容で生成される。

スパム対策のためのダミーです。もし見えても何も入力しないでください
ゲスト


画像認証

トラックバック - http://d.hatena.ne.jp/k1dee/20090329/p1