Impossible to access https

Hello guys,

This is my first post here.
I have an ubuntu config and i installed hass.io. Everything was fine (till now)…
But i have a little problem, impossible to access my HA in ssl.

I have a fix IP, so i don’t need duckdns or Letsencrypt. So i created my cert with openssl, i put the 2 files in folder.
i completed configuration.yaml like that:

http:

Secrets are defined in the file secrets.yaml

api_password: MYPASSOWRD
ssl_certificate: /home/erick/certificats/certificate.pem
ssl_key: /home/erick/certificats/privkey.pem

Uncomment this if you are using SSL/TLS, running in Docker container, etc.

I restarted HA and i have this error:

Invalid config for [http]: not a file for dictionary value @ data[‘http’][‘ssl_certificate’]. Got ‘/home/erick/certificats/certificate.pem’
not a file for dictionary value @ data[‘http’][‘ssl_key’]. Got ‘/home/erick/certificats/privkey.pem’. (See /config/configuration.yaml, line 26). Please check the docs at HTTP - Home Assistant

Need help!
Thanks a lot :slight_smile:

Is your directory called /certificats or /certificates?

My directory is called /certificats (in french)

How do you end up with a directory called /home/erick on hass.io?

Well… First, i installed hassio in a raspberry. Then i bought an laptop on ubuntu, i tried to install home assistant but i couldn’t find “hass.io” menu (with configurator).
So i searched on google and found that tuto:

venkat.ca/installing-hassio-in-ubuntu-bionic-using-docker/

I followed it to install hass.io. It worked and i created a directory (certificats) to put my 2 files (*.pem) in.

You’re right, I did see hass.io and assume raspberry pi hassos install of hass.io.

However if you have installed hass.io on top of ubuntu, then home assistant is running in a docker container, and has no access to /home/erick.

Thanks, Nick :slight_smile:

So what can i do? Where must i put my “certificats” directory?

You should use the hassio addon.

I do it :wink: