Solved

Apache 2.0 with SSL in Solaris Sparc

Posted on 2004-04-13
6
387 Views
Last Modified: 2013-12-05
Hi,
I am a total dummy in Apache and SSL. I studied through solutions from internet and worked until late night everyday but I just failed to get it working. I will appreciate if someone here guide me through and I promise I will give you all the points that I have.

I want to setup SSL with my Apache 2.0 in my Sun Solaris 8 environment. I have successfully generated the certificate and key and put in the respectively directories. I also put the following lines in my httpd.conf


<VirtualHost _default_:443>
ServerName 203.125.208.137
SSLEngine on
SSLCertificateFile \
/usr/local/ssl/certs/203.125.208.137.cert
SSLCertificateKeyFile \
/usr/local/ssl/private/203.125.208.137.key
</VirtualHost>

However, when I visit the URL http://203.125.208.137:443, I always got empty page. Do you know why?

It seems I have overlooked something.

1) Do I need to specify "loadmodule my mod_ssl.so file?" or something like that?
2) Do I need to tell apache or ssl which webapp application should apply the security and certificate?
3) I am using Tomcat 4 with apache to serve my web app and want to apply my SSL thing on my web app? Any more things I need to do?

Please help me.
Thank you.
0
Comment
Question by:i_am_diablo2000
  • 3
  • 3
6 Comments
 
LVL 15

Expert Comment

by:samri
Comment Utility
Try to add DocumentRoot /some/path/

and make sure you had some html files there, so that you could do;

https://203.125.208.137/something.html

give this a shot.
0
 

Author Comment

by:i_am_diablo2000
Comment Utility
Hello,

Are you saying to put

DocumentRoot /some/path/
 
in the <VirtualHost> directive?

Please explain.
0
 

Author Comment

by:i_am_diablo2000
Comment Utility
Yo,

I am able to get it working now. However, I am facing another problem.
As I executed the following command for key creation,

/usr/local/openssl/bin/openssl genrsa -des3 -rand file1,file2 -out sonyCybershot.com.key 1024

I was prompted for password. And I found that I need to key in this password everytime I start up my Apache. The problem is my Apache is to start from the system script at /etc/rc3.d when system reboot.

So how should I supply the password to startup Apache during auto-startup?

Please enlighten me.
Thanks
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 15

Accepted Solution

by:
samri earned 150 total points
Comment Utility
Some information from PAQ: from jcoman777
/--
http://www.experts-exchange.com/Web/Web_Servers/Apache/Q_20944200.html
--To get rid of the pass-phrase dialog at Apache startup time:
 
 Remove the encryption from the RSA private key (while preserving the original file):
   
 $ cp server.domain.tld.key server.domain.tld.key.orig
 $ openssl rsa -in server.domain.tld.key.orig -out server.domain.tld.key
 Enter PEM pass phrase: YOUR_PASSWORD_HERE
 
 Make sure the server.key file is now only readable by root:  
 
 $ chmod 400 server.domain.tld.key

\-------

I hope this would helps.
 
0
 

Author Comment

by:i_am_diablo2000
Comment Utility
I think that is what I want. Take the points. Thanks.
0
 
LVL 15

Expert Comment

by:samri
Comment Utility
no. problem :)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now