Skip to content

Commit 4d934f5

Browse files
authored
0.59.1
* fix keytool invocation * fix problem with generating CSRs on Linux
2 parents f45347a + 51b847a commit 4d934f5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ subprojects {
55
apply plugin: 'maven'
66

77
group 'org.iot-dsa'
8-
version '0.59.0'
8+
version '0.59.1'
99

1010
sourceCompatibility = 1.8
1111
targetCompatibility = 1.8

dslink-v2/src/main/java/com/acuity/iot/dsa/dslink/sys/cert/KeyToolUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static String[] generateCSR(String keystore, String password) throws IOEx
4242
"-alias", "dsa",
4343
"-keyalg", "RSA",
4444
"-validity", "18000",
45-
"-dname", "\"CN=dslink-java-v2, O=DSA, C=US\"",
45+
"-dname", "CN=dslink-java-v2, O=DSA, C=US",
4646
"-file", filename
4747
};
4848
String result = inst.executeCommand(cmd);
@@ -128,7 +128,7 @@ public static String importPrimaryCert(String keystore, String certStr, String p
128128
private String executeCommand(String[] cmd) {
129129
try {
130130
ProcessBuilder builder = new ProcessBuilder();
131-
Process process = builder.command(cmd).start();
131+
Process process = builder.command(cmd).redirectErrorStream(true).start();
132132
process.waitFor();
133133
BufferedReader reader = new BufferedReader(
134134
new InputStreamReader(process.getInputStream()));

0 commit comments

Comments
 (0)