Is it possible to pack chrome extension with key (*.pem) on server only with CLI (Ubuntu-server)?
You can use the application switches --pack-extension
and --pack-extension-key
as described in the documentation.
Basically, on Windows, you'd run the following in a terminal:
chrome.exe --pack-extension=c:\myext --pack-extension-key=c:\myext.pem
It works on Mac as well with:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --pack-extension=./myext --pack-extension-key=./myext.pem
It should be similar on Ubuntu.
Leaving out --pack-extension-key
will automatically create a key for you.