Ssl_key not found

I try to get https instead of http for the WebUI:

I have a cert (chain) and the key in /ssl:
➜ ~ l /ssl/HA-Web.*
-rw------- 1 root root 265 Apr 7 14:28 /ssl/HA-Web.key
-rw------- 1 root root 2.2K Apr 19 17:11 /ssl/HA-Web.pem

In /config/configuration.yaml it looks:
http:
ssl_certificate: /ssl/HA-Web.pem
ssl_key: /ssl/HA-Web.key

But if I check the config with the 'Developer Tools - check YAML I get:

Integration error: ssl_key - Integration ‘ssl_key’ not found.
Integration error: ssl_certificate - Integration ‘ssl_certificate’ not found.

What is wrong?

(edit: format issues)

Format your configuration.yaml code again - it’s still not right.

My guess is you’re missing 2 spaces before the SSL lines:

http:
  ssl_certificate: /ssl/HA-Web.pem
  ssl_key: /ssl/HA-Web.key

Thx!
Indeed, two leading spaces makes a difference.

But only in the YAML-Check. The https connection with the WebUI does not run.

This is my http section. Only difference I can see is in the file suffix for the key. Mine are both set to .pem

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

Do you run nginx app as reverse proxy or do you run a bare https?

Nope, bare https with DuckDns

Maybe a complete reboot was necessary not only reload the YAML … Now it is serving via https, thx.

1 Like