Closed madito closed 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!
Fix on pull request!
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!