Lutron Caseta Hub - Get Certificate Error

I am trying to generate the certificate files to connect my Lutron Smart Bridge (L-BDF2).

I have tried running the get_lutron_cert.py script on 2 different Windows 10 computers as well as
on Ubuntu and Raspbian.

I have run the following on windows 10 in powershell using python 3.6.5:

python -m venv env
./env/scripts/activate.ps1
pip install cryptography==2.1.3 requests==2.18.4

That all runs great. When I run the next command python get_lutron_cert.py, it asks for the URL from the error page, when I paste that in and click enter I get the following error:

Traceback (most recent call last):
File “get_lutron_cert.py”, line 78, in
with open(‘caseta.crt’, ‘rb’) as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘caseta.crt’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “get_lutron_cert.py”, line 125, in
app_cert = pairing_response[“remote_signs_app_certificate”]
KeyError: ‘remote_signs_app_certificate’

It generates the caseta.key file but nothing else

Does anyone have any ideas on how to get this to work?
Thanks!

Running into similar issues, but then on row 64…Were you able to figure it out? Appreciate the help!

I couldn’t get it to work. I ended up returning the hub and I bought the pro version instead.
I set it up using the custom component here and that’s been working great.

Thank you for your response… I might have to do the same. Frustrating, because the hub worked with the HASSIO add on, but with HASSBIAN it has been a nightmare to get it working again :frowning: