-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
DietPi-LetsEncrypt | Migrate from webroot authentication back to Apache/Nginx plugin #3111
Comments
@Phil1988 Certbot requires port 80 to use the General convention to force HTTPS is to set a HTTP (port 80) => HTTPS (port 443) redirect. If you did not chose this within DietPi-LetsEncrypt before, on Apache do:
Having Pi-hole blocking page available on webroot is default/expected. If this is really serviced via HTTP (instead of expected HTTPS) depends on how you blocked HTTP/configured Apache. |
@MichaIng : Thanks a lot for your fast reply. My port 80 is forwardeds to SSL as I have access from the internet. (and get the https:// page back). (also a quick check if HSTS to [On] on Letsencrypt could solve the issue didnt change anything) my /etc/apache2/sites-available/000-default.conf looks like this
in the letsencrypt logs (/var/log/letsencrypt/letsencrypt.log) I can see:
I thought it should be apache instead of nginx? on the renewal via the dietpi-launcher -> Letsencrypt, I can see I am still having no idea why the renewal process got broken. Could this problem also come from changing from IP4->IP6? Could I try to "delete" the letzencrypt program and install it again via the dietpi-software? |
@Phil1988
That is the ACME server, not your webserver 😉. As long as you can access to your webserver by entering the bare domain (that you used for the certificate) into any web browser with Please verify the following:
|
@MichaIng
Website Text in FireFox (german)Kein Verbindungsversuch unternommen: Mögliches SicherheitsproblemFirefox hat ein Problem erkannt und my.domain.de nicht aufgerufen. Entweder ist die Website falsch eingerichtet oder Datum und/oder Uhrzeit auf diesem Computer sind nicht korrekt. Das Zertifikat der Website ist wahrscheinlich abgelaufen, weshalb Firefox keine verschlüsselte Verbindung aufbauen kann. Was können Sie dagegen tun? my.domain.de verwendet eine Sicherheitstechnologie namens "HTTP Strict Transport Security (HSTS)", durch welche Firefox nur über gesicherte Verbindungen mit der Website verbinden darf. Daher kann keine Ausnahme für die Website hinzugefügt werden. Datum und Uhrzeit Ihres Computers sind eingestellt auf 17.9.2019. Überprüfen Sie, ob Datum, Uhrzeit und Zeitzone in den Systemeinstellungen korrekt gesetzt sind und laden Sie my.domain.de neu. Falls Datum und Uhrzeit bereits korrekt sind, so ist die Website wahrscheinlich falsch eingerichtet und Sie können nichts machen, um das Problem zu beheben. Sie können den Website-Administrator über das Problem benachrichtigen. Because for blynk server I also had to change the time settings in the dietpi settings.
so the authenticator = webroot and not apache... is that a hit? If yes.. changing it to
|
@Phil1988 Please consider to upgrade to current version: The webroot authentication method should work as well, we applied this during some time since the Apache+Nginx plugins failed with the message you got as well, which is due to the usage of a protocol (TLS-SNI) that was rendered as insecure and dropped by Let's Encrypt. However on current certbot versions, those webserver specific plugins got updated to again work well. |
I will do so and report here back.. manwhile: the version of dietpi:
|
@Phil1988 |
Debian yes... Jessie... I dont know :D
|
Ah even there v0.28 is present, which already contains the fix. However if your image is old, certbot was probably installed from source and not via APT package that time, so To check your Debian version: |
I also did run
but checking Edit: Trying
now |
@Phil1988 |
now certbot says 0.28.0 should I try |
@Phil1988 |
Still gives me:
|
@Phil1988 |
Ohhh my god.. you are godlike... I changed
in /etc/letsencrypt/renewal/ourpicloud.spdns.de.conf and then did
result:
Thanks a lot dude! You are awesome :) |
@Phil1988
Paypal donations are always open, see e.g. "Sponsors" link at the top of GitHub page, currently its mostly coffee 😉. However I'm always happy to help and in many cases there is some positive outcome for DietPi as well:
|
I reopen this issue to not forget implementing the above mentioned steps. |
Done: eafdd3b |
Well done dude ! Who will close? :) |
@Phil1988 |
Required Information
DietPi version |
G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=25
G_DIETPI_VERSION_RC=3
G_GITBRANCH=master
G_GITOWNER=MichaIng
Distro version | stretch
Kernel version |
Linux DietPi 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux
SBC device |
Virtual Machine (x86_64)
Description
I am using dietpi on a VM with following programs installed:
pi-hole
nextcloud
letsencrypt
blynk server
LASP (blynk wanted it I think...)
LAMP
The renewal worked in the past.
DietPi-LetsEncrypt is set with
Domain
Email
Redirect [On]
HSTS [Off]
Key Size 4096
I have updated dietpi and some of the programs (I remember at least the Pi-hole update) since then.
Now the renewal isnt working any more.
I am getting:

My Nextcloud is not (and never have been) accessable on port 80. Only on Port 443.

In the past the port 80 opened the standard apache site.
One thing I discovered is, that after the pi-hole update, I see the Pihole page on port 80.
Maybe not linked to this issue but maybe yes :D
I have no idea where to search for the source of this problem.
Tell me what I need to provide and I will do my best :)
Thanks a lot!
The text was updated successfully, but these errors were encountered: