Skip to content

Commit

Permalink
fix 30 days expiration bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmotea authored Jan 3, 2019
1 parent 56fcf91 commit 9412a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BridgeEmulator/easy_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ else
curl https://raw.githubusercontent.com/diyhue/diyHue/9ceed19b4211aa85a90fac9ea6d45cfeb746c9dd/BridgeEmulator/openssl.conf -o openssl.conf
serial="${mac:0:2}${mac:3:2}${mac:6:2}fffe${mac:9:2}${mac:12:2}${mac:15:2}"
dec_serial=`python3 -c "print(int(\"$serial\", 16))"`
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 3650
openssl req -new -days 3650 -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 3650
if [ $? -ne 0 ] ; then
echo -e "\033[31m ERROR!! Local certificate generation failed! Attempting remote server generation\033[0m"
### test is server for certificate generation is reachable
Expand Down

0 comments on commit 9412a22

Please sign in to comment.