Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / March 2005

Tip: Looking for answers? Try searching our database.

Adding intermediate certificates to a signed Jar signature .rsa file

Thread view: 
Michel Gallant - 15 Mar 2005 22:47 GMT
Is it possible to add extra certificate(s) to the pkcs7 signature blob in
a signed JAR archive?
This may be necessary in some cases .. for example VeriSign
issuing code-signing certificate via an INTERMEDIATE CA
which is NOT included in the default cacerts file ... so that the
issuers signature on the users (signing) certificate, which is included
in the .rsa file can't be properly verified without the intermediate CA cert.
Can that intermediate CA cert be added to the .rsa signature file at the time of signing
using either jarsigner or some other approach?

- Mitch
Michel Gallant - 16 Mar 2005 20:43 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.