Differences

This shows you the differences between two versions of the page.

Link to this comparison view

fuss:nginx [2017/07/01 18:04] (current)
office created
Line 1: Line 1:
 +====== Intermediate SSL Certificates ======
 +
 +Apache allows setting the intermediate SSL certificate using the ''​SSLCertificateChainFile''​ directive but nginx serves certificates configurable using only the keys:
 +<​code>​
 +        ssl_certificate /​etc/​nginx/​ssl/​certificate.crt;​
 +        ssl_certificate_key /​etc/​nginx/​ssl/​private.key;​
 +</​code>​
 +
 +in order to create the certificate,​ the individual certificates:​
 +  - the site certificate
 +  - the intermediate certificate
 +  - the root certificate
 +
 +have to be concatenated,​ in that order to a separate file ''​chain.pem'':​
 +<code bash>
 +cat site.crt intermediate.crt root.crt > chain.pem
 +</​code>​
 +
 +that will then be referenced in the nginx configuration file:
 +<​code>​
 +        ssl_certificate /​etc/​nginx/​ssl/​chain.pem;​
 +        ssl_certificate_key /​etc/​nginx/​ssl/​private.key;​
 +</​code>​
 +
 +Note that some certificates do not include newlines at the end of the file such that you may have to edit the certificate manually such that all blocks follow each other:
 +<​code>​
 +-----BEGIN CERTIFICATE-----
 +...
 +-----END CERTIFICATE-----
 +-----BEGIN CERTIFICATE-----
 +...
 +-----END CERTIFICATE-----
 +</​code>​
 +
  

fuss/nginx.txt ยท Last modified: 2017/07/01 18:04 by office

Access website using Tor Access website using i2p


For the copyright, license, warranty and privacy terms for the usage of this website please see the license, privacy and plagiarism pages.