• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Sign a zip file via JarSigner with detached signature  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
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\signed_zip.zip c:\temp\how_to.zip 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.

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!