go-hass-agent icon indicating copy to clipboard operation
go-hass-agent copied to clipboard

Websocket connection does not work with letsencrypt

Open joshuar opened this issue 2 years ago • 0 comments

          Hi @joshuar,

Sorry for the delay. I tried the snapshot you gave me and, indeed, it seems to work well.

However, I still have an error :

Could not connect to websocket. error="tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config"

It does not seems to prevent it from working.

The hass.websocketurl and WebSocketURL looks like this :

wss://HOST:PORT/api/websocket

My certificate is generated with letsencrypt and is currently valid.

Let me know if you want me to create a new issue about that.

Thanks !

Originally posted by @CaporalDead in https://github.com/joshuar/go-hass-agent/issues/47#issuecomment-1752107968

joshuar avatar Oct 12 '23 23:10 joshuar