Solved

Apache 2.0 with SSL in Solaris Sparc

Posted on 2004-04-13
6
388 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
ID: 10812430
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
ID: 10814345
Hello,

Are you saying to put

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

Please explain.
0
 

Author Comment

by:i_am_diablo2000
ID: 10819955
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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 15

Accepted Solution

by:
samri earned 150 total points
ID: 10822450
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
ID: 10829237
I think that is what I want. Take the points. Thanks.
0
 
LVL 15

Expert Comment

by:samri
ID: 10831940
no. problem :)
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

910 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

16 Experts available now in Live!

Get 1:1 Help Now