2549N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 2549N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2549N/A * This code is free software; you can redistribute it and/or modify it 2549N/A * under the terms of the GNU General Public License version 2 only, as 2549N/A * published by the Free Software Foundation. 2549N/A * This code is distributed in the hope that it will be useful, but WITHOUT 2549N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2549N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2549N/A * version 2 for more details (a copy is included in the LICENSE file that 2549N/A * You should have received a copy of the GNU General Public License version 2549N/A * 2 along with this work; if not, write to the Free Software Foundation, 2549N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2549N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2549N/A * or visit www.oracle.com if you need additional information or have any 2549N/A * @summary Problem with PKCS12 keystore 2549N/A // Prepare a JKS keystore with many entries 2549N/A +
" -storepass changeit -keypass changeit " 2549N/A +
"-genkeypair -alias p" + i +
" -dname CN=" + i;
2549N/A // Prepare EncryptedPrivateKeyInfo parameters, copied from various 2549N/A // Pre-calculated keys and certs and aliases 2549N/A // Reads from JKS keystore and pre-calculate 2549N/A // Write into PKCS12 keystore. Use this overloaded version of 2549N/A // setKeyEntry() to be as fast as possible, so that they would 2549N/A // Check private keys still match certs