Skip to content

Commit

Permalink
Update run.sh
Browse files Browse the repository at this point in the history
also check for /data/key.pem
  • Loading branch information
iainbullock authored Apr 7, 2024
1 parent 1a117bd commit e816e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tesla_http_proxy/app/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ elif [ ! -f /share/nginx/com.tesla.3p.public-key.pem ]; then
generate_tesla_keypair
fi

if [ -f /share/home-assistant/selfsigned.pem ]; then
if [ -f /share/home-assistant/selfsigned.pem ] && [ -f /data/key.pem ]; then
certPubKey="$(openssl x509 -noout -pubkey -in /share/home-assistant/selfsigned.pem)"
keyPubKey="$(openssl pkey -pubout -in /data/key.pem)"
if [ "${certPubKey}" == "${keyPubKey}" ]; then
Expand Down

0 comments on commit e816e03

Please sign in to comment.