mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 16:55:56 +03:00
[GH-ISSUE #322] Let's encypt certifitactes not working in firefox OCSP fail #4609
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#4609
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zero8d on GitHub (Feb 29, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/322
Let's encypt certifitactes not working in firefox OCSP fail
@0xJacky commented on GitHub (Feb 29, 2024):
Can you provide more details about this issue, like the configuration file of your site and the reproduce steps of this problem.
@jearton commented on GitHub (Mar 4, 2024):
我也遇到了,在firefox里首次访问会有问题,刷新一下又好了。可以用无痕模式稳定复现,OCSP这里出了问题,不知道怎么解决。
Secure Connection Failed
An error occurred during a connection to admin.creatly.team. A required TLS feature is missing.
Error code: MOZILLA_PKIX_ERROR_REQUIRED_TLS_FEATURE_MISSING
点一下 try again 就好了
@jearton commented on GitHub (Mar 4, 2024):
@0xJacky commented on GitHub (Mar 4, 2024):
This issue may cause by certificate "must staple", introduced in
1c4fb7afcc.I think I should a switcher in frontend for user to chose whether they need "must staple" or not.
https://community.letsencrypt.org/t/ssl-cert-issue-mozilla-pkix-error/194269
@jearton commented on GitHub (Mar 4, 2024):
我配置了 ssl_stapling 的,就是首次访问有问题,第2次就好了。因为首次访问,nginx会去异步请求ocsp装订信息并缓存到内存里,这里有一个异步时差,导致首次访问返回给firefox浏览器没有ocsp信息,第2次访问就有了。
但是chrome为什么不报错呢,不知道
@jearton commented on GitHub (Mar 4, 2024):
我已经被这个问题困扰了很久,貌似无解,期待大神找到解决方法
@jearton commented on GitHub (Mar 4, 2024):
我有几个很挫的解决方案,仅供参考:
在 Nginx 中配置
ssl_stapling on并 reload 后,Nginx 并不会马上获取 OCSP Response,它要等第一个请求过来,再发起异步 OCSP 请求,所以刚开始几个响应,很可能不带 OCSP Stapling。另外,有时候由于 OCSP 域名无法解析,或者服务器无法访问造成 OCSP Response 获取失败,也会导致 OCSP Stapling 无法生效。如何在 Nginx 启动时就进行 OCSP 装订?
相关问答
解决方案
两种方案:
@ashkov commented on GitHub (Mar 14, 2024):
Please, help, what can I do to request certificate right now without staple, by hands?
I can setup NGINX, but I must copy cert to MailCow, and It does not support staple at all.
So my problem - I can't use IMAPs right now after update.
@0xJacky commented on GitHub (Mar 14, 2024):
Hi @ashkov, I just push a new commit which revert 1c4fb7a, and please wait for this action complete then you can try to reinstall nginx-ui.
@ashkov commented on GitHub (Mar 14, 2024):
I use docker image
@0xJacky commented on GitHub (Mar 14, 2024):
Try to pull this image: uozi/nginx-ui: v2.0.0-beta.18-patch.1 or uozi/nginx-ui:latest
@l333l commented on GitHub (Dec 8, 2024):
这个我今天也遇到过这个问题,我是通过docker compose部署,下面是我解决办法,
部署前要映射 /var/cache/nginx这个目录
然后就是
sudo touch /var/cache/nginx/ocsp.stapling #这里是你服务器实际的路径
创建ocsp.stapling
sudo chown -R nginx:nginx /var/cache/nginx #服务器路径
sudo chmod -R 755 /var/cache/nginx #服务器路径
设置权限
openssl ocsp -issuer /root/中间证书.pem -cert /root/证书.crt -url http://ocsp.responder.com -respout /var/cache/nginx/ocsp.stapling
-issuer 后面换成域名证书的中间证书的路径(服务器的路径,不是docker里面的)
-cert 后面换成域名证书的路径
/var/cache/nginx/ocsp.stapling 换成服务器实际的路径,就是你部署映射的路径
http://ocsp.responder.com 换成实际的OCSP响应者的URL
要获取OCSP响应者(Online Certificate Status Protocol)的URL,您可以按照以下步骤进行:
(就是点浏览器那个🔒,然后看自己的证书,每个都点开来看,有看到OCSP url 类似字眼,就是URL了)
改好你的信息,然后运行
然后ocsp.stapling 这个大小就会有变化,就成功了,然后再通过按页面按nginx重启或者重置 都成功了 ,就没有报错了
这是我配置的 我是直接配置在nginx.conf文件里的
配置 SSL Stapling