Getting a Let's Encrypt Error

Reinstalled Home assistant due to a corrupt SD and in resetting up I am getting the following error for Let’s Encrypt. If I hash out the SSL I can get to the site via http://mydomain.duckdns.org:8123 but if I do not hash out the SSL information I get the below error,yet when going through the setup I did not receive any errors and my /etc/letsencrypt/live/mydomain.duckdns.org/certificate.pem and /etc/letsencrypt/live/mydomain.duckdns.org/privkey.pem files are in said locations.

Invalid config for [http]: not a file for dictionary value @ data[‘http’][‘ssl_certificate’]. Got ‘/etc/letsencrypt/live/mydomain.duckdns.org/certificate.pem’. (See /home/homeassistant/.homeassistant/configuration.yaml, line 38). Please check the docs at https://home-assistant.io/components/http/

Have you generated new certificates since rebuilding?

Yes, I ran through a hand full of the guides multiple times and the cert is definitely renewed! Driving me crazy!

Maybe a permission issue? Can Home Assistant access the said file path?

1 Like

Did you get your config back or start from scratch? Double checked the indenting? Get these sorts of errors not having the right spacing.

Checked the indenting and was able to get my config back.Not sure if permissions could be the issue