How to validate if a signed jar contains a timestamp?

前端 未结 4 789
忘了有多久
忘了有多久 2020-12-29 06:46

After a jar is signed and the -tsa option was used, how can I validate that the time stamp was included? I tried:

jarsigner -verify -verbose -certs myApp.jar         


        
4条回答
  •  春和景丽
    2020-12-29 07:21

    From https://blogs.oracle.com/mullan/entry/how_to_determine_if_a:

    You can use the jarsigner utility to determine if a signed JAR has been timestamped as follows:

    jarsigner -verify -verbose -certs signed.jar

    where signed.jar is the name of your signed JAR. If it is timestamped, the output will include lines of the following indicating the time it was signed:

    [entry was signed on 8/2/13 3:48 PM]

    If the JAR is not timestamped, the output will not include those lines.

提交回复
热议问题