selfissued.sh revision 2306
2306N/A# Copyright 2009-2010 Sun Microsystems, Inc. All Rights Reserved. 1031N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1031N/A# This code is free software; you can redistribute it and/or modify it 1031N/A# under the terms of the GNU General Public License version 2 only, as 1031N/A# published by the Free Software Foundation. 1031N/A# This code is distributed in the hope that it will be useful, but WITHOUT 1031N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1031N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1031N/A# version 2 for more details (a copy is included in the LICENSE file that 1031N/A# You should have received a copy of the GNU General Public License version 1031N/A# 2 along with this work; if not, write to the Free Software Foundation, 1031N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1031N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 2306N/A# @summary support self-issued certificate in keytool and let -gencert generate the chain 1031N/Aif [
"${TESTJAVA}" =
"" ] ;
then 1031N/A# set platform-dependent variables 2306N/A# ca signs ca1, ca1 signs ca2, all self-issued 2306N/A# Import e1 signed by ca2, should add ca2 and ca1, at least 3 certs in the chain