I had to do it manually instead of using crx object.
var pem = fse.readFileSync(pemFile);
var key = new RSA(pem);
var publicKeyPem = key.exportKey("pkcs8-public-pem");
This key in PKCS format without line ending and header, footer is used in 'key' property in the manifest.
https://developer.chrome.com/apps/manifest/key
This allows to have consistent extension id for unpacked extension placed in any folder.
I had to do it manually instead of using crx object.
This key in PKCS format without line ending and header, footer is used in 'key' property in the manifest.
https://developer.chrome.com/apps/manifest/key
This allows to have consistent extension id for unpacked extension placed in any folder.