There is currently 1 post.
Font size: Small - 100% (Default)  Content converter: No conversion
 
Clicks Replies
781 0
nginx配置SSLCertificateChainFile
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 1 Posted at: 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";
Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 781 Replies: 0
Author: 巨大八爪鱼
Last reply: 巨大八爪鱼
Last reply time: 3/20/25 17:17
Announcements