How to Configure SSL Certificate in Apache Web Server

This article will show how you can enable ssl on you Apache web server container.

ServerAdmin support@domain.com
ServerName domain.com
DocumentRoot /var/www/html/domain.com
<Directory "/var/www/html/domain.com">
Options FollowSymLinks MultiViews
AllowOverride All
#Allow from all
<Directory "/var/www/html/domain.com/wp-content/uploads/">
<Files "*.php">
Order Deny,Allow
Deny from All
ErrorLog logs/domain.com_ssl_error.log
TransferLog logs/domain.com_ssl_access.log
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
SSLProtocol -SSLv2 -SSLv3 +TLSv1 +TLSv1.1 +TLSv1.2
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLHonorCipherOrder on
SSLCertificateFile /etc/httpd/ssl/ssl-bundle_domain.com.crt
SSLCertificateKeyFile /etc/httpd/ssl/ssl_domain.com.key
SSLCertificateChainFile /etc/httpd/ssl/www_domain.com.crt_trustchain2.pem
SSLCACertificateFile /etc/httpd/ssl/bundle.crt
# cat www_domain.com.crt COMODORSADomainValidationSecureServerCA.crt AddTrustExternalCARoot.crt >> www_domain.com.crt_trustchain2.pem
# cat www_domain.com.crt COMODORSADomainValidationSecureServerCA.crt COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt > ssl-bundle_domain.com.crt
# mv domain.com.key ssl_domain.com.key
# cp -rp www_domain.com.crt_trustchain2.pem /etc/httpd/ssl/
# cp -rp ssl-bundle_domain.com.crt /etc/httpd/ssl/
# cp -rp ssl_domain.com.key /etc/httpd/ssl/