-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install.sh: both certificate generation methods fail #966
Comments
i fix my local certificate generation service, see #942 |
This is not that. If I'm following the automatic setup instructions in the Diyhue documentation, the downloaded script has this line for the failback certificate generation method: |
will update this today |
This should've been fixed by #971 |
I'll test this soon, based on what I'm reading and seeing it might fix the primary method - the backup method is still set up to use a discontinued service. I can try making a PR for that, seems like that would be a simple change. |
this should fix half of issue diyhue#966, hopefully I am doing this correctly
On second glance, I dont think #971 has any bearing on this one. This issue was not with python, it was specifically with the openssl certificate generation. |
this should fix half of issue #966, hopefully I am doing this correctly
Issue does not already exist?
I have searched and found no existing issue
Select Environment
Install Script
Home Assistant related?
No
Description
Both the primary and fallback certificate generation methods fail, for different reasons.
Primary method command is this:
faketime '2017-01-01 00:00:00' openssl req -new -config openssl.conf -nodes -x509 -newkey ec -pkeyopt ec_paramgen_curve:P-256 -pkeyopt ec_param_enc:named_curve -subj "/C=NL/O=Philips Hue/CN=$serial" -keyout private.key -out public.crt -set_serial $dec_serial -days 7670
The above command fails because
-config openssl.conf
is not a valid config file. On my RPI where I have this installed, it was resolved by specifying the full path of the openssl config file./etc/ssl/openssl.cnf
I'm not sure, however, if this solution is portable to other platforms. It was NOT resolved by changing openssl.conf to openssl.cnf in the short manner.Secondary method is this:
curl -k "https://certgen.lightningdark.com/gencert?mac=$mac" > /opt/hue-emulator/cert.pem
This method fails because there is no longer a certificate generation service at certgen.lightningdark.com. The domain MAY be parked. The generated 'certificate' is the response page for a 404 error.
Errorlog:
Error output for primary method is below. Secondary method only produces an incorrect file, not an error.
Steps to reproduce
Because I was diagnosing specifically an issue with the certificate not generating, and in an upgraded installation, I manually pulled the certificate generation portion out of the full script and put it into a shortened script. This is my best guess on how the issue would be reproduced in a clean environment:
(I'm not sure if the certificate not generating appropriately is fatal to the main script)
Please enter your operating system details here
Linux 5.10.103-v7+ armv7l
What DiyHue version(branch) are you using?
master (latest)
The text was updated successfully, but these errors were encountered: