<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HOWTO :: VoIP: Whosesale :: Calling Card :: OpenSer :: Radius :: Asterisk :: FreeSwitch :: A2Billing :: IVR :: Colo :: Colocations :: GADGETS &#187; Debian Apache2 + SSL</title>
	<atom:link href="http://callsolutions.org/tag/debian-apache2-ssl/feed/" rel="self" type="application/rss+xml" />
	<link>http://callsolutions.org</link>
	<description>You can also find CCNA :: CCNAP :: Exam, Brandump, CheatSheet, Sample Exams</description>
	<lastBuildDate>Thu, 29 Apr 2010 14:23:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HOWTO: Debian Etch Apache2 + SSL</title>
		<link>http://callsolutions.org/howto-debian-etch-apache2-ssl/</link>
		<comments>http://callsolutions.org/howto-debian-etch-apache2-ssl/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 20:46:46 +0000</pubDate>
		<dc:creator>nelson</dc:creator>
				<category><![CDATA[Apache2]]></category>
		<category><![CDATA[Debian Apache2]]></category>
		<category><![CDATA[Debian Apache2 + SSL]]></category>
		<category><![CDATA[Debian Etch]]></category>

		<guid isPermaLink="false">http://callsolutions.org/?p=10</guid>
		<description><![CDATA[   Introduction: Howto Apache2 + SSL Installation
    This tutorial will teach you how to install and configure Apache2 + SSL for Debian Etch. The installation is straightforward. You can just copy pasted the commands below:
Install apache2 in debian etch

#apt-get install apache2 

Install openssl using the following command

#apt-get install openssl ssl-cert [...]]]></description>
			<content:encoded><![CDATA[<p>   <strong>Introduction: Howto Apache2 + SSL Installation</strong>
<p>    This tutorial will teach you how to install and configure Apache2 + SSL for Debian Etch. The installation is straightforward. You can just copy pasted the commands below:
<p><strong>Install apache2 in debian etch</strong>
<p><em><br />
#apt-get install apache2 </em></p>
<p><strong><br />
Install openssl using the following command</strong></p>
<p><em><br />
#apt-get install openssl ssl-cert </em></p>
<p><strong><br />
Install PHP5 support for apache2 in debian etch</strong></p>
<p>
<em>#apt-get install libapache2-mod-php5 php5-cli php5-common php5-cgi</em>
<p> Once you install apache server you need to Generate a certificate,Enable Apache SSL support and Configure your SSL options.
<p><strong><br />
Generate A certificate</strong></p>
<p><span id="more-10"></span><br />
Generating a certificate will provide to protect the traffic exchanged between clients and your server, however it will be unsigned by a trusted certificate authority so it will generate warnings.
<p>
If you want to avoid these warning messages you need to get a trusted certificate from SSL certificate vendors.If you want to Generating an SSL certificate for Apache2 you need to use the openssl. This will ask you questions interactively then generate the certificate file appropriately.
<p>
Note:-For generating certificate you might have used the apache2-ssl-certificate command in debian sarge but in debian etch this command not available.If you want to generate certificates you need to use openssl from you command prompt Use the following command to generate certificates
<p><em>#openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem</em></p>
<p> Generating a 1024 bit RSA private key
<p>
.++++++
<p>
.++++++
<p>
writing new private key to /etc/apache2/apache.pem
<p>
You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank.
<p>For some fields there will be a default value, If you enter ., the field will be left blank.<br />
<br />
Country Name (2 letter code) [AU]:GB
<p>
State or Province Name (full name) [Some-State]:
<p>
Locality Name (eg, city) []:London
<p>
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Debian
<p>
Organizational Unit Name (eg, section) []:
<p>
Common Name (eg, YOUR name) []:
<p>
Email Address []:
<p>
This will complete the certificate now you need to make sure you have the correct permissions for .pem file if not use the following command to set the correct permissions
<p>
 <em>#chmod 600 /etc/apache2/apache.pem</em>
<p>
 By default the server will listen for incoming HTTP requests on port 80 &#8211; and not SSL connections on port 443. So you need to enable SSL support by entering the following entry to the file /etc/apache2/ports.conf save and exit the file.
<p>
Listen 443
<p>
 <strong><em>Enable SSL Support</em></strong><br />
 If you want to enable SSL support for your apache web server you need to use the following comamnd
<p>
 <em>#a2enmod ssl</em>
<p>
Module ssl installed; run /etc/init.d/apache2 force-reload to enable.
<p>
Now you need to restart the apache2 server using the following command
<p>
 <em>#/etc/init.d/apache2 restart</em>
<p>
 Configuring SSL Certificate to Virtual Hosts in Apache2
<p>
First you need to edit the /etc/apache2/sites-available/default file change
<p>
NameVirtualHost *
<p>
to</p>
<blockquote>
<p>
    NameVirtualHost *:80
<p>
    NameVirtualHost *:443
<p>
    Now you need to configure Virtual hosts using port 80
<p>
    Example
<p>
    ServerAdmin webmaster@localhost
<p>.
<p>.
<p>.
<p>
    configure Virtual hosts using port 443 the main difference is you need to use the following two lines for each SSL hosts.</p>
<p>
    SSLEngine on
<p>
    SSLCertificateFile /etc/apache2/apache.pem
<p>    Example
<p>
    ServerAdmin webmaster@localhost
<p>
    .
<p>
    .
<p>
    .
<p>
    SSLEngine on
<p>
    SSLCertificateFile /etc/apache2/apache.pem
<p>    Now you need to restrat your apache web server using the following comamnd
<p><em></p>
<p>    #/etc/init.d/apache2 reload</em></p>
<p>    Reloading web server config XXXX
</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://callsolutions.org/howto-debian-etch-apache2-ssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
