Results 1 to 1 of 1

Thread: How do I install a SSL Certificate on my VPS? (without cPanel)

  1. #1

    Default How do I install a SSL Certificate on my VPS? (without cPanel)

    If you are NOT running cPanel on your VPS (for advanced users):

    1. Create the following directories if they don't exist:
      /etc/ssl/certs -- used to store the certificate files
      /etc/ssl/private -- used to store the private keys
      To create these directories run:
      Code:
      mkdir /etc/ssl
      mkdir /etc/ssl/certs
      mkdir /etc/ssl/private
      chmod 700 /etc/ssl/private
    2. copy the certificate file to /etc/ssl/certs
    3. copy the key file to /etc/ssl/private
    4. edit the apache configuration file, normally it's in this location:
      Code:
      /etc/httpd/conf/httpd.conf
    5. create a virtual host for your site by adding the following section to your apache configuration file:

      Code:
      <VirtualHost 123.123.123.123:443>
              ServerName domain.com
              ServerAlias www.domain.com
              SSLEngine on
              SSLCertificateFile /etc/ssl/certs/cert_file.crt
              SSLCertificateKeyFile /etc/ssl/private/key_file.key
      		SSLCACertificateFile /etc/ssl/certs/intermediate_cert_file.cabundle
              <Directory /var/www/html/>
                      AllowOverride All
              </Directory>
              DocumentRoot /var/www/html/
              SSLProtocol +SSLv3 +TLSv1
              SSLCipherSuite RSA:!EXP:!NULL:+HIGH:-MEDIUM:-LOW
      </VirtualHost>
      Replace 123.123.123.123 with your static IP for this site. Change domain.com and www.domain.com to your domain name. Adjust the cert and key file names to what you have named them. Set your document root to the location of your site.
    6. Save the file and restart apache
    7. If you have any errors in your httpd.conf apache will let you know when you attempt to restart.
    Last edited by Max; January 19th, 2012 at 03:16 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •