8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires

Reviewed-by: mullan
This commit is contained in:
Weijun Wang 2017-10-27 21:11:15 +08:00
parent 2dfe7fb8ab
commit 69db146335
10 changed files with 484 additions and 209 deletions

View file

@ -724,7 +724,8 @@ public class SignatureFileVerifier {
if (signers == null) {
signers = new ArrayList<>();
}
// Append the new code signer
// Append the new code signer. If timestamp is invalid, this
// jar will be treated as unsigned.
signers.add(new CodeSigner(certChain, info.getTimestamp()));
if (debug != null) {