Struggling with the duck

Hi All,
I’m struggling now for about ten hours in total with DuckDNS.
Currently running HASSIO on a Rasp Pi V3B (clean install). I want to use SSL for remote access using DuckDNS add-on which uses Let’s Encrypt. Installed the add-on following the instruction of Juanmtech (“https://www.juanmtech.com/hassio-duckdns-add-on-set-up/”), which seems pretty straightforward.
Now strange things happen…

  • The http: part (base url and certificate locations) in the configuration file (yaml) is not accepted, getting errors when doing the config check.
  • When I skip this step. I’m able to connect to Home Assistant via “my-domain.duckdns.org:443”, but it is NOT a secure connection - “This site cannot provide as secure connection”.

Any ideas where I should look for a mistake?
PPee

In the error messages you’re getting when you add the required keys to the configuration.

After a few times trying different port forwarding settings and doing fresh installs, I still cannot get a secure connection to home assistant.
I followed the instruction of Juanmtech (“https://www.juanmtech.com/hassio-duckdns-add-on-set-up/”) exactly.
Now if I include

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

in the configuration.yaml I get no connection at all, not on the local IP, not on the public IP with the various ports 443 and 8123. When I comment out those lines, I can reach Home Assistant via my DuckDNS domain port 443 which is forwarded to port 8123 but no secure connection.
This is my log

2019-10-17 10:40:57 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
2019-10-17 11:31:53 WARNING (zeroconf-ServiceBrowser__googlecast._tcp.local.) [zeroconf] Exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/zeroconf.py", line 2245, in send
    bytes_sent = s.sendto(packet, 0, (addr, port))
OSError: [Errno 22] Invalid argument
2019-10-17 12:53:09 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

Any ideas please what is wrong
PPee

Jaun is very good, he manages to convey steps quite well, but I think in that video (I watched that maybe 5 times) there is ‘some’ misunderstanding.
10 hours is nothing, I spent a week playing with this 4 or 5 hours a day.
My summary is here : -

Ahhhhhh thanks Mutt. Got it working using Nginx addon. Many kudos to you and Crhass !! Now it works perfectly : https from outside the network, http from inside. Just the way I wanted it.
Thanks again,
PPee

Hi again.
A couple of things : -
You don’t seem to have read the forum guidelines (you’d have a read guidelines badge if you had) I’d also recommend that you read Tinkerers sticky (at the top of the forum)
When you have a problem, search the forum DuckDNS comes up a LOT.
As you saw from my thread, somebody else has probably solved your issue previously.
When you reply to the thread, only the OP gets a notification (unless someone has specifically followed it)
If you reply to a post, then they get a notification
You can tag people, I don’t mind, but some people do (so use sparingly)
Finally when you get a good post, say if you like it, if you get a solution, Mark it as such.
This helps others, both those searching and those helping

Edit: I just had my certificates renewed, it happened without intervention and I only ever have port 443 open