Setting up https access just does not work

Hi all,
just cant get https access to work.

Https just wont work, Http keeps working do.

Tryed everything mentioned in manual and community.

here goes:
port forwarded 8123 to 8123
port forwarded 443 to 8123
on a static IP.

configuration.yaml:

http:
  base_url: https://xxxxxxxxxx.duckdns.org:8123
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

tryed with and without https://
tryed with port seperately specified

DUCKDNS:

{
  "lets_encrypt": {
    "accept_terms": true,
    "certfile": "fullchain.pem",
    "keyfile": "privkey.pem"
  },
  "token": "xxxxxxx",
  "domains": [
    "xxxxxxxxx.duckdns.org"
  ],
  "seconds": 300
}

duckdns log:
[08:57:35] INFO: OK

217.103.200.73

NOCHANGE

[09:02:37] INFO: OK

217.103.200.73

NOCHANGE

[09:07:38] INFO: OK

217.103.200.73

NOCHANGE

http://xxxxxx.duckdns.org works fine

i do see this error:

ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py”, line 275, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File “aiohttp_http_parser.pyx”, line 523, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method

HELP!!! :slight_smile:
about to scream right now.

I copied my keys into my homeassistant directory and configure the following

http:
  ssl_certificate: ./certificate.pem
  ssl_key: ./privkey.pem

Restarted HA and worked fine.

Maybe its just me, but how exactly is this helpfull?
it would be helpfull to be a bit more specific.
Not everybody is a wizard you know.:slight_smile:
locations of source and destiny?

Try this, works great for me, and no port number required: https://dew-itwebservices.com.au/setting-home-assistant-up-for-secure-access-over-the-internet/

Use a reverse proxy, let it handle the certs and be done with this DuckDNS/let’s encrypt/HA nonsense.

2 Likes