views:

12

answers:

0
jarsigner -verify -verbose -certs /Users/simpatico/ws/MemoPlatform/application/target/webstart/foo/org-netbeans-modules-xml-retriever/org-netbeans-modules-xml-retriever.jar

Returns that the jar is indeed signed:

...
smk     4996 Mon Aug 02 14:20:54 AST 2010 org/netbeans/modules/xml/retriever/impl/Util.class

      X.509, CN=Gabriele, OU=Simpatico, O=Sim, L=Bozen, ST=Tirol, C=IT (memo)
      [certificate is valid from 8/16/10 8:58 PM to 5/12/13 8:58 PM]


  s = signature was verified 
  m = entry is listed in manifest
  k = at least one certificate was found in keystore
  i = at least one certificate was found in identity scope

jar verified.

I'm not sure how to verify from jws which jar is not signed, but I guess the following based on this answer:

security: Round 1 (0 out of 1):file:/Users/simpatico/ws/MemoPlatform/application/target/webstart/foo/org-netbeans-modules-xml-retriever/org-netbeans-modules-xml-retriever.jar

security: Entry [file:/Users/simpatico/ws/MemoPlatform/application/target/webstart/foo/org-netbeans-modules-xml-retriever/org-netbeans-modules-xml-retriever.jar] is not prevalidated. Revert to full validation of this JAR. security: Round 2 (0 out of 1):file:/Users/simpatico/ws/MemoPlatform/application/target/webstart/foo/org-netbeans-modules-xml-retriever/org-netbeans-modules-xml-retriever.jar security: Validating cached jar url=file:/Users/simpatico/ws/MemoPlatform/application/target/webstart/foo/org-netbeans-modules-xml-retriever/org-netbeans-modules-xml-retriever.jar ffile=/Users/simpatico/Library/Caches/Java/cache/6.0/24/28a82858-50d0b9d0 com.sun.deploy.cache.CachedJarFile@1b6509fe cache: Reading Signers from 1019 file:/Users/simpatico/ws/MemoPlatform/application/target/webstart/foo/org-netbeans-modules-xml-retriever/org-netbeans-modules-xml-retriever.jar | /Users/simpatico/Library/Caches/Java/cache/6.0/24/28a82858-50d0b9d0.idx security: Istrusted: null false

java -version

java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065) Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)