ileonard
Goto Top

NGINX Proxy Manager erstellt keine Lets Encrypt Zertifikate

Guten Abend,

ich habe in Docker den Nginx Proxy Manager aufgesetzt, läuft soweit auch alles, allerdings bekomme ich bei der Anforderung eines neuen Zertifikats einmal einen internal error.
Wenn ich das Zertifikat unter dem Reiter Certificates erstelle bekomme ich das hier:
 
Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-5" --agree-tos --authenticator webroot --email "meine-mail@mich.de" --preferred-challenges "dns,http" --domains "meine-Domain.de"   
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

    at ChildProcess.exithandler (node:child_process:402:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5) 

Im docker Log habe ich das hier stehen:
[12/17/2022] [5:30:47 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[12/17/2022] [5:30:49 PM] [Express  ] › ⚠  warning   Command failed: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-17" --agree-tos --authenticator webroot --email "meine-mail" --preferred-challenges "dns,http" --domains "meine Domain "   
Traceback (most recent call last):
  File "/usr/local/bin/certbot", line 5, in <module>  
    from certbot.main import main
  File "/usr/local/lib/python3.7/dist-packages/certbot/main.py", line 6, in <module>  
    from certbot._internal import main as internal_main
  File "/usr/local/lib/python3.7/dist-packages/certbot/_internal/main.py", line 28, in <module>  
    from certbot import crypto_util
  File "/usr/local/lib/python3.7/dist-packages/certbot/crypto_util.py", line 42, in <module>  
    from certbot import interfaces
  File "/usr/local/lib/python3.7/dist-packages/certbot/interfaces.py", line 21, in <module>  
    from acme.client import ClientBase
ImportError: cannot import name 'ClientBase' from 'acme.client' (/usr/local/lib/python3.7/dist-packages/acme/client.py)   

Wenn ich die Test Server Reachability Funktion anwende bekomme ich das hier
Communication with the API failed, is NPM running correctly?

Hat hier jemand eine Idee?

VG Leonard

Content-Key: 4999023172

Url: https://administrator.de/contentid/4999023172

Printed on: April 27, 2024 at 10:04 o'clock

Member: michi1983
michi1983 Dec 17, 2022 at 18:29:19 (UTC)
Goto Top
Hallo,

ist der Proxy Manager denn von außen über die Domain die du beim let’s encrypt Prozess angibst erreichbar?

Gruß
Member: ILeonard
ILeonard Dec 17, 2022 at 18:42:36 (UTC)
Goto Top
Hi,

Ja, bin schon beim Domain aufrufen auf meine Nextcloud gekommen, habe Port 80 und 443 frei gegeben. Port 81 ist nicht freigegeben.
Member: MirkoKR
MirkoKR Dec 17, 2022 at 19:04:50 (UTC)
Goto Top
Aber du schreibst ja "NGINX Proxy Manager" - sicher, das LetsEncrypt deinen primären Server wie für das Zertifikat nötig, errreichen kann?

Ein Proxy ist in der Regel keine direkte Verbindung ...
.
Member: ILeonard
ILeonard Dec 17, 2022 at 19:31:59 (UTC)
Goto Top
Muss ich auf dem Ziel Server als z.B. den von der Nextcloud letsencrypt erstellen?
Verstehe die Frage gerade nicht ganz, bzw. wie kann ich das am besten prüfen?
Member: MirkoKR
MirkoKR Dec 17, 2022 at 19:36:38 (UTC)
Goto Top
Ich bin da nicht firm drin, hab aber mal nach "letsencrypt nginx proxy" gesucht - offenbar ein Thema ..

https://www.linuxserver.io/blog/2019-04-25-letsencrypt-nginx-starter-gui ...
Member: ILeonard
Solution ILeonard Dec 17, 2022 at 20:49:19 (UTC)
Goto Top
Hab es, ich sollte eben auch den Port 80 freigegeben xD

Danke euch dennoch.

Schönes Wochenende und Frohe Weihnachten face-smile
Member: MirkoKR
MirkoKR Dec 17, 2022 at 20:51:35 (UTC)
Goto Top
Schön, "Gelöst" hilft anderen ;- )