I want to install Letsencrypt on a Rpi2 running Domoticz
But when Letsencrypt wants to create a temporarly file in the www directory of domoticz it gets the following error:
My web server is (include version): Domoticz v 4.97
The operating system my web server runs on is (include version): Raspbian stretch full for Raspberry Pi 2B
I am running a router/firewall with pfsense
I have created a port foward on TCP port 443 and 80
I can connect to domoticz remotely with https://xxxxx.duckdns.org, so the port forwarding is working
Although I have port forward TCP 80 in pfSense, I need to figure out where the firewall problem is: in my router or in the RPi
I Also read that it is also possible not to open port 80 and use:
–preferred-challenges=dns and create a DNS TXT record (as described) to validate the ownership
You need txt entry (2), perhaps (3). Don't create something like (4) or (5).
But: New certificate validation -> new value. So your dns provider should support an API you can use with Certbot (or acme.sh). If not, you must create such a txt entry manual.
When I try to run:
sudo certbot certonly --manual --preferred-challenges dns --manual-auth-hook /home/pi/duckdns/auth.sh --manual-cleanup-hook /home/pi/duckdns/cleanup.sh
Certbot is not found. Where can i find the certbot script?
According to your first post, you have it at /etc/letsencrypt/letsencrypt-auto.
(Certbot used to be known as "letsencrypt". letsencrypt-auto automatically upgrades itself -- unless you tell it not to -- so you still have the current version regardless of the file name.)