Solved

Apache 2.0 with SSL in Solaris Sparc

Posted on 2004-04-13
6
394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
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…
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…

688 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