Nginx 无法验证指定证书的 CA 信息
本文最后更新于524 天前,其中的信息可能已经过时,如有错误请发送邮件到3260245294@qq.com

错误信息

更改完 nginx 配置文件后进行测试,随即输出以下内容。

# nginx -t
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/path/to/your/domain.crt"
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

该问题是因为某些 CA 没有被所有平台识别而导致的。

解决方法

你可以选择以下列表中的方法,但考虑到安全问题,推荐使用方法2。

  1. 关闭 ssl_stapling
  2. 指定 nginx 信任证书链 (包含 CA 等证书)
  3. 下载 CA 证书并添加至系统信任

以下为方法2的部分配置。

ssl_certificate /path/to/your/domain.crt;
ssl_trusted_certificate /path/to/your/domain-ca-bundle;
ssl_certificate_key /path/to/your/domain.key;
如果觉得本文对您有所帮助,可以支持下博主,一分也是缘
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇