Secure connection with Let's Encrypt add-on not working

Hello,

I’m stuck trying to implement SSL connection to my HA server with Let’s Encrypt.

I use a rasberry pi 3 with HA version 2021.3.4

I own a domain name, let’s call it mydomain.fr, with the subdomain home.mydomain.fr link to my home IP adress
On my local router i forwarded the following ports from my raspberry to the outside:

  • 80
  • 443
  • 8123

I can acces my HA from http://home.mydomain.fr:8123 with a non secure connection.

Then, I setup Let’s Encrypt with

email: [email protected]
domains:
  - home.mydomain.fr
certfile: fullchain.pem
keyfile: privkey.pem
challenge: http
dns: {}

I have no error in the log during the start of the add-on.

When I try to connect, I have the following result:
http://home.mydomain.fr:8123 --> OK
https://home.mydomain.fr–> nothing
http://home.mydomain.fr–> nothing

I also try redirection port 8123 of my raspberry to 443 outise, but still nothing.

Can someone help me ?
thank!!

The easiest way is to use nginx as reverse proxy like this ( will work until 16:45 GMT+2 :wink: )

I figured it out:

http:
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

was missing in the configuration file.

It works now !