mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #1013] Cannot read property '1' of null #852
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#852
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 @fintechestenberg on GitHub (Apr 12, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1013
Checklist
jc21/nginx-proxy-manager:latestdocker image? yesDescribe the bug
I have configured certbot module to use a diffrent server, (step-ca) hosted internally.
When getting the certificate it produces the error "Certificate is not valid (Cannot read property '1' of null)"
Looking at the log in docker, everything looks good,
/etc/letsencrypt/live/npm-27/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/npm-27/privkey.pem
Your cert will expire on 2021-07-11. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew all of your certificates, run
"certbot renew"
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
But the certificate is not added, looking at detailed view in the browser;
"ValidationError: Certificate is not valid (Cannot read property '1' of null)"
at /app/internal/certificate.js:738:11
at async Promise.all (index 0)
Is the error message which points to this, https://github.com/jc21/nginx-proxy-manager/blob/master/backend/internal/certificate.js#L738
Unfortunatly I do not understand enough about the javascript to understan specifically what is going wrong here.
Either can someone explain what this error means, or if the error text returned can be imporved to provide any info at all?
2.8.1
@thkwag commented on GitHub (Mar 24, 2022):
It fails when subject is empty in fullchain.pem
Just add 'forceCN' parameter to
{step-ca-base-dir}/config/ca.jsonconfiguration file and renew certificateforceCN[*] (https://smallstep.com/docs/step-ca/provisioners#star6): force one of the SANs to become the Common Name, if a common name is not provided.
@github-actions[bot] commented on GitHub (Mar 14, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Apr 25, 2025):
Issue was closed due to inactivity.