-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
verify_ssl seems to be ignored on rest_command #118396
Comments
Hey there @jpbede, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) rest_command documentation |
I actually doubt that logger:
logs:
homeassistant.components.rest_command: debug |
I've enabled the logs and alls I see in /config/home-assistant.log is ERROR MainThread .... Error executing script. Error for call_service at pos 1: Client error occurred when calling resource "https://...." and nothing else. any way to get a stack trace? |
great, I hope this patch is merged soon. Thank you very much for looking into this and acknowledging that the debugging is a bit difficult right now. Out of curiosity, is there a way to monkey patch your class in order to quickly debug it? I wouldn't mind editing the file with vim for this test. thanks |
Sure, you can change the file in the container. It is located at Then you need to restart the container |
Hi, I've managed to monkey patch your class and I see this
it looks like it's not ignoring wrong certs. |
Are you absolutely sure that you've Which version of HA do use? |
Atm it looks like this, and you can ignore my warnings about it not taking the correct variable, I was making tests and forgot it set to true, but the problem is still here:
--
--
in my curl request there are SSL specifics. maybe it's an old protocol that is no longer working on aiohttp? |
Could you run |
yes, that's how I originally implemented it, but I also wanted to get the json output for my automation. curl as a command returns a stdout and stderr string which looks overly complicated to parse within an automation. I just realized that this system is using a Boa server, last release 2005 :) so it's understandable that python doesn't want to talk with it. I'm writing the vendor (Inim) to see if it's possible to upgrade to a modern web server alas, aiohttp lies when it says that it can ignore SSL |
Well, it ignores self-signed certificates and so on... but if the server uses an old cipher that we don't support, then no handshake can be performed and then there is nothing to ignore :) If you want to really ignore SSL than use plain HTTP :) |
I realize that I could use plain HTTP but what I wanted to do is to open a mechanical door and I'm not too keen on sending an important request such as this in clear within the network. |
If someone stumbles into this issue here's how I've "fixed" it,
this way everything works and I'm sure there's no data passing in plain text anywhere.
|
I would like to jump in into this conversation as I'm also using an Inim web server in my local network. The error message I receive:
in RESTfull you have a specific configuration variable available to handle this error:
Once this variable is set to |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem still exists. Also with the latest HA version (2025.2.4) |
With the next release of Home Assistant there will be a new config option called |
The problem
I am trying to make a request to a device in my network which supports https. something like this:
I can verify with curl that the server answers correctly, even from HA terminal
Whenever I call the
rest_command
I receive this in the trace, the logs don't have any other information:That's all it says, if I use http the automation works perfectly, this makes me think that
verify_ssl: false
is ignored, as far as I can see there is not a way to debug the error further.could it be here the issue?
I'm not sure
The text was updated successfully, but these errors were encountered: