from http://developer.mozilla.org/en/docs/Extension_Versioning,_Update_and_Compatibility#Securing_Updates
To sing update.rdf (to set value to signature in update.rdf):
>When the author creates the update rdf file a tool is used to sign it using the private part of the key. Roughly speaking the update information is converted to a string, then hashed using a sha512 hashing algorithm and this hash is signed using the private key. The resultant data is DER encoded then base 64 encoded for inclusion in the update.rdf as an signature entry.
It is possible to create signature without McCoy tool?
I use spock[1], an unofficial command line tool, for generating nightly
builds.
Cheers
Nils
Can I ask what it is about McCoy that makes you want to find another option?
I want to upgrade build.xml in my project (Apache Ant) to build
extension for FF 3. For this purposes I need to sign update.rdf
automatically, but McCoy doest not support command-line interface for
Win-platforms.
I wrote a small Mccoy extension to add a command line interface for signing:
https://fireclipse.svn.sourceforge.net/svnroot/fireclipse/trunk/FireclipseExtensions/chromebug/mccoy/signOnTheLine/
I'm not going to continue with that bit of code but it worked to sign
the Firebug 1.2a* files.
For Firebug 1.2b I took the opposite model, eliminating ant. I embedded
Mccoy in Firefox and added code to remove debug tracing code from
Firebug, zip the extension, mark the file names with version numbers,
and do the signing/hash thing. Generalizing it to other extensions would
need work. Its also driven from the command line.
John.
The signOnTheLine extension to Mccoy does both these things and it is
working for me. The GUI still flashes up but it doesn't require human
intervention.
Some notes on use:
https://bugzilla.mozilla.org/show_bug.cgi?id=395368
Leni
Thanks for hint.;)
But being an extension to McCoy (which is a custom xulrunner app) it
still requires at least the GUI libraries, even if it doesn't use them,
really.
I'm perfectly fine with spock. Seems to just work, although it in fact
is "just" a hack.
I just replied to answer Dave's question why I cannot use the official
McCoy builds.