Closed bishengliu7 closed 1 month ago
That is weird my 8K box works fine. Was already happy that it just worked.
After a bit of searching it seems like the output is generated by OpenSSL. The Syncbox needs/uses a custom cert file and servername to make it validate. I am not really familiar with OpenSSL commandline, but when using the parameters below it gives similar output to what you posted (and more), but does not seem to give verify errors.
Could you try it on your setup with the additional options? It should be copy-pastable for your setup. Pem file is attached with txt extension because Github would not let me add it otherwise.
If you used another command that is better I would be interested to learn about that.
openssl s_client -connect 192.168.31.183:443 -servername C4299600EBDA -CAfile hsb_cacert.pem.txt
Closing this and let's keep the discussion at https://github.com/mvdwetering/huesyncbox/issues/128, Thanks!
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host 192.168.31.183:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')] 2024-09-19 21:34:49.028 DEBUG (MainThread) [custom_components.huesyncbox.config_flow] async_step_link, ConnectionInfo(host='192.168.31.183', unique_id='C4299600EBDA', access_token=None, registration_id=None, port=443, path='/api') 2024-09-19 21:34:49.028 DEBUG (MainThread) [custom_components.huesyncbox.config_flow] async_step_link, asyncio.async_show_progress_done registered=False 2024-09-19 21:34:49.033 DEBUG (MainThread) [custom_components.huesyncbox.config_flow] async_step_abort, None