mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #1372] [BUG] Certificate Renewal Error in Nginx UI (JWS verification error) #7883
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#7883
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 @zdv1g on GitHub (Oct 4, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1372
Describe the bug
When trying to renew an SSL certificate via Nginx UI, the renewal process fails with a JWS verification error.
The currently active certificate remains valid, but auto-renewal does not work.
To Reproduce
Steps to reproduce the behavior:
Nginx UI → SSLRenew certificateExpected behavior
The certificate should be successfully renewed through ACME (Let’s Encrypt) without JWS validation errors.
Screenshots
N/A
Info (please complete the following information):
876213ad)Additional context
Error log:
[Error] renew cert error: acme: error: 400 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:malformed :: Unable to validate JWS :: JWS verification error
@0xJacky commented on GitHub (Oct 4, 2025):
The ACME account is associated with more than 6 domains?
@zdv1g commented on GitHub (Oct 4, 2025):
/certificates/acme_users (1 user) -> more 6 domains (cert renew)
Yes, correct.
The ACME account in use is a single account under "ACME User" in Nginx UI, and it manages renewal for more than 6 domains.
All renewals are attempted from this one account.
@zdv1g commented on GitHub (Oct 4, 2025):
Oct 04 13:38:41 NginxUI nginx-ui[130]: 2025-10-04 13:38:41 INFO cert/auto_cert.go:23 AutoCert Worker Started
Oct 04 13:38:41 NginxUI nginx-ui[130]: 2025-10-04 13:38:41 INFO cert/logger.go:72 AutoCert [Nginx UI] Preparing lego configurations
Oct 04 13:38:41 NginxUI nginx-ui[130]: 2025-10-04 13:38:41 INFO cert/logger.go:72 AutoCert [Nginx UI] ACME User: xxxxxx@xxxxxx, Email: xxxxxx@xxxx, CA Dir: https://acme-v02.api.letsencrypt.org/direct>
Oct 04 13:38:41 NginxUI nginx-ui[130]: 2025-10-04 13:38:41 INFO cert/logger.go:72 AutoCert [Nginx UI] Creating client facilitates communication with the CA server
Oct 04 13:38:42 NginxUI nginx-ui[130]: 2025-10-04 13:38:42 INFO cert/logger.go:72 AutoCert [Nginx UI] Setting DNS01 challenge provider
Oct 04 13:38:42 NginxUI nginx-ui[130]: 2025-10-04 13:38:42 INFO cert/logger.go:72 AutoCert [Nginx UI] Setting environment variables
Oct 04 13:38:42 NginxUI nginx-ui[130]: 2025-10-04 13:38:42 INFO cert/logger.go:72 AutoCert 2025/10/04 13:38:42 [INFO] [.xxx.ru] acme: Trying renewal with 1758 hours remaining
Oct 04 13:38:42 NginxUI nginx-ui[130]: 2025-10-04 13:38:42 INFO cert/logger.go:72 AutoCert 2025/10/04 13:38:42 [INFO] [.xxx.ru, xxx.ru] acme: Obtaining bundled SAN certificate
Oct 04 13:38:43 NginxUI nginx-ui[130]: 2025-10-04 13:38:43 INFO cert/logger.go:72 AutoCert [Nginx UI] Environment variables cleaned
Oct 04 13:38:43 NginxUI nginx-ui[130]: 2025-10-04 13:38:43 ERROR cert/logger.go:85 AutoCert renew cert error: acme: error: 400 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:>
Oct 04 13:38:43 NginxUI nginx-ui[130]: 2025-10-04 13:38:43 INFO cert/logger.go:72 AutoCert [Nginx UI] Preparing lego configurations
@0xJacky commented on GitHub (Oct 5, 2025):
I'm not quite sure if this is a new policy by Let's Encrypt. Could you try creating a new ACME account with a different email address and then use it to reapply for the certificate?
@zdv1g commented on GitHub (Oct 5, 2025):
The certificate was created if I created a new user. Now look what a problem, when updating in automatic mode, it uses the old data (of the old Acme user)
however, the certificate renewal is successful
@0xJacky commented on GitHub (Oct 5, 2025):
Fixed in
3930aaf, you can try to upgrade nginx-ui to the latest dev version to test. Thank you.@zdv1g commented on GitHub (Oct 5, 2025):
Okay, I'm waiting for a new release for automatic updates. I've reopened it if anything happens.