You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jodie <Jo...@hotmail.com> on 2003/06/18 18:04:08 UTC

[users@httpd] Apache2.0.43 SSL + Solaris 8

Hey, guys:
I tried to set up the SSL for Apache2 (v2.0.43) on my Solaris box but it kept failed for some reason. 
Can anyone please help ?? I list my steps below ... 

1. Set up the PATH. (openSSL has been installed in the /usr/local/ssl)
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/ssl/bin

2. Start to install Apache 2 
./configure --prefix=/usr/local/apache2 --enable-ssl --enable-module=so
make
make install

3. When I go to /usr/local/apache2/module, there is no ssl folder. Only file there is httpd.exp

4. Then I check the Apache 2 source folder, the programs under the modules/ssl have been complied (mod_ssl.o is there) but they are just not copied to the /usr/local/apache2/module.
So I decide to copy whole ssl folder to /usr/local/apache2

5. Generate the key and certificate
   openssl req -new -out server.csr
  openssl rsa -in privkey.pem -out server.key
  openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 365

  copy server.crt and server.key to /usr/local/apache2/conf

6. setup the ssl.conf 
<IfDefine SSL>
...
<VirtualHost 172.16.1.54:443>
.....
SSLEngine On
SSLCertificateFile conf/server.cert
SSLCertificateKeyFile conf/server.key
....
</VirtualHost>
</IfDefine>

7. Change the listening port to 443 on httpd.conf
Listen 443

8. Start Apache
connect to http://172.16.1.54:443  --> OK
connect to https://172.16.1.54   --> Show empty page : Can not find the page Or DNS error

9.  Test openSSL
bash-2.03# openssl s_client -connect 172.16.1.54:443
CONNECTED(00000003)
23953:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:475:


*_*... Apparently , the ssl is not up but I really don't know what I have missed ~~~ Can any Guru help ? 
THANK YOU.

Best wish,
jodie