I'm setting up a new, fresh Domoticz server because I moved, but I'm having some troubles getting a SSL certificate with letsencrypt.
I followed the instructions to install certbot from the letsencrypt website: https://certbot.eff.org/instructions?ws ... untubionic
After some trial and error I got to the following command to get a certificate:
Code: Select all
sudo certbot certonly --staging -v --webroot --email *my-email* -d *my_domain* -w /home/domoticz/domoticz/dev-domoticz/www/
Code: Select all
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Requesting a certificate for *my_domain*
Performing the following challenges:
http-01 challenge for *my_domain*
Using the webroot path /home/domoticz/domoticz/dev-domoticz/www for all unmatched domains.
Waiting for verification...
Challenge failed for domain *my_domain*
http-01 challenge for *my_domain*
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: *my_domain*
Type: unauthorized
Detail: Invalid response from http://*my_domain*/.well-known/acme-challenge/w7X_gdfZJxMr1l-wRgbaJM-hNm1D34Hbj5S5qO6oYzg [*my_ip*]: 400
Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.
Cleaning up challenges
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.
Code: Select all
-rw-r--r-- 1 root root 87 dec 18 18:27 jUpjrjS5pkJAQntW1bR4WG8ukz_V-Vh_atdU7kI-lDI
-rw-r--r-- 1 root root 35 dec 18 18:27 robots.txt
Has anyone got any ideas how to fix this?
Maybe relevant information:
I'm using duckdns
Port 443 and 80 are forwarded correctly (e.g. I can reach Domoticz web page both through http as https)
I'm running on a Nvidia Jetson Nano, on which it has worked before previously (back in my old house)