OK for anyone interested, I have found a way to do this!
Basically, the xxxx.rsa signature block within a signed JAR archive
can be replaced by another PKCS7 signed block, with added certificates,
without breaking the signature. The JAR is "re-jar'd" with exactly the same
manifest.mf, the same xxxx.sf, and all class (and other) files. The only difference
is the xxxx.RSA file is swapped (by signing the xxxx.sf file again, using other
tools).
An example of this is the updated digest calculator signed Java applet
here:
http://www.jensign.com/JavaScience/www/messagedigestj2
It this example, the VeriSign intermediate CA was appended to the PKCS7
sig blob and then re-jar'd. That intermediate CA is not included in the most
recent cacerts trusted CA files, but is required to verify my VeriSign signers
certificate.
- Mitch
> Is it possible to add extra certificate(s) to the pkcs7 signature blob in
> a signed JAR archive?
[quoted text clipped - 7 lines]
>
> - Mitch