Mod_SSL
该配置并安装mod_ssl和Apache了。对此 ,你将需要有rsaref-2.0文件。在http://ftpsearch.lycos.com /上搜索“rsaref20.tar.Z”。如果你不喜欢Lyc os,你可以选择其他搜索引擎来搜索文件。当然只有你在美国才需 要这个文件。(管它呢,你也可从别处下载,首先在http:/ /ftpsearch.ntnu.no/查找“rsaref20 .tar.Z”,好多啊!。)
创建rasref目录,你将在该目录提取文件。注意 。这假定你下载了一个临时目录,而你就在此目录。
# mkdir rsaref-2.0
# cd rsaref-2.0
# gzip -d -c ../rsaref20.tar.Z | tar xvf -
现在配置并构造OpenSSL库。
# cd rsaref-2.0
# cp -rp install/unix local
# cd local
# make
# mv rsaref.a librsaref.a
# cd ../..
安装OpenSSL。记住,你将用它来创建临时证书和CSR文件 。--prefix选项指定主安装目录。
# cd openssl-0.9.x
# ./config -prefix=/usr/local/ssl
-L`pwd`/../rsaref-2.0/local/ rsaref -fPIC
现在make、测试并安装它。
# make
# make test
# make install
# cd ..
我们将配置MOD_SSL模块,然后用Apache配置指定它为 一个可装载的模块。
# cd mod_ssl-2.5.x-1.3.x
# ./configure
--with-apache=../apache_1.3.x
# cd ..
现在我们可以把更多的Apache模块加到Apache源代码树 中。可选的--enable-shared=ssl选项使得mo d_ssl构造成为一个DSO“libssl.so” 。关于在Apache支持DSO的更多信息,阅读Apache源 代码树中的INSTALL和 htdocs/manual/dso.html文档 。我强烈建议ISP和软件包装维护者为了最灵活地使用mod _ssl而使用DSO工具,但是注意,DSO不是在所有平台上的 Apache都支持。
# cd apache_1.3.x
# SSL_BASE=../openssl-0.9.x
RSA_BASE=../rsaref-2.0/local
./configure --enable-module=ssl
--activate-module=src/modules /php4/libphp4.a
--enable-module=php4 --prefix=/usr/local/apache
--enable-shared=ssl
[...你可加入更多的选项.
该配置并安装mod_ssl和Apache了。对此
创建rasref目录,你将在该目录提取文件。注意
# mkdir rsaref-2.0
# cd rsaref-2.0
# gzip -d -c ../rsaref20.tar.Z | tar xvf -
现在配置并构造OpenSSL库。
# cd rsaref-2.0
# cp -rp install/unix local
# cd local
# make
# mv rsaref.a librsaref.a
# cd ../..
安装OpenSSL。记住,你将用它来创建临时证书和CSR文件
# cd openssl-0.9.x
# ./config -prefix=/usr/local/ssl
-L`pwd`/../rsaref-2.0/local/ rsaref -fPIC
现在make、测试并安装它。
# make
# make test
# make install
# cd ..
我们将配置MOD_SSL模块,然后用Apache配置指定它为
# cd mod_ssl-2.5.x-1.3.x
# ./configure
--with-apache=../apache_1.3.x
# cd ..
现在我们可以把更多的Apache模块加到Apache源代码树
# cd apache_1.3.x
# SSL_BASE=../openssl-0.9.x
RSA_BASE=../rsaref-2.0/local
./configure --enable-module=ssl
--activate-module=src/modules
--enable-module=php4 --prefix=/usr/local/apache
--enable-shared=ssl
[...你可加入更多的选项.
| 对此文章发表了评论 |
