1 /* |
1 /* |
2 * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 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. |
75 testSignJarUpdate("test-update.jar", "test-updated.jar"); |
75 testSignJarUpdate("test-update.jar", "test-updated.jar"); |
76 } |
76 } |
77 |
77 |
78 static void prepare() throws Exception { |
78 static void prepare() throws Exception { |
79 SecurityTools.keytool("-keystore", keystoreFileName, "-genkeypair", |
79 SecurityTools.keytool("-keystore", keystoreFileName, "-genkeypair", |
|
80 "-keyalg", "dsa", |
80 "-storepass", "changeit", "-keypass", "changeit", "-storetype", |
81 "-storepass", "changeit", "-keypass", "changeit", "-storetype", |
81 "JKS", "-alias", alias, "-dname", "CN=X", "-validity", "366") |
82 "JKS", "-alias", alias, "-dname", "CN=X", "-validity", "366") |
82 .shouldHaveExitValue(0); |
83 .shouldHaveExitValue(0); |
83 |
84 |
84 Files.write(Paths.get(manifestFileName), (Name. |
85 Files.write(Paths.get(manifestFileName), (Name. |