HASS, DuckDNS, Let's Encrypt to Git - Travis error

I am using SSL in my hassbian installation with the Dehydrated script. Everything work great except when I push to GIT, I can’t get Travis to pass the build because the SSL, I get this error from Travis

2017-11-04 15:23:58 ERROR (MainThread) [homeassistant.config] Invalid config for [http]: not a file for dictionary value @ data['http']['ssl_certificate']. Got '/home/homeassistant/dehydrated/certs/domain.duckdns.org/fullchain.pem'
not a file for dictionary value @ data['http']['ssl_key']. Got '/home/homeassistant/dehydrated/certs/domain.duckdns.org/privkey.pem'. (See /home/travis/build/Nicxe/HomeAssistant/./configuration.yaml, line 11). Please check the docs at https://home-assistant.io/components/http/
2017-11-04 15:23:58 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Invalid config.
2017-11-04 15:23:58 INFO (MainThread) [homeassistant.setup] Setting up recorder
2017-11-04 15:23:58 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.0 seconds.
2017-11-04 15:23:58 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of websocket_api. Setup failed for dependencies: http
2017-11-04 15:23:58 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Could not setup all dependencies.
2017-11-04 15:23:58 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of api. Setup failed for dependencies: http
2017-11-04 15:23:58 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not setup all dependencies.
2017-11-04 15:23:58 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of history. Setup failed for dependencies: http
2017-11-04 15:23:58 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Could not setup all dependencies.
2017-11-04 15:23:58 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of frontend. Setup failed for dependencies: api, websocket_api
2017-11-04 15:23:58 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not setup all dependencies.

My config looks like this

http:
  api_password: !secret http_password
  ssl_certificate: /home/homeassistant/dehydrated/certs/domain.duckdns.org/fullchain.pem
  ssl_key: /home/homeassistant/dehydrated/certs/Domain.duckdns.org/privkey.pem
  base_url: domain.duckdns.org:8123

What I can understand I need to take the fullchain.pem and privkey.pem files for travis, but how and where do I put them?

I had the problem as well with hassio.
Just placed the fullchain.pem and privkey.pem in the root dir for the config and specified it in the config for travis.

How, exactly, did you specify this in the config? I’m having the same problem. Thanks.

Take a look at my config here

https://github.com/Nicxe/HASS.io?files=1

That did it. Thanks!

1 Like