Hi,
I'm trying to sign an .xul page that uses javascript... I need to
enable UniversalXPConnect and UniversalFileRead functionality.. I'm
using drag and drop to populate a form with a file to be uploaded. The
script works, I can run it from my harddrive ok. But I am having
problems signing it so that I can use it for real. I am using the linux
binary of signtool which I downloaded from
http://developer.netscape.com/software/signedobj/jarpack.html#signtool1.3
Everything seemed to work fine, I ran the program and it successfully
created a jar file. However I used a key that I created into my
~/.netscape directory. When I tried to run the signtool with "-d
~/.mozilla/default/" it just core dumped. But when I try to use the file
with:
jar:http://www.myaddress.com/secure.jar!/test.htm
I get an error message that says "Signature Verification Error: the
signature on test.htm is invalid because the digital signature(*.RSA)
file is not a valid signature fo the signature instruction file (*SF).
This leads me to get the error "enablePrivilege not granted". I never
get a pop up window asking to enable it.
If any knows how to get this working that would be great.
Also, I downloaded the nss-3.1.1-with-nspr-4.1-dbm.tar.gz from the
mozilla site to see if the signtool in that would work better, but I'm
unable to compile the signtool program using the build instructions on
the website. All the compile commands work successfully but the
signtool binary doesn't seem to get created. The sources are there, but
I'm unsure how to complie them and create a signtool binary.
Thanks
mike