Apache-SSLのダウンロードからインストール
Modified: 31 Dec 1999
最近のバージョンは、SSLeay でなく、OpenSSL を使うようになっています。
Apache-SSL のダウンロード
Apache と、Apache-SSLを解凍し、パッチを充てる
Configration ファイルを編集する
Apache をmakeして、インストールする
テスト用、認証証明書をつくる
Apache-SSL は、Apache を SSL 対応とするためのパッチです。
以下から、apache_1.3.9+ssl_1.37.tar.gz をダウンロードしました。 (30 Dec 1999)ftp://ftp.master.pgp.net/pub/crypto/SSL/Apache-SSL/
このバージョンでは、以下の条件があります。
- Apache 1.3.6
- OpenSSL 0.9.2b or later
- patch 2.1 or 2.5
Apache と、Apache-SSLを解凍し、パッチを充てる
Apacheを解凍する。
$ tar zxvf apache_1.3.9.tar.gz
$
Apache にSSLのパッチを充てる
Apacheを解凍したディレクトリに、apache_1.3.9+ssl_1.37.tar.gz をコピーして、Apache-SSLを解凍します。
$ cd apache_1.3.9
$ tar zxvf apache_1.3.9+ssl_1.37.tar.gz
$パッチを実行する。
$ ./FixPpatch
:
$
$ vi src/Configuration 以下の変数を
SSL_BASE=/usr/home/ben/work/openssl
SSL_INCLUDE= -I$(SSL_BASE)/include
SSL_CFLAGS= -DAPACHE_SSL
SSL_LIB_DIR= $(SSL_BASE)
SSL_LIBS= -L$(SSL_LIB_DIR) -lssl -lcrypto
SSL_APP_DIR= $(SSL_BASE)/apps
SSL_APP=/usr/home/ben/work/openssl/apps/openssl以下のように変更します。
SSL_BASE=/usr/local/ssl
SSL_INCLUDE= -I$(SSL_BASE)/include/openssl
SSL_CFLAGS= -DAPACHE_SSL
SSL_LIB_DIR= $(SSL_BASE)/lib
SSL_LIBS= -L$(SSL_LIB_DIR) -lssl -lcrypto
SSL_APP_DIR= $(SSL_BASE)/bin
SSL_APP=/usr/local/ssl/bin/openssl
$ ./configure --prefix=/usr/local/apache+ssl
:
$ make
:
$ su
password: xxxxx
# make install
+--------------------------------------------------------+
| You now have successfully built and installed the
| Apache 1.3 HTTP server. To verify that Apache actually
| works correctly you now should first check the
| (initially created or preserved) configuration files
|
| /usr/local/apache+ssl/conf/httpsd.conf
|
| and then you should be able to immediately fire up
| apache the first time by running:
|
| /usr/local/apache+ssl/bin/httpsdctl start
|
| Thanks for using Apache. The Apache Group
| http://www.apache.org/
+--------------------------------------------------------+
#
これで、とにかく、インストールは終了しました。
$ cd src; make certificate
:
-----
Country Name (2 letter code) [GB]:JP
State or Province Name (full name) [Some-State]:Nara
Locality Name (eg, city) []:Oota
Organization Name (eg, company; recomended) []:tomoac
Organization Unit Name (eg, section) []:ssc
server name (eg, ssl.domain.tld; required!!!) []:p5100.tomo.ac
Email Address []:tomo@tomo.ac
$"./SSLconf/conf" に、"httpsd.pem" ができていることを確認します。
今後、とか、HTTPSでないApacheとの共存を実験します。