How to assign a SSL certificate using apache on linux

Discussion in 'HOWTO-Related Questions' started by wintertong, Mar 26, 2009.

  1. wintertong

    wintertong New Member

    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?
     
  2. topdog

    topdog New Member HowtoForge Supporter

    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
     
  3. wintertong

    wintertong New Member

    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
     
  4. wintertong

    wintertong New Member

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

    topdog New Member HowtoForge Supporter

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

    topdog New Member HowtoForge Supporter

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

    wintertong New Member

    arghh ok. sorry what do you mean by distro?

    How do I use IP address aliasing?
     
  8. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

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

Share This Page