Adding SSL from my Synology breaks Open Assistant

Hey,

For my Synology NAS I already have a DynDNS domain name and Lets Encrypt certificate.
So I’ve exported that certificate from my NAS and moved it to /ssl on the HA OS filesystem.
Next I added this to configuration.yaml:

http:
  base_url: https://someurl:8123
  server_port: 8123
  ssl_certificate: /ssl/chain.pem
  ssl_key: /ssl/privkey.pem
  ip_ban_enabled: true
  login_attempts_threshold: 5

However when restarting the core it’s broken…

Managed to solve it myself!

When exporting from Synology NAS you get:

  • cert.pem
  • chain.pem
  • privkey.pem

You have to concatenate the contents of both cert.pem and chain.pem into fullchain.pem and then put fullchain.pem and privkey.pem on your device (and have ssl_certificate point to that file).