Is it possible to have SHA1-Digest in java Manifest file without actually using a key

前端 未结 2 1969
轮回少年
轮回少年 2021-01-13 21:16

Currently we use jarsigner to sign our jar. We then display some SHA1-Digest values for some specific classes to prove to an external auditor that the code has not changed b

2条回答
  •  情话喂你
    2021-01-13 22:06

    Signature verification will fail...

    Why?

    JAR File Verification -> Verify the signature of the .SF file itself.

    That is, the verification ensures that the signature stored in each signature block (.DSA) file was in fact generated using the private key corresponding to the public key whose certificate (or certificate chain) also appears in the .DSA file. It also ensures that the signature is a valid signature of the corresponding signature (.SF) file, and thus the .SF file has not been tampered with.

    For more info http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jarsigner.html

提交回复
热议问题