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 '' | ||
+ | < | ||
+ | ssl_certificate / | ||
+ | ssl_certificate_key / | ||
+ | </ | ||
+ | |||
+ | in order to create the certificate, | ||
+ | - the site certificate | ||
+ | - the intermediate certificate | ||
+ | - the root certificate | ||
+ | |||
+ | have to be concatenated, | ||
+ | <code bash> | ||
+ | cat site.crt intermediate.crt root.crt > chain.pem | ||
+ | </ | ||
+ | |||
+ | that will then be referenced in the nginx configuration file: | ||
+ | < | ||
+ | ssl_certificate / | ||
+ | ssl_certificate_key / | ||
+ | </ | ||
+ | |||
+ | 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: | ||
+ | < | ||
+ | -----BEGIN CERTIFICATE----- | ||
+ | ... | ||
+ | -----END CERTIFICATE----- | ||
+ | -----BEGIN CERTIFICATE----- | ||
+ | ... | ||
+ | -----END CERTIFICATE----- | ||
+ | </ | ||
+ | |||