test/jdk/sun/security/tools/jarsigner/multiRelease/MVJarSigningTest.java
changeset 59104 046e4024e55a
parent 48690 374c63fbe652
equal deleted inserted replaced
59103:4a09d4df104c 59104:046e4024e55a
     1 /*
     1 /*
     2  * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   150         Files.deleteIfExists(Paths.get(KEYSTORE));
   150         Files.deleteIfExists(Paths.get(KEYSTORE));
   151         ProcessTools.executeCommand(keytool,
   151         ProcessTools.executeCommand(keytool,
   152                 "-J-Duser.language=en",
   152                 "-J-Duser.language=en",
   153                 "-J-Duser.country=US",
   153                 "-J-Duser.country=US",
   154                 "-genkey",
   154                 "-genkey",
       
   155                 "-keyalg", "dsa",
   155                 "-alias", ALIAS,
   156                 "-alias", ALIAS,
   156                 "-keystore", KEYSTORE,
   157                 "-keystore", KEYSTORE,
   157                 "-keypass", KEYPASS,
   158                 "-keypass", KEYPASS,
   158                 "-dname", "cn=sample",
   159                 "-dname", "cn=sample",
   159                 "-storepass", STOREPASS
   160                 "-storepass", STOREPASS