Want to use Home Assistant with SSL using my own domain

Hi everyone,

I am running Home Assistant supervised on a Debian 12 server. Everything works fine but I wanted to use my home assistant server on port 7007 and I also want to use my own domain for remote access with SSL using my own domain.

The problem I’m facing currently is that installing Let’s Encrypt add-on and using the http verification method works fine for me and the certificate generates successfully but when I add

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

to the configuration.yaml file, home assistant doesn’t seem to start. I mean the docker container restarts successfully but I cannot access my server at https://mydomain.com:7007/.

Commenting this makes it work again

http:
  server_port: 7007
#  ssl_certificate: /ssl/fullchain.pem
#  ssl_key: /ssl/privkey.pem

I don’t want to use a proxy, and I don’t want to use duckdns to create a subdomain.

If there’s any log files i should check and post it here then please let me know the location based on my installation done on Debian 12 so I can post it here.

PS server_port: line isn’t a problem because the server works fine when I just change the port and it’s accessible at http://192.168.1.16:7007.

I don’t think that /ssl/fullchain.pem is not readable by home assistant but if that’s the reason, do let me know how I can check whether it can access it.

Hello, you should select the propper category such as Installation | Development.
You have selected Thread/Matter but your question is regarding HA only, wrong topic.

/ssl is a directory on the same level as /config, it is not a directory to be create in /config

I know and I didn’t

Thanks for letting me know, i wasn’t sure which one to choose