Skip to content

Commit 37da223

Browse files
authored
Update genCert.sh (diyhue#864)
- Add folder creation after touch cert.pem
1 parent 2cdd107 commit 37da223

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

BridgeEmulator/genCert.sh

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ mac=$1
33
dec_serial=`python3 -c "print(int(\"$mac\".strip('\u200e'), 16))"`
44
openssl req -new -days 3650 -config /opt/hue-emulator/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=$mac" -keyout private.key -out public.crt -set_serial $dec_serial
55

6+
mkdir -p /opt/hue-emulator/config
67
touch /opt/hue-emulator/config/cert.pem
78

89
cat private.key > "$2/cert.pem"

0 commit comments

Comments
 (0)