<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff size=2>Hi
again,</FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff size=2>I got
SSL working. Perhaps I am the only idiot out there who has not gotten this to
work right away, but in case this can help someone else I will send what I did
to the list. </FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff size=2>Here
is what I missed - in httpd.conf the Include directive for SSL was inside the
IfModule set like so:</FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2><IfModule ssl_module><BR>Include
etc/extra/httpd-ssl.conf<BR>SSLRandomSeed startup builtin<BR>SSLRandomSeed
connect builtin<BR></IfModule></FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff size=2>I
decided to try commenting it out and putting it outside of the set like
so:</FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2>Include etc/extra/httpd-ssl.conf<BR><IfModule
ssl_module><BR>#Include etc/extra/httpd-ssl.conf<BR>SSLRandomSeed startup
builtin<BR>SSLRandomSeed connect
builtin<BR></IfModule></FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff size=2>and I
was rewarded with apache not starting and throwing the error
that:</FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff size=2>[Thu
Apr 19 14:43:20 2007] [notice] Graceful restart requested, doing
restart<BR>Syntax error on line 57 of
/opt/csw/apache2/etc/extra/httpd-ssl.conf:<BR>Invalid command
'SSLPassPhraseDialog', perhaps misspelled or defined by a module<BR> not
included in the server configuration</FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff size=2>This
was cool to me because that might mean it wasn't finding mod_ssl, so I checked
that out and the mod_ssl was also inside a set:</FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2><IfDefine SSL><BR>LoadModule ssl_module
libexec/mod_ssl.so<BR></IfDefine></FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff size=2>So I
commented out the tags like so:</FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2>#<IfDefine SSL><BR>LoadModule ssl_module
libexec/mod_ssl.so<BR>#</IfDefine></FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff size=2>and
hey presto apache started, listening on 80 and 443. </FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2>Lauren. </FONT></SPAN></DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=601363105-19042007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Lauren
[mailto:lauren.wright@guamcell.net]<BR><B>Sent:</B> Thursday, April 19, 2007
1:07 PM<BR><B>To:</B> 'users@lists.blastwave.org'<BR><B>Subject:</B> RE: SSL
on Apache2 problem - Solaris 10 <BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>I am having trouble getting Apache 2 to
listen on port 443. I am running Solaris 10 (new to me). I installed the
SAMP packages from blastwave in this order:</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>pkg-get install apache2<BR>pkg-get install
mysql5<BR>pkg-get install php5<BR>pkg-get install php5_mysql<BR>pkg-get
install ap2_modphp5</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I configured SSL support per this
document:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://blogs.sun.com/jcecere/entry/building_64_bit_open_source3">http://blogs.sun.com/jcecere/entry/building_64_bit_open_source3</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Per instructions I read here, I also configured
SSL support in SMF:<BR> # svccfg -s
svc:/network/http:cswapache2 setprop httpd/ssl=true<BR> #
svcadm refresh svc:/network/http:cswapache2</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>This appears to be set up
correctly:<BR> # svcprop -p httpd/ssl
svc:network/http:cswapache2<BR>
true<BR> #</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I also modified the Listen directive in
httpd-ssl.conf to use the IP:443 rather than just 443 (after trying https
with the default and it did not work). There is nothing I can see in the
error logs that shows a problem: </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>[Thu Apr 19 11:22:11 2007] [notice] Graceful
restart requested, doing restart<BR>[Thu Apr 19 11:22:12 2007] [notice]
Digest: generating secret for digest authent<BR>ication ...<BR>[Thu Apr 19
11:22:12 2007] [notice] Digest: done<BR>[Thu Apr 19 11:22:12 2007] [notice]
Apache/2.2.4 (Unix) PHP/5.2.1 configured --<BR>resuming normal
operations</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I can see when I do a netstat it still is not
listening on 443. Regular http is working great, it is listening on 80 just
fine. </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>It is like it is not reading the Listen
directive in httpd-ssl.conf. Just to test, I added a Listen directive for
443 in httpd.conf and then did a netstat - it started listening on
443:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>172.18.100.161.80
*.*
0 0 49152 0
LISTEN<BR>172.18.100.161.443
*.*
0 0 49152 0
LISTEN</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I am thinking that is is not reading
httpd-ssl.conf at all. I have double and triple checked that I have the
Include for httpd-ssl.conf uncommented in httpd.conf. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Obviously I am missing something but I sure
can't figure it out. I am hoping someone can please tell me what I am
missing.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks very much</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Lauren.
</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>