[GH-ISSUE #380] Error load certificate lets encrypt #3319

Closed
opened 2026-02-28 11:55:32 +03:00 by kerem · 2 comments
Owner

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 1

for 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'

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 1` for 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'
kerem 2026-02-28 11:55:32 +03:00
Author
Owner

@0xJacky commented on GitHub (May 8, 2024):

Hi, @manustars can you provide the config content of this site? Thanks!

<!-- gh-comment-id:2099936010 --> @0xJacky commented on GitHub (May 8, 2024): Hi, @manustars can you provide the config content of this site? Thanks!
Author
Owner

@0xJacky commented on GitHub (May 8, 2024):

Here is my configuration generated by nginx ui(v2.0.0-beta.23).
image

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

<!-- gh-comment-id:2100709986 --> @0xJacky commented on GitHub (May 8, 2024): Here is my configuration generated by nginx ui(v2.0.0-beta.23). ![image](https://github.com/0xJacky/nginx-ui/assets/13096985/403b197f-1b06-4a0c-9b88-2a12427d0614) First, I obtained a wildcard certificate, then I create a site with TLS encrypted and select that certificate, everything seems to be working correctly.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#3319
No description provided.