Hi all
I have installed LE & DuckDNS on Home Assistant OS (2020.12.0) and everything seems OK.
On the router, I have forwarded tcp 443 to 8123 which is reported as open.
When I try to connect from a browser on a remote LAN with https://.duckdns.org I get the following error message:
Secure Connection Failed
An error occurred during a connection to xxxx9.duckdns.org:443. SSL received a record that exceeded the maximum permissible length.
Error code: SSL_ERROR_RX_RECORD_TOO_LONG
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
When i enter the http integration in the configuration file , I cannot reconnect to HA after HA reset .
I had to connect via SSH and manually remove the http integration in configuration.yaml file.
In the Duckdns addon documentation this http integration is included , so is it really needed when using Duckdns addon alone ( without Let’sEncrypt addon) ?
Additionally, you'll need to configure the Home Assistant Core to pick up the SSL certificates. This is done by setting the following configuration for the HTTP integration configuration in your configuration.yaml:
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
Option lets_encrypt.certfile
The name of the certificate file generated by Let's Encrypt. The file is used for SSL by Home Assistant add-ons and is recommended to keep the filename as-is (fullchain.pem) for compatibility.
Note: The file is stored in /ssl/, which is the default for Home Assistant
Option lets_encrypt.keyfile
The name of the private key file generated by Let's Encrypt. The private key file is used for SSL by Home Assistant add-ons and is recommended to keep the filename as-is (privkey.pem) for compatibility.
Note: The file is stored in /ssl/, which is the default for Home Assistant
.
==>> I am not sure about what i am saying but this is what i understand from the doc.
For the link to the documentation , it can be accessed from the documentation tab of the Duckdns addon as you said , i did not found other link from the documentation.
For the overwriting point :
In the duckdns and Letsencrypt addons , their configuration file contains both
…
certfile: fullchain.pem
keyfile: privkey.pem
…
Which is the default files as per the duckdns addon file
Option lets_encrypt.certfile
The name of the certificate file generated by Let's Encrypt. The file is used for SSL by Home Assistant add-ons and is recommended to keep the filename as-is (fullchain.pem) for compatibility.
Note: The file is stored in /ssl/, which is the default for Home Assistant
So adding the http part in configuration.yaml file is doing the same if the sytem is behaving properly
Sorry, still don’t get your point about the certificate issue.
Are you sure HA is not restarting!?
It’s not becoming any easier by using multiple, different topics…
EDIT: you also have to be aware that some modem/routers don’t support NAT loopback, so you cannot connect to your own network being on your LAN as if you connect from the internet.