Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sign a zip file via JarSigner with detached signature  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to sign a zip file with a Detached Signature via Java Signer.exe tool - something like pgp tool does.

I downloaded & installed java...
And until now I succeeded to
1. create a self signed certificate in Java's key store.
2. Succeeded to sign a zip file with the command line:
C:\Program Files\Java\jdk1.8.0_111\bin>jarsigner -keystore "C:\New\Keystore.jks" -storepass 123456 -sigfile CERT -signedjar c:\new\ c:\temp\ my_cert

BUT this method inserts a META-INF files into the signed zip file.

Can you please tell me the parameters to jarsigner, that will sign the zip file in a way that the signature will be DETACHED in a (base 64) separate file... and the original zip file will remain untouched.

Thank you guys.

Something must be done about this. Let's start by reading this tiny ad:
Rocket Oven Kickstarter - from the trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!