Difference between revisions of "Installing SSL certificate in Apache"
m |
m |
||
Line 1: | Line 1: | ||
<yambe:breadcrumb>Security_tips|Security tips</yambe:breadcrumb> | <yambe:breadcrumb self="Install SSL certificate in Apache">Security_tips|Security tips</yambe:breadcrumb> | ||
<yambe:breadcrumb>Apache web server configuration|Apache web server configuration</yambe:breadcrumb> | <yambe:breadcrumb self="Install SSL certificate in Apache">Apache web server configuration|Apache web server configuration</yambe:breadcrumb> | ||
=Install SSL certificate in apache= | |||
For installation of certificate in apache use following steps: | For installation of certificate in apache use following steps: | ||
# Copy all (certificate, key, CA bundle) to /etc/httpd/conf folder | # Copy all (certificate, key, CA bundle) to /etc/httpd/conf folder | ||
Line 41: | Line 14: | ||
=Securing Apache SSL configuration= | |||
Default SSL configuration of apache is vulnerable to many attacks. We can improve apache SSL configuration as follows: | Default SSL configuration of apache is vulnerable to many attacks. We can improve apache SSL configuration as follows: | ||
Line 52: | Line 25: | ||
#::In case of Virtualhost '<tt>SSLEngine On</tt>' line is also required. | #::In case of Virtualhost '<tt>SSLEngine On</tt>' line is also required. | ||
#Check ranking of HTTPS security using https://www.ssllabs.com/ssltest/index.html | #Check ranking of HTTPS security using https://www.ssllabs.com/ssltest/index.html | ||
Steps learned from https://www.sslshopper.com/article-how-to-disable-weak-ciphers-and-ssl-2.0-in-apache.html | Steps learned from https://www.sslshopper.com/article-how-to-disable-weak-ciphers-and-ssl-2.0-in-apache.html | ||
Line 57: | Line 32: | ||
<yambe:breadcrumb>Security_tips|Security tips</yambe:breadcrumb> | <yambe:breadcrumb self="Install SSL certificate in Apache">Security_tips|Security tips</yambe:breadcrumb> | ||
<yambe:breadcrumb>Apache web server configuration|Apache web server configuration</yambe:breadcrumb> | <yambe:breadcrumb self="Install SSL certificate in Apache">Apache web server configuration|Apache web server configuration</yambe:breadcrumb> |
Revision as of 11:07, 17 August 2018
<yambe:breadcrumb self="Install SSL certificate in Apache">Security_tips|Security tips</yambe:breadcrumb> <yambe:breadcrumb self="Install SSL certificate in Apache">Apache web server configuration|Apache web server configuration</yambe:breadcrumb>
Install SSL certificate in apache
For installation of certificate in apache use following steps:
- Copy all (certificate, key, CA bundle) to /etc/httpd/conf folder
- chmod 400 ssl.key
- Edit /etc/httpd/conf.d/ssl.conf and replace appropriate values. Following three values need to be updated:
- SSLCertificateFile /etc/httpd/conf/ssl.pem
- SSLCertificateKeyFile /etc/httpd/conf/ssl.key
- SSLCACertificateFile /etc/httpd/conf/ca-bundle.pem
- Restart apache and verify that certificate is working as expected.
Securing Apache SSL configuration
Default SSL configuration of apache is vulnerable to many attacks. We can improve apache SSL configuration as follows:
- Edit /etc/httpd/conf/ssl.conf and replace/insert following two values
- SSLProtocol all -SSLv2 -SSLv3
- SSLHonorCipherOrder on
- SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS"
-
- In case of Virtualhost 'SSLEngine On' line is also required.
- Check ranking of HTTPS security using https://www.ssllabs.com/ssltest/index.html
Steps learned from https://www.sslshopper.com/article-how-to-disable-weak-ciphers-and-ssl-2.0-in-apache.html
<yambe:breadcrumb self="Install SSL certificate in Apache">Security_tips|Security tips</yambe:breadcrumb> <yambe:breadcrumb self="Install SSL certificate in Apache">Apache web server configuration|Apache web server configuration</yambe:breadcrumb>