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:
      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:
    5. create a virtual host for your site by adding the following section to your apache configuration file:

              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
              DocumentRoot /var/www/html/
              SSLProtocol +SSLv3 +TLSv1
              SSLCipherSuite RSA:!EXP:!NULL:+HIGH:-MEDIUM:-LOW
      Replace with your static IP for this site. Change and 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 02: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