no way to compare when less than two revisions

Differences

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


Previous revision
fuss:nginx [2022/04/19 08:28] (current) – external edit 127.0.0.1
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: 2022/04/19 08:28 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


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