equal
deleted
inserted
replaced
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 |