问题
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.
- Get the credentials from AMO.
- if you use
jpmfor SDK development you can just do:
jpm sign --api-key ${AMO_API_KEY} --api-secret ${AMO_API_SECRET}- otherwise, sign the
xpidirectly:
jpm sign --xpi /path/to/your-addon.xpi --api-key ${AMO_API_KEY} --api-secret ${AMO_API_SECRET}- if you use
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:
- Get the credentials from AMO.
- Download NodeJs.
- Run CMD.
Install web-ext using this command:
npm install --global web-ext
Go to your AddOn directory... For Example:
cd E:\My-Projects\AddOn
Run this command:
web-ext sign --api-key="JWT issuer" --api-secret="JWT secret"
- 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