alladdin / node-lox-ws-api

Node JS WebSocket Loxone™ API
MIT License
32 stars 23 forks source link

Error: error:0908F070:PEM routines:get_header_and_data:short header #19

Closed madito closed 4 years ago

madito commented 4 years ago

The file public key (PEM) not is correct;

Is necesary change on /usr/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/Auth/Token-Enc.js

Replace line 104:

- key = key.replace(/(\w)(-+END PUBLIC KEY-+)$/, '$1\n$2');

By:

key = key.replace(/(-+END PUBLIC KEY-+)/,'\n$1');

And all work!

madito commented 4 years ago

Fix on pull request!