o-regan.org

Codesigning simplified…

Skip to: Content | Sidebar | Footer

Category: xpi

Signing a Firefox plug-in

9 October, 2007 (23:57) | codesigning, faq, signtool, xpi

Laurent brought this up recently in the comments on the XPISigner download page. He ran into an issue signing his Firefox Linux plug-in with XPISigner. Some files were no longer executable when the XPI was deployed.
This is a ‘feature’ of java’s cross-platform underpinnings, since not all platforms use file-system metadata to flag files as executable.
You [...]

XPISigner v1.6 released

1 October, 2007 (00:02) | firefox, java, security, signtool, xpi

Available from the download page.
Version 1.6

Fixed FileNotFound exception for xpi output file that doesn’t exist (yet). XPISigner now creates the file entry so the jar operation can use it.
Updated the unix script
Readme now correctly refers to the unix script as xpisigner.sh

XPISigner v 1.5 released

15 August, 2007 (00:04) | codesigning, extension, signtool, xpi

Now available from the download page.

Updated the readme.txt in the zip to the latest version.
Some VM’s displayed FileNotFound exceptions when the META-INF folder didn’t exist. Added explicit checks and create folders as required.
Removed some debugging statements e.g., “bc” from the output.
When running from a folder other than the baseDir the value of baseDir needed to [...]

XPISigner v 1.5 released

8 August, 2007 (22:53) | xpi

Now available from the download page.

Updated the readme.txt in the zip to the latest version.
Some VM’s displayed FileNotFound exceptions when the META-INF folder didn’t exist. Added explicit checks and create folders as required.
Removed some debugging statements e.g., “bc” from the output.
When running from a folder other than the baseDir the value of baseDir needed to [...]

InvalidKeyException: Illegal key size issue

3 August, 2007 (22:49) | faq, firefox, signtool, xpi

When running XPISigner with a PFX generated from SPC & PVK files you may run into the following error…
“unwrapping private key - java.security.InvalidKeyException: Illegal key size”
This may have two causes:

The unlimited strength policy files are not installed in your %JAVA_HOME%/jre/lib/security folder.
The PFX that was generated is not well formed. See below for instructions on how to export [...]

Extension signing with XPISigner

23 April, 2007 (22:41) | firefox, signtool, xpi

A random sampling of the extensions available on addons.mozilla.org shows that the majority of extensions available for download are unsigned. The only signed extension found in the search was the Google Toolbar.
The use of unsigned extensions encourages the end user to ignore the Unsigned warning in the corner.

(I’m not picking on Adblock specifically, it was [...]

XPISigner - Java cross-platorm xpi signing tool

14 April, 2007 (21:39) | extension, firefox, signtool, xpi

XPISigner creates signed extensions or plug-ins for Firefox and Thunderbird.
It is a replacement for signtool.exe
Requirements:

Java 5 or higher
PKCS#12 (PFX) file containing your signing key and certificate
Your unpacked xpi directory structure

To sign the xpi file you need to point XPISigner at the directory containing your unpacked xpi.
XPISigner processes each file in the directory calculating the MD5 [...]

Firefox XPI Internal Structure

11 April, 2007 (15:34) | codesigning, firefox, xpi

Let’s take a signed XPI apart and see what’re required to build a tool like XPISigner
We’ll use the Google Toolbar for Firefox as an example. It’s already signed and we can see it works when we download it.

Save off the xpi file from http://dl.google.com/firefox/google-toolbar.xpi