lianyu
(LianYu)
February 8, 2022, 10:57am
1
So, I’m replacing my Foscam cameras with what are arguably better IP cameras from Amcrest. For one, they support modern, self-signed certificates for HTTPS/SSL, and a much more robust configuration overall.
Problem is: Home Assistant
Amcrest Camera Integration does not support self-signed certificates, nor does it have a way to ignore them.
The Generic Camera Integration documentation has ‘verify_ssl’ listed as an option, but I tried that and HA said: Bite-Me, that setting is in valid.
The Generic Camera Integration also lists ‘still_image_url’ as optional. Well, that too is BS. I tried it and HA spit out: required setting ‘still_image_url’ not found.
On top of all this, again the crappy documentation for Generic Camera, says under ‘verify_ssl’:
or you have a self-signed SSL certificate and haven’t installed the CA certificate to enable verification.
But I cannot find ANYWHERE anything documenting how to install a CA certificate from a self-signed device, only how to have HA create its own self-signed certificate.
Any ideas? Or am I just screwed again with HA? (this is an ongoing theme…)
koying
(Chris B)
February 8, 2022, 11:42am
2
lianyu:
The Generic Camera Integration documentation has ‘verify_ssl’ listed as an option, but I tried that and HA said: Bite-Me, that setting is in valid.
The Generic Camera Integration also lists ‘still_image_url’ as optional. Well, that too is BS. I tried it and HA spit out: required setting ‘still_image_url’ not found.
You don’t tell your version in your crappy post, “still_image_url” was made optional in 2022.2
“verify_ssl” is definitely there, so there must be some crap in the configuration you didn’t show
1 Like
llamafilm
(Elliott Balsley)
November 30, 2022, 3:48am
3
Has anyone found a workaround for this? There are 2 issues in Github, both auto-closed as stale. Why don’t they remain open until fixed?
opened 05:35PM - 06 Feb 22 UTC
closed 04:10PM - 17 Mar 22 UTC
integration: amcrest
stale
### The problem
The problem
Amcrest integration cannot connect to cameras ru… nning HTTPS with self-signed certificates - most SSL integrations have some sort of verify_ssl option to enable/disable SSL certification verification.
What version of Home Assistant Core has the issue?
2021.12.7
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Amcrest
Link to integration documentation on our website
https://www.home-assistant.io/integrations/amcrest/
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2021-12-31 10:04:51 WARNING (SyncWorker_5) [amcrest.http] <Unconnected @ 192.168.1.2> Trying again due to error: SSLError(MaxRetryError("HTTPSConnectionPool(host='192.168.1.2', port=443): Max retries exceeded with url: /cgi-bin/magicBox.cgi?action=getMachineName (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))"))
Additional information
No response
### What version of Home Assistant Core has the issue?
2022.2
### What was the last working version of Home Assistant Core?
None that Im aware of
### What type of installation are you running?
Home Assistant Core
### Integration causing the issue
Amcrest
### Link to integration documentation on our website
_No response_
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_
opened 03:13PM - 31 Dec 21 UTC
closed 05:07PM - 06 Feb 22 UTC
integration: amcrest
stale
### The problem
Amcrest integration cannot connect to cameras running HTTPS wit… h self-signed certificates - most SSL integrations have some sort of `verify_ssl` option to enable/disable SSL certification verification.
### What version of Home Assistant Core has the issue?
2021.12.7
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant Container
### Integration causing the issue
Amcrest
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/amcrest/
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
```txt
2021-12-31 10:04:51 WARNING (SyncWorker_5) [amcrest.http] <Unconnected @ 192.168.1.2> Trying again due to error: SSLError(MaxRetryError("HTTPSConnectionPool(host='192.168.1.2', port=443): Max retries exceeded with url: /cgi-bin/magicBox.cgi?action=getMachineName (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))"))
```
### Additional information
_No response_
The upstream python-amcrest library already has an ssl_verify
option.
I’m guessing this is the next step for me, but how the hell did you guys manage to enable SSL with self-signed or Letsencrypt certs?
I create self signed PEM certs using mkcert, and when I press upload, I just get a green checkmark, but the certificate doesn’t actually upload.
Amcrest support just confirmed their cams don’t accept self signed certificates.
Lm fucking ao