[GH-ISSUE #368] Impossible to get Let's Encrypt certificate http/dns : error error read certificate: open : no such file or directory #205

Closed
opened 2026-02-26 12:07:38 +03:00 by kerem · 2 comments
Owner

Originally created by @PastaGringo on GitHub (May 2, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/368

Describe the bug
I just installed nginx-ui with docker.
I want to create my first reverse proxy for nginx-ui (nui.domain.tld -> IP:80) but I can't get a valid ssl Let's Encrypt certificate.
domain.tld is my domain where I set DNS A records (domain + *.domain) pointing to my external VPS IP address.

To Reproduce
Steps to reproduce the behavior:

  • Manages Sites > Add Site:
    Configuration name: basic
    Listen: 80
    server_name: nui.domain.tld

  • Next
    Enable TLS
    Do you want to enable TLS popup: OK
    Encrypt website with Let's Encrypt
    Challenge method: HTT01
    Key Tape: RSA2048
    ACME user: System Initial User (already setup my Let's Encrypt account)

  • Next

The popup opens and nothing happen after Getting the certificate, please wait...

Expected behavior
The TLS certificate is generated from Let's Encrypt and set to server nui.domain.tld.

Screenshots
Capture d’écran 2024-05-02 à 14 23 23

Info (please complete the following information):

  • Server OS: Ubuntu 22.04.3 LTS
  • Server Arch: x64
  • Nginx UI Version: 2.0.0-beta.20 (129)
  • Your Browser: Chrome
  • Docker: 26.1.1
  • Docker compose: 2.27.0

Additional context
Logs from docker logs -f nginx-ui:

2024/05/02 14:23:18 /home/runner/work/nginx-ui/nginx-ui/model/cert.go:57
[5.409ms] [rows:1] INSERT INTO `certs` (`created_at`,`updated_at`,`deleted_at`,`name`,`domains`,`filename`,`ssl_certificate_path`,`ssl_certificate_key_path`,`auto_cert`,`challenge_method`,`dns_credential_id`,`acme_user_id`,`key_type`,`log`,`resource`) VALUES ("2024-05-02 14:23:18.298","2024-05-02 14:23:18.298",NULL,"basic",NULL,"basic","","",0,"",0,0,"2048","",NULL) RETURNING `id`
2024-05-02 14:23:18     ERROR   certificate/issue.go:88 get certificate info error error read certificate: open : no such file or directory
[GIN] 2024/05/02 - 14:23:18 | 200 |   58.009098ms |   92.184.107.24 | GET      "/api/domain/basic/cert?token=MyToken==/"

docker-compose.yml:

  nginx-ui:
    stdin_open: true
    tty: true
    container_name: nginx-ui
    restart: always
    environment:
      - TZ=Europe/Paris
    volumes:
      - './nginx-ui/nginx:/etc/nginx'
      - './nginx-ui/nginx-ui:/etc/nginx-ui'
      - '/var/www:/var/www'
    ports:
      - 80:80
      - 443:443
    image: 'uozi/nginx-ui:latest'
Originally created by @PastaGringo on GitHub (May 2, 2024). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/368 **Describe the bug** I just installed nginx-ui with docker. I want to create my first reverse proxy for nginx-ui (nui.domain.tld -> IP:80) but I can't get a valid ssl Let's Encrypt certificate. domain.tld is my domain where I set DNS A records (domain + *.domain) pointing to my external VPS IP address. **To Reproduce** Steps to reproduce the behavior: - Manages Sites > Add Site: Configuration name: basic Listen: 80 server_name: nui.domain.tld - Next Enable TLS ✅ Do you want to enable TLS popup: OK Encrypt website with Let's Encrypt ✅ Challenge method: HTT01 Key Tape: RSA2048 ACME user: System Initial User (already setup my Let's Encrypt account) - Next The popup opens and nothing happen after `Getting the certificate, please wait...` **Expected behavior** The TLS certificate is generated from Let's Encrypt and set to server nui.domain.tld. **Screenshots** <img width="628" alt="Capture d’écran 2024-05-02 à 14 23 23" src="https://github.com/0xJacky/nginx-ui/assets/16828964/87c40827-df2a-4cfb-a6f8-0a65969d6381"> **Info (please complete the following information):** - Server OS: Ubuntu 22.04.3 LTS - Server Arch: x64 - Nginx UI Version: 2.0.0-beta.20 (129) - Your Browser: Chrome - Docker: 26.1.1 - Docker compose: 2.27.0 **Additional context** Logs from `docker logs -f nginx-ui`: ``` 2024/05/02 14:23:18 /home/runner/work/nginx-ui/nginx-ui/model/cert.go:57 [5.409ms] [rows:1] INSERT INTO `certs` (`created_at`,`updated_at`,`deleted_at`,`name`,`domains`,`filename`,`ssl_certificate_path`,`ssl_certificate_key_path`,`auto_cert`,`challenge_method`,`dns_credential_id`,`acme_user_id`,`key_type`,`log`,`resource`) VALUES ("2024-05-02 14:23:18.298","2024-05-02 14:23:18.298",NULL,"basic",NULL,"basic","","",0,"",0,0,"2048","",NULL) RETURNING `id` 2024-05-02 14:23:18 ERROR certificate/issue.go:88 get certificate info error error read certificate: open : no such file or directory [GIN] 2024/05/02 - 14:23:18 | 200 | 58.009098ms | 92.184.107.24 | GET "/api/domain/basic/cert?token=MyToken==/" ``` docker-compose.yml: ``` nginx-ui: stdin_open: true tty: true container_name: nginx-ui restart: always environment: - TZ=Europe/Paris volumes: - './nginx-ui/nginx:/etc/nginx' - './nginx-ui/nginx-ui:/etc/nginx-ui' - '/var/www:/var/www' ports: - 80:80 - 443:443 image: 'uozi/nginx-ui:latest' ```
kerem 2026-02-26 12:07:38 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

Sorry, I'll fix it later.

<!-- gh-comment-id:2090399816 --> @0xJacky commented on GitHub (May 2, 2024): Sorry, I'll fix it later.
Author
Owner

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

Please try v2.0.0-beta.21, it should be fixed now.

<!-- gh-comment-id:2090441731 --> @0xJacky commented on GitHub (May 2, 2024): Please try v2.0.0-beta.21, it should be fixed now.
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#205
No description provided.