okay, so changing the root in the config didnt fix it yet (thanks for bringing that to my attention though, overlooked changing that before).
when instead of running sudo certbot --authenticator webroot --installer nginx
I run sudo certbot --authenticator nginx --installer nginx
but it gives me a new error:
Performing the following challenges: Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA.
You can try follow the Debian instructions to upgrade. Sometimes Raspbian can be a bit of a problem, you might have better luck using the portable certbot-auto, which keeps itself up to date and has less problems with dependencies.
Alternatively, you can try add this to the end of the Certbot command:
okay so: --prefferred-challenges http
gives me this error: Performing the following challenges: None of the preferred challenges are supported by the selected plugin
and trying to do it with certbot-auto just gives me the same 404 error as before, i also checked my certbot it seems to be the newest version…
okay, doing the first change you suggested with the location rule in the nginx config and then invoking said webroot in the cerbot command fixed it.
also turned out my cerbot version is 0.10.2 so yea, not the newest… '^^