Olen / home-assistant-openplantbook

Integration to search and fetch data from Openplantbook.io
GNU General Public License v3.0
131 stars 5 forks source link

certificate verify failed: unable to get local issuer certificate #16

Closed coxtor closed 7 months ago

coxtor commented 7 months ago

When trying to add my credentials I get the following error:

I am using docker-compose with traefik. So far everything else is working fine also public tls with multiple devices. Adittionally the Plant integration ( I have configured 34 Sensors manually) are working fine.

It would be good to be able to disable ssl_verify in the sdk perhaps?

2024-01-26 18:06:33.553 ERROR (MainThread) [openplantbook_sdk.sdk] Cannot connect to host open.plantbook.io:443 ssl:True [SSLCertVerificationError: (5, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')]
homeassistant     | 2024-01-26 18:06:33.553 ERROR (MainThread) [custom_components.openplantbook.config_flow] Unable to connect to OpenPlantbook: Cannot connect to host open.plantbook.io:443 ssl:True [SSLCertVerificationError: (5, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')]
Olen commented 7 months ago

@slaxor505 Do you have a certificate issue?

slaxor505 commented 7 months ago

No, I don't. We've discussed this issue with the person already in Discord. I don't think that disabling TLS validation is a good idea. This seems to be one off occurrence of the issue. It's likely intermediate proxy or outdated encryption algorithms on the host. I'll continue troubleshooting in Discord.

On Sat, 27 Jan 2024, 04:16 Olen, @.***> wrote:

@slaxor505 https://github.com/slaxor505 Do you have a certificate issue?

— Reply to this email directly, view it on GitHub https://github.com/Olen/home-assistant-openplantbook/issues/16#issuecomment-1912405738, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGJ4FDJHPAEGWRRSWMBEFTYQPQGHAVCNFSM6AAAAABCMOPJQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJSGQYDKNZTHA . You are receiving this because you were mentioned.Message ID: @.***>