Skip to end of metadata
Go to start of metadata

Install SSL certificate for FileCloud on Ubuntu

 

  1. Add SSL support in Apache. (Enable SSL only if it is not enabled already)

    sudo a2enmod ssl



  2. Copy the SSL certificate provided by your certification provider and SSL private key file to the apache directory. The certificate file is renamed as server.crt and intermediate chain file renamed to server-ca.crt and private key file is renamed as server.key

    $ sudo mkdir -p /etc/apache2/ssl

    $ sudo cp server.crt /etc/apache2/ssl

    $ sudo cp server-ca.crt /etc/apache2/ssl 

    $ sudo cp server.key /etc/apache2/ssl 



  3. Modify your webserver configuration (/etc/apache2/sites-enabled/000-Default) to use the issued ssl certificate.  (NOTE: The ServerName must match the server name in the SSL certificate)

    <VirtualHost *:443>

    # Admin email, Server Name (domain name) and any aliases
    ServerAdmin support@xyz.com
    ServerName server1.xyz.com

    # Index file and Document Root (where the public files are located)
    DirectoryIndex index.php

    DocumentRoot /var/www
    <Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    </Directory>


    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/access.log combined


    SSLEngine On
    SSLCertificateFile /etc/apache2/ssl/server.crt

    SSLCertificateChainFile /etc/apache2/ssl/server-ca.crt

    SSLCertificateKeyFile /etc/apache2/ssl/server.key

     

    </VirtualHost>

     


  4. Ensure that /etc/apache2/ports.conf has Listen 443 (Should already be there)

  5. Restart Apache.

    sudo /etc/init.d/apache2 restart

     

Install SSL certificate for FileCloud on CentOS

 

  1. Add SSL support in Apache. (Enable SSL only if it is not enabled already)

    yum -y install mod_ssl



  2. Copy the SSL certificate provided by your certification provider and SSL private key file to the apache directory. The certificate file is renamed as server.crt and chain file renamed to server-ca.crt and private key file is renamed as server.key

    $ mkdir -p /etc/httpd/ssl

    $ cp server.crt /etc/httpd/ssl # site certificate file

    $ cp server-ca.crt /etc/httpd/ssl  #site certificate's certifying authority file

    $ cp server.key /etc/httpd/ssl  # private key matching the site certificate



  3. Modify your webserver configuration (/etc/httpd/conf.d/ssl.conf) to use the issued ssl certificate.  
     - Update the ServerName value to match the server name in the SSL certificate
        ServerName server1.xyz.com
     - Add/Update the following values

    SSLEngine on

    SSLCertificateFile /etc/httpd/ssl/server.crt

    SSLCertificateKeyFile /etc/httpd/ssl/server.key

    SSLCertificateChainFile /etc/httpd/ssl/server-ca.crt

     


  4. Restart Apache.

    service httpd restart

     

  • No labels