Skip to content

Commit

Permalink
8325096: Test java/security/cert/CertPathBuilder/akiExt/AKISerialNumb…
Browse files Browse the repository at this point in the history
…er.java is failing

Backport-of: ac1cd3194910793b02e86c2c0dedaa321f137d4e
  • Loading branch information
shipilev committed Feb 7, 2024
1 parent 770d899 commit 629828a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -118,6 +118,8 @@ public static void main(String[] args) throws Exception {
PKIXBuilderParameters params = new PKIXBuilderParameters
(Collections.singleton(anchor), sel);
params.setRevocationEnabled(false);
// Set date to 2024-01-01 to satisfy cert constraints
params.setDate(new java.util.Date(1704067200000l));

ArrayList<X509Certificate> certs = new ArrayList<>();
certs.add(intCert);
Expand Down

0 comments on commit 629828a

Please sign in to comment.