Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th March 2009, 15:58
wintertong wintertong is offline
Junior Member
 
Join Date: Feb 2009
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?
Reply With Quote
Sponsored Links
  #2  
Old 26th March 2009, 16:22
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

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
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 26th March 2009, 16:59
wintertong wintertong is offline
Junior Member
 
Join Date: Feb 2009
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old 26th March 2009, 17:01
wintertong wintertong is offline
Junior Member
 
Join Date: Feb 2009
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think i have to change the virtualhost from <VirtualHost *:80>
to <VirtualHost xxx.xxx.xxx.xxx:443>. Does look about right?
Reply With Quote
  #5  
Old 26th March 2009, 17:02
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

You can assign multiple IP's using IP address aliasing. You then create the virtualhosts each binding to its own address.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #6  
Old 26th March 2009, 17:03
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

Quote:
Originally Posted by wintertong View Post
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 ?
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #7  
Old 26th March 2009, 17:34
wintertong wintertong is offline
Junior Member
 
Join Date: Feb 2009
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

arghh ok. sorry what do you mean by distro?

How do I use IP address aliasing?
Reply With Quote
  #8  
Old 27th March 2009, 14:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
 
Default

Quote:
Originally Posted by wintertong View Post
arghh ok. sorry what do you mean by distro?
Debian, Ubuntu, Fedora, CentOS, SUSE, Mandriva, ...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change ISPConfig apache ssl certificate nandelbosc Installation/Configuration 1 13th February 2009 20:20
SSL for virtual hosts on one certificate rbartz Tips/Tricks/Mods 8 20th November 2007 17:59
Help installing an SSL certificate james@thereidsonline.com Installation/Configuration 1 26th June 2007 18:11
Problems installing NForce4 sound drivers Wraithfire Installation/Configuration 21 16th April 2006 17:30
KErnel not showing all my memory Jorem Kernel Questions 8 13th April 2006 12:59


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


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