Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error load certificate lets encrypt #380

Closed
manustars opened this issue May 7, 2024 · 2 comments
Closed

Error load certificate lets encrypt #380

manustars opened this issue May 7, 2024 · 2 comments
Labels
bug Something isn't working question Further information is requested

Comments

@manustars
Copy link

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'

@manustars manustars added the bug Something isn't working label May 7, 2024
@0xJacky
Copy link
Owner

0xJacky commented May 8, 2024

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

@0xJacky
Copy link
Owner

0xJacky commented 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.

@0xJacky 0xJacky added the question Further information is requested label May 8, 2024
Repository owner locked and limited conversation to collaborators May 21, 2024
@0xJacky 0xJacky converted this issue into discussion #401 May 21, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working question Further information is requested
Projects
Status: Done
Development

No branches or pull requests

2 participants