Install SSL certificate for FileCloud on Ubuntu
Add SSL support in Apache. (Enable SSL only if it is not enabled already)
sudo a2enmod ssl
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
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.phpDocumentRoot /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.crtSSLCertificateChainFile /etc/apache2/ssl/server-ca.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
</VirtualHost>
Ensure that /etc/apache2/ports.conf has Listen 443 (Should already be there)
Restart Apache.
sudo /etc/init.d/apache2 restart
Install SSL certificate for FileCloud on CentOS
Add SSL support in Apache. (Enable SSL only if it is not enabled already)
yum -y install mod_ssl
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
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 valuesSSLEngine on
SSLCertificateFile /etc/httpd/ssl/server.crt
SSLCertificateKeyFile /etc/httpd/ssl/server.key
SSLCertificateChainFile /etc/httpd/ssl/server-ca.crt
Restart Apache.
service httpd restart