I use something like that:
window.crypto.signText('Sign this message', 'ask');
Is there some kind of parameter or something else which I can use and
include the content of the message in the final signed document?
Thanks in advance.
If you are thinking of OpenPGP cleartext signing,
there is no such analogue in the x.509 world as
far as standards go, AFAIK.
My company added cleartext x.509 signing to our
own code base (in Java for Ricardian Contracts)
back in 1999 or so, it's not hard to do this work.
But as this was a non-standard approach, I don't
know that anyone would be interested in adding
it to Mozilla.
Bear in mind that as well as signing
tools, you would also need to create verification
tools that understand the cleartext signing format,
so you would always be limited to using the one
browser/place that it was implemented in.
If you are not talking about cleartext signing, then
ignore all the above.
iang
--
News and views on what matters in finance+crypto:
http://financialcryptography.com/
> If you are thinking of OpenPGP cleartext signing,
> there is no such analogue in the x.509 world as
> far as standards go, AFAIK.
Ian and plig,
In the world of PKCS7 (a.k.a. "CMS") there are two kinds of signatures,
commonly called "detached" and "opaque". plig is asking for opaque;
that is, a signature "blob" that contains the signed data as well as the
signature itself and the certs. IINM, today mozilla's signtext extension
is producing "detached" signatures. I don't know if there is any way
to get opaque.