Settings | Sign in | Sign up

The author has 1 post.

nginx配置SSLCertificateChainFile

Floor 1 巨大八爪鱼 3/20/25 17:17
nginx只有ssl_certificate这一个指令,不像apache那样可以同时配置SSLCertificateFile和SSLCertificateChainFile两个指令。
把SSLCertificateFile证书和SSLCertificateChainFile证书用cat命令合并成一本证书。注意先后顺序。
cat xxx.crt xxx.ca-bundle > combined_for_nginx.crt

修改合并后的combined_for_nginx.crt证书文件。
把里面连成一行的-----END CERTIFICATE----------BEGIN CERTIFICATE-----拆开:
-----END CERTIFICATE-----

-----BEGIN CERTIFICATE-----

将合并后的证书文件写入nginx配置中。
ssl_certificate "/xxx/combined_for_nginx.crt";

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
©2010-2025 Purasbar Ver3.0 [Mobile] [Desktop]
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported license.