Making a unique extension id and key for Chrome extension?

前端 未结 2 2054
清酒与你
清酒与你 2021-01-31 00:17

I have a Chrome extension I made, but based it on some example found online. Its not in a crx file. The extension ID is the one used in the example. I would like to change it

2条回答
  •  天涯浪人
    2021-01-31 00:26

    You can create you own key and extension ID for the manifest:

    openssl genrsa 2048 | openssl pkcs8 -topk8 -nocrypt -out key.pem

    Key:

    openssl rsa -in key.pem -pubout -outform DER | openssl base64 -A

    Extension ID:

    openssl rsa -in key.pem -pubout -outform DER | shasum -a 256 | head -c32 | tr 0-9a-f a-p

提交回复
热议问题