To install the certificate, a Root SSL is needed, a Intermediate SSL, and domain/page SSL.
Combine 3 certificates in one file
Note: There is more than one method to combine it. Before you start, make sure which file is the Root, Intermediate and domain SSL. The file names used here are just examples.
1. If you have the individual certificate files (eg. AddTrustExternalCARoot.crt):
A) using the 'cat' command (Unix and Unix-like Operating Systems),
- Syntax: cat Device/Entity Cert Intermediates Root >> ssl-bundle.crt
- example: cat www_yourdomain_com.crt IntermediateCA.crt CARoot.crt >> ssl-bundle.crt
B) using a text editor:
- copy files in the following order: domain/page SSL, Intermediate, Root.
- save file as ssl-bundle.crt
2. If you have a .crt and .ca-bundle files:
A) use a cat command (Unix and Unix-like Operating Systems),
- Syntax: cat Device/Entity Cert Bundle
- example: cat www_yourdomain_com.crt www_yourdomain_com.ca-bundle >> ssl-bundle.crt
B) using a text editor:
- copy the content of www_yourdomain_com.crt before the content of www_yourdomain_com.ca-bundle
- save it as ssl-bundle.crt
Host configuration
Move the ssl-bundle.crt file to directory with all certificates files, e.g. /etc/ssl/certs/
Create or modify website site configuration file in /etc/nginx/sites-available/ or /usr/local/nginx/sites-available/
Ensure that the following options are set:
ssl option
listen with 443,
the location of SSL: ssl_certificate
the location of private key: ssl_certificate_key
* Optional: you can set the following:
-- ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM; #Disables all weak ciphers
-- ssl_protocols SSLv3 TLSv1; #enables SSLv3/TLSv1, but not SSLv2 which is weak and should no longer be used.
Example of an SSL configured Virtual Host:
server {
listen 443;
ssl on;
ssl_certificate /etc/ssl/certs/mysite_com.crt;
ssl_certificate_key /etc/ssl/private/mysite.key;
#enables SSLv3/TLSv1, but not SSLv2 which is weak and should no longer be used.
ssl_protocols SSLv3 TLSv1;
#Disables all weak ciphers
ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM;
server_name mysite.com;
}
cyber_Folks S.A. – Cookie settings
Do you like good cookies? We too! Some cookies are required for the website to function properly. Also accept additional cookies related to service performance, social networking and marketing. Cookies are also used to personalize ads. Thanks to them, you will get the best experience of our website, which we are constantly improving. The consent granted voluntarily may be withdrawn or modified at any time. More information about the cookies used can be found in our privacy policy. If you prefer to specify your preferences precisely - see the types of cookies below.