I’m having the same problem. I don’t think its related to HASS because I got an error running the get_python_cert.py AND using the community plugin.
I’m using HASSIO 0.100.3 on Ubuntu
using get_lutron_cert.py with this process Lutron - get_lutron_cert.py I get the following results:
caseta.crt and caseta.key created, be caseta-bridge.crt is not:
(get_lutron_cert) root@hass-E5540:/home/hass/get_lutron_cert# python get_lutron_cert.py
Open Browser and login at https://device-login.lutron.com/oauth/authorize?client_id={REMOVED}&redirect_uri=https%3A%2F%2Fdevice-login.lutron.com%2Flutron_app_oauth_redirect&response_type=code
Enter the URL (of the "error" page you got redirected to (or the code in the URL): https://device-login.lutron.com/lutron_app_oauth_redirect?code={REMOVED}
Enter the address of your Caseta bridge device: 192.168.{REMOVED}
Traceback (most recent call last):
File "get_lutron_cert.py", line 137, in <module>
ssl_socket.connect((server_addr, 8081))
File "/usr/lib/python3.6/ssl.py", line 1109, in connect
self._real_connect(addr, False)
File "/usr/lib/python3.6/ssl.py", line 1100, in _real_connect
self.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] sslv3 alert bad certificate (_ssl.c:852)
(get_lutron_cert) root@hass-E5540:/home/hass/get_lutron_cert#
I manually extracted the bridge cert (sniffed out the URL and used a browser to save to base64) and saved it
I get the following in my HASS logs: at startup, similar SSL error in my home-assistant.log
2019-11-16 10:24:51 ERROR (MainThread) [homeassistant.setup] Error during setup of component lutron_caseta
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 167, in _async_setup_component
hass, processed_config
File "/usr/src/homeassistant/homeassistant/components/lutron_caseta/__init__.py", line 53, in async_setup
await bridge.connect()
File "/usr/local/lib/python3.7/site-packages/pylutron_caseta/smartbridge.py", line 40, in connect
yield from self._login()
File "/usr/local/lib/python3.7/site-packages/pylutron_caseta/smartbridge.py", line 281, in _login
self._reader, self._writer = yield from self._connect()
File "/usr/local/lib/python3.7/site-packages/pylutron_caseta/smartbridge.py", line 58, in _connect
family=socket.AF_INET)
File "/usr/local/lib/python3.7/site-packages/pylutron_caseta/leap.py", line 16, in open_connection
limit=limit, **kwds)
File "/usr/local/lib/python3.7/asyncio/streams.py", line 77, in open_connection
lambda: protocol, host, port, **kwds)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 981, in create_connection
ssl_handshake_timeout=ssl_handshake_timeout)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1009, in _create_connection_transport
await waiter
File "/usr/local/lib/python3.7/asyncio/sslproto.py", line 530, in data_received
ssldata, appdata = self._sslpipe.feed_ssldata(data)
File "/usr/local/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
self._sslobj.do_handshake()
File "/usr/local/lib/python3.7/ssl.py", line 774, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] sslv3 alert bad certificate (_ssl.c:1076)
anyone out there solve this issue??