Shell_command error after upgrading from Home Assistant version 2022.12.8 to Home Assistant version 2023.7.2

Hi everybody. I have the following problem after upgrading from Home Assistant version 2022.12.8 to Home Assistant version 2023.7.2: I use shell command to control my foscam camera but after upgrading Home Assistant I can’t control my Foscam camera anymore. The specific error information is as follows:

Logger: homeassistant.components.shell_command
Source: /usr/src/homeassistant/homeassistant/components/shell_command/__init__.py:117
Integration: Shell Command ([documentation](https://www.home-assistant.io/integrations/shell_command), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+shell_command%22))
First occurred: 20:07:44 (2 occurrences)
Last logged: 20:07:45

* Error running command: `curl -k --tls-max 1.2 "https://192.168.1.59:443/cgi-bin/CGIProxy.fcgi?cmd=ptzGotoPresetPoint&name=santruoc&usr=foscam&pwd=XXXXX"`, return code: 35
* Error running command: `curl -k --tls-max 1.2 https://192.168.1.59:443/cgi-bin/CGIProxy.fcgi?cmd=ptzGotoPresetPoint&name=sanh&usr=foscam&pwd=XXXXX `, return code: 35

NoneType: None

I can’t find information about error code 35. Looking forward to everyone’s help to fix the above problem

Return code 35 is an issue in the SSL/TLS handshake. So maybe something to do with this --tls-max 1.2.

Thank you for your response. I tried the above command with Command Prompt on Windows and it worked fine. I also tried again with Home Assistant version 2022.12.8 and it worked fine as well. Do you have any other suggestions?

I found a change notice about 5 months ago for the “init.py” file at [https://github.com/home-assistant/core/tree/dev/homeassistant/components/shell_command] whether this was the cause out error?