3210N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 3210N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3210N/A# This code is free software; you can redistribute it and/or modify it 3210N/A# under the terms of the GNU General Public License version 2 only, as 3210N/A# published by the Free Software Foundation. 3210N/A# This code is distributed in the hope that it will be useful, but WITHOUT 3210N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3210N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3210N/A# version 2 for more details (a copy is included in the LICENSE file that 3210N/A# You should have received a copy of the GNU General Public License version 3210N/A# 2 along with this work; if not, write to the Free Software Foundation, 3210N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3210N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3210N/A# @summary jarsigner -verify checks for KeyUsage codesigning ext on all certs 3210N/A# instead of just signing cert 3210N/Aif [
"${TESTJAVA}" =
"" ] ;
then 3210N/A# set platform-dependent variables 3210N/A################### 3 Keystores ####################### 3210N/A# CA contains a non-empty KeyUsage 3210N/A# Publisher contains the correct KeyUsage 3210N/A################### 4 Tests ####################### 3210N/A# Test 2: Verify should be OK 3210N/A# Test 3: When no keystore is specified, the error is only 3210N/A# Test 4: When unrelated keystore is specified, the error is 3210N/A# "chain not validated" and "not alias in keystore"