- 论坛徽章:
- 0
|
Here is what I did in apache-2.0.59 on Solaris.
Please let me know if it also works on Apache 2.2.x. Thank you.
1. Create a small script that contains the ssl.crt password:
# pwd
/usr/local/apache-2.0.59/bin
# cat ./sslpasswd
#!/bin/sh
echo testpass
#
# chmod 700 ./sslpasswd
# chown root:root ./sslpasswd
#
2. Change a line of ssl.conf file of Apache:
# cp -p ssl.conf ssl.conf.orig
# vi ssl.conf
"ssl.conf" 291 lines, 11590 characters
68 SSLPassPhraseDialog exec:/usr/local/apache-2.0.59/bin/sslpasswd
69 #SSLPassPhraseDialog builtin
3. Make changes in script /etc/init.d/apache:
# vi apache
...
start|restart)
...
# $HTTPD -k $ARGV
$HTTPD -k start -DSSL
...
#
4. Test it from command line.
# /etc/init.d/apache stop
#
# /etc/init.d/apache start
#
[ 本帖最后由 susbin 于 2006-10-27 00:35 编辑 ] |
|