I’m trying to get linuxserver/letsencrypt working.
I was not able to use 80/443 as they was already in use so I used 8080 /444
docker run -d \
--name=lets-encrypt \
--cap-add=NET_ADMIN \
--restart always \
--net=iotvlan \
--ip=192.168.3.48 \
-v /home/pi/homeassistant/ssl/config:/config \
-e EMAIL=myemail \
-e URL=mydomain \
-e VALIDATION=http \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/Dublin \
-p 8080:80 \
-p 444:443 \
linuxserver/letsencrypt
now the issue might be with the port fowarding.
first the docker is running in a another VLAN using macvlan and specific IP
so I forwarded 80 to Docker IP (and not the one its get from the gateway’s DHCP) to 8080
and same 443 > Docker IP > 444
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/
Brought to you by linuxserver.io
-------------------------------------
To support the app dev(s) visit:
Certbot: https://supporters.eff.org/donate/support-work-on-certbot
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid: 1000
User gid: 1000
-------------------------------------
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 50-config: executing...
Variables set:
0
0
TZ=Europe/Dublin
URL=domain.fr
SUBDOMAINS=
EXTRA_DOMAINS=
ONLY_SUBDOMAINS=false
VALIDATION=http
DNSPLUGIN=
EMAIL=mymail@domain,fr
STAGING=
No subdomains defined
E-mail address entered: mymail@domain,fr
http validation is selected
nerating new certificate
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for mydomain.fr
Waiting for verification...
Challenge failed for domain mydomain.fr
http-01 challenge for mydomain.fr
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: kevin75.fr
Type: dns
Detail: No valid IP addresses found for mydomain.fr
- Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.
ERROR: Cert does not exist! Please see the validation error above. The issue may be due to incorrect dns or port forwarding settings. Please fix your settings and recreate the container