2469N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 2469N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2469N/A# This code is free software; you can redistribute it and/or modify it 2469N/A# under the terms of the GNU General Public License version 2 only, as 2469N/A# published by the Free Software Foundation. 2469N/A# This code is distributed in the hope that it will be useful, but WITHOUT 2469N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2469N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2469N/A# version 2 for more details (a copy is included in the LICENSE file that 2469N/A# You should have received a copy of the GNU General Public License version 2469N/A# 2 along with this work; if not, write to the Free Software Foundation, 2469N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2469N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2469N/A# @summary regression: PKIXValidator fails when multiple trust anchors 2469N/Aif [
"${TESTSRC}" =
"" ] ;
then 2469N/Aif [
"${TESTJAVA}" =
"" ] ;
then 2469N/A# set platform-dependent variables 2469N/A# 1. Generate 3 aliases in a keystore: ca1, ca2, user. The CAs' startdate 2469N/A# is set to one year ago so that they are expired now 2469N/A# 4. Remove user for cacerts 2469N/A# 5. Build and run test. Make sure the CA certs are ignored for validity check. 2469N/A# Check both, one of them might be dropped out of map in old codes.