Linux 4 All

Best Linux tricks source

Here is how to install a SSL certificate for Apache and Nginx:

1. Apache: edit the virtual host:


SSLEngine On
SSLCertificateFile /etc/pki/tls/certs/site.crt
SSLCACertificateFile /etc/pki/tls/certs/site.ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/site.key

2. Nginx: you need to combine site certificate and CA bundle into one single file. Add those entries to server part of nginx configuration file:

ssl_certificate /etc/pki/tls/certs/site+CA.crt;
ssl_certificate_key /etc/pki/tls/private/site.key;
#ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
#ssl_ciphers "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";
#ssl_prefer_server_ciphers on;

Remember to check ssl keys before restarting nginx or apache.

Display all of the FTP usernames and passwords in Plesk: arrow-right
Next post

arrow-left Change system timezone
Previous post

Leave a Reply

Your email address will not be published. Required fields are marked *