How to Signing a Firefox Extension

允我心安 提交于 2019-12-13 05:22:42

问题


I want to signing the Firefox extension. I have search on internet regarding signing the extension and found the URL https://developer.mozilla.org/en/docs/Signing_a_XPI. I have gone through the instructions given in this site. But could not sign-in the extension. In my case signtool and certutil commands are not running.

if anyone know the process of signing the Firefox extension then please let me know. Thanks.


回答1:


The document you followed is for old developer-certificate signing and is now obsolete since only Mozilla certificates are allowed now.

  1. Get the credentials from AMO.
    • if you use jpm for SDK development you can just do:

    jpm sign --api-key ${AMO_API_KEY} --api-secret ${AMO_API_SECRET}

    • otherwise, sign the xpi directly:

    jpm sign --xpi /path/to/your-addon.xpi --api-key ${AMO_API_KEY} --api-secret ${AMO_API_SECRET}

Here are some resources to get you going:

  • https://wiki.mozilla.org/Addons/Extension_Signing
  • https://blog.mozilla.org/addons/2015/11/20/signing-api-now-available/
  • https://blog.mozilla.org/addons/2015/12/18/signing-firefox-add-ons-with-jpm-sign/



回答2:


  1. Get the credentials from AMO.
  2. Download NodeJs.
  3. Run CMD.
  4. Install web-ext using this command:

    npm install --global web-ext

  5. Go to your AddOn directory... For Example:

    cd E:\My-Projects\AddOn

  6. Run this command:

    web-ext sign --api-key="JWT issuer" --api-secret="JWT secret"

  7. A folder with "web-ext-artifacts" name and an XPI file would be created. You can install the XPI!


来源:https://stackoverflow.com/questions/34608873/how-to-signing-a-firefox-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!