Best wishes, Mihail Daskalov
lfern wrote:
Hi,
I have just developed a XPCOM component that exports to javascript a SignString function that can make a digital signature of a string (text or binary); the result is a CMS message that you can verify with p7verify utilty. Right now, it only works on Linux because I have a problem with self registry in Windows. If you want this you can download it from http://www.sourceforge.net/projects/formx/ . You have to download two XPIs an install in mozilla on a root shell (then restart mozilla). Download the HTML file to test the function. It works from 1.1 version, and I have tested it in Phoenix 0.5. Also, you can test a XUL application with the URL chrome://testsecclab/content/
Bye
Kohinoor Verma wrote:
Hi mark, I too am stuck on the same problem. I have used xpi to install nss on the client m/c. However I am not able to find the function to get the "config dir" of the client m/c using java or javascript. Can you help?
Rgds
Kohinoor
"Mark Shark" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
"Turbo" wrote
I'm looking for soulution for digital signing of web form. For Netscape 4.x I use crypto.signText in javascript.
Problem is with Netscape version 6.x and 7.x and Mozilla. There is no signText implementation.
see mozilla bug 139258.
http://bugzilla.mozilla.org/show_bug.cgi?id=139258
As I can see Netscape and Mozilla have all this functions in NSS library
and there is JSS which use NSS for crypto operation.
To be able to use JSS from Java applet you have to: install nss, jss on the user machine first.
Is there any way to make Java applet using JSS which could access to
running netcape/mozilla keystore and use user's private key to sign some
data supplied by javascript and return signed data to javascript ?
You can create a signed applet and you will be able to use the mozilla keystore and user's private key to sign data. I haven't checked if it is possible to communicate from javascript to java and vice versa.
I found out that CryptoManager must be initialized with path to configDir but is there any way for applet to get all data from running netscape without accessing filesystem ?
You can get configDir by using javascript functions and pass it to the applet.
Is there any chance that sometime in future new version of
netscape/mozilla
will have crypto.signText implemented ?
It is on a list of things to be done but it has low priority.
Regards,
Mark
