Yes, now nearly all works(only that for the moment I sign with a fake
certificate the javascript cause I've got problem with the global
sign...)
And yes I use only JSS or nearly. In fact I don't find in jss how to
find the path to the keystore,...
With XPCom component it's easy to get the path and select a
certificate so...
The method I use:
- An applet with jss for signing
- javascript to obtain : -path to the keystore of the current user
-nickname of the certificate selected
So, my jsp load the applet(the applet is signed with signjar), I open
an other window with the signed html and javascript(signed with
signtool). This html page retrieve the path to the keystore and the
selected certificate, and then this information is given to the applet
to initialize jss and sign.
You can do a call from javascript to a method of the applet which
access the filesystem,... but to do this you have to create a thread
in the init of the applet and then the method will in fact use the
thread created in the init(so there is no problem of security, of
course if the applet is signed)
If you have specific questions you can ask on the newsgroup(but for
the moment I don't have an internet connection home so I read less
often the newsgroup but in few days it will be ok)
Rodrigue Butaye
Jean-Marc Desperrier <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> In the "Scripting Certs via XPCOM" thread, Rodrigue gave a method that
> enables to call a XPCOM component from javascript to get back a cert
> nickname.
>
> But it seems you can not do much anything useful once you get that ?
> None of the other NSS Api function that would enable to access the
> private key, and do cryptographic operation is accessible from XPCOM,
> are they ?
>
> Rodrigue, if you read this, did you succeed in doing anything
> interesting in XPCOM with this, or are you in fact only using JSS ?
>
> Also it seems that if I had a java applet that would be able to do the
> crypto through other ways, there is no easy way to do java->javascript
> communication to call this code.