mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 16:55:56 +03:00
[GH-ISSUE #380] Error load certificate lets encrypt #3319
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#3319
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 @manustars on GitHub (May 7, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/380
I'm probably the one who isn't very capable. I generated a certificate with lets encrypt and so far everything is ok, I checked that the certificate and the key are actually in the ssl folder and I actually find the fullchain.cer and private.key
the certificate path is /home/manuel/NGINX/NGINX/ssl/*.mydomain.com_mydomain.com_2048/ but I get this error
2024/05/07 23:13:51 [emerg] 258#258: cannot load certificate "/home/manuel/NGINX/NGINX/ssl/\*.mydomain.com_mydomain.com_2048/fullchain.cer": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/home/manuel/NGINX/NGINX/ssl/\*.mydomain.com_mydomain.com_2048/fullchain.cer, r) error:10000080: BIO routines::no such file) nginx: [emerg] cannot load certificate "/home/manuel/NGINX/NGINX/ssl/\*.mydomain.com_marsellihome.com_2048/fullchain.cer": BIO_new_file() failed (SSL: error :80000002:system library::No such file or directory:calling fopen(/home/manuel/NGINX/NGINX/ssl/\*.mydomain.com_mydomain.com_2048/fullchain.cer, r) error:10000080:BIO routines:: no such file) nginx: configuration file /etc/nginx/nginx.conf test failed exit status 1for the path /etc/nginx/nginx.conf does not actually exist
this my docker-compose
version: '3.3'
services:
nginx-ui:
stdin_open: true
tty: true
container_name: nginx-ui
restart: always
environment:
- TZ=Europe/Rome
volumes:
- '/home/manuel/NGINX/NGINX:/etc/nginx'
- '/home/manuel/NGINX/NGINX-UI:/etc/nginx-ui'
- '/var/www:/var/www'
ports:
- 8080:80
- 8443:443
image: 'uozi/nginx-ui:latest'
@0xJacky commented on GitHub (May 8, 2024):
Hi, @manustars can you provide the config content of this site? Thanks!
@0xJacky commented on GitHub (May 8, 2024):
Here is my configuration generated by nginx ui(v2.0.0-beta.23).

First, I obtained a wildcard certificate, then I create a site with TLS encrypted and select that certificate, everything seems to be working correctly.