HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   How to assign a SSL certificate using apache on linux (http://www.howtoforge.com/forums/showthread.php?t=32901)

wintertong 26th March 2009 15:58

How to assign a SSL certificate using apache on linux
 
I have recently started serving our websites from linux machines and now would like to move our ecommerce machines onto the server. These require SSL certificates.

I assume that I need to create a key to give to the SSL certificate and then link in some how to the virtualhosts file.

Does anyone have any idea how to do this?

topdog 26th March 2009 16:22

You use the following options
Code:

SSLCertificateFile=the_certificate_file
SSLCertificateKeyFile=the_key_file

Note: that has to be under a vhost running on port 443, those are just the minimal options there are lots more options. If you are running a Redhat based distro take a look at /etc/httpd/conf.d/ssl.conf

wintertong 26th March 2009 16:59

Thanks, I have this now.

I need to assign a range of Ipaddresses to this machine don't I? I can't have more that one site using the same IP when using SSL.

How do I assign More IPaddresses to the machine? How do I then assign the new ipaddresses to the apache vhosts file?

thanks for your help

wintertong 26th March 2009 17:01

I think i have to change the virtualhost from <VirtualHost *:80>
to <VirtualHost xxx.xxx.xxx.xxx:443>. Does look about right?

topdog 26th March 2009 17:02

You can assign multiple IP's using IP address aliasing. You then create the virtualhosts each binding to its own address.

topdog 26th March 2009 17:03

Quote:

Originally Posted by wintertong (Post 177609)
I think i have to change the virtualhost from <VirtualHost *:80>
to <VirtualHost xxx.xxx.xxx.xxx:443>. Does look about right?

No that will disable http traffic to the server what distro are u using ?

wintertong 26th March 2009 17:34

arghh ok. sorry what do you mean by distro?

How do I use IP address aliasing?

falko 27th March 2009 14:10

Quote:

Originally Posted by wintertong (Post 177635)
arghh ok. sorry what do you mean by distro?

Debian, Ubuntu, Fedora, CentOS, SUSE, Mandriva, ...


All times are GMT +2. The time now is 06:48.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.