elad-bar/ha-hpprinter

After upgrading to version 2.0.2, certificate errors are my part

Closed this issue · 5 comments

After upgrading to versions 2.0.2 I'm bumping into a lot of error messages:

Deze fout is ontstaan door een aangepaste integratie.

Logger: custom_components.hpprinter.managers.rest_api
Bron: custom_components/hpprinter/managers/rest_api.py:452
integratie: HP Printer (documentatie, problemen)
Eerst voorgekomen: 17 juni 2024 om 17:32:19 (19824 gebeurtenissen)
Laatst gelogd: 08:54:59

Failed to get /DevMgmt/ProductUsageDyn.xml, Error: Cannot connect to host hp8302de.thuis.famreijnen.nl:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')], Line: 392, Time: 0.131s
Failed to get /IoMgmt/Adapters, Error: Cannot connect to host hp8302de.thuis.famreijnen.nl:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')], Line: 392, Time: 0.128s
Failed to get /ePrint/ePrintConfigDyn.xml, Error: Cannot connect to host hp8302de.thuis.famreijnen.nl:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')], Line: 392, Time: 0.130s
Failed to get /DevMgmt/NetAppsSecureDyn.xml, Error: Cannot connect to host hp8302de.thuis.famreijnen.nl:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')], Line: 392, Time: 0.130s
Failed to get /DevMgmt/ProductStatusDyn.xml, Error: Cannot connect to host hp8302de.thuis.famreijnen.nl:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')], Line: 392, Time: 0.129s

I have my own, private certificate provider in my network, i.e. I have a root CA and intermediate CA and generate my own certificates. Up to the upgrade to versions 2.0.2, this was working fine.
Now all printer entities are showing "Not Available" and I have too many of the log messages above.

PEM certificate for the printer is imported fine, and eventually I've also imported the intermediate and root certificates to see if that would solve my issue. To no avail.

Any help appreciated.

I think the ssl verification should be disbaled, will get to it and update when there is a new release to check

please check v2.0.3 and update

thanks

same issue as #169 please review solution

Hi Elad-bar,

Actually just installed version 2.0.4 as it popped up being available and all is working well again.

Thanks for the support

Sure, thanks for the update