Difference between revisions of "Set up apache for https"
From Linuxintro
imported>ThorstenStaerk (New page: This article describes how you can secure your webpage running on apache2 with https. You create demo-certificates yourself for this. This is for SUSE Linux, for Fedora, I recommend http:/...) |
imported>ThorstenStaerk |
||
Line 3: | Line 3: | ||
This article assumes you know about SSL, https and certificates. | This article assumes you know about SSL, https and certificates. | ||
<ol> | <ol> | ||
+ | <li>[[set up apache]]</li> | ||
<li>set up your Certification authority and create dummy-certificates</li> | <li>set up your Certification authority and create dummy-certificates</li> | ||
/usr/bin/gensslcert | /usr/bin/gensslcert |
Revision as of 11:28, 13 January 2010
This article describes how you can secure your webpage running on apache2 with https. You create demo-certificates yourself for this. This is for SUSE Linux, for Fedora, I recommend http://www.linux-sxs.org/internet_serving/apache2.html
This article assumes you know about SSL, https and certificates.
- set up apache
- set up your Certification authority and create dummy-certificates /usr/bin/gensslcert
- get your SSL Configuration from the given template cd /etc/apache2/vhosts.d cp vhost-ssl.template vhost-ssl.conf
- change your SSL Configuration have apache2 start per default with SSL. To do this, edit /etc/sysconfig/apache2: replace APACHE_SERVER_FLAGS="" with APACHE_SERVER_FLAGS="SSL"
- restart apache2 /etc/init.d/apache2 restart
- make sure you have content to show echo "this is a test" >> /srv/www/htdocs/index.html
- test your configuration wget --no-check-certificate --no-proxy https://localhost