Skip to content

Commit a53ad4c

Browse files
authored
fix difference in truststore env var name (#321)
* fix difference in truststore env var name * update api doc
1 parent 79ccb1c commit a53ad4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

HTTP_API.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@
12711271
12721272
`409` - A certificate with the same filename already exists in the truststore directory. The body includes the path where the file already exists.
12731273
1274-
`500` - The `TRUSTSTORE_DIR` environment variable is not set, or there is an unexpected error. The body is an error message.
1274+
`500` - The `SSL_TRUSTSTORE_DIR` environment variable is not set, or there is an unexpected error. The body is an error message.
12751275
12761276
###### example
12771277
```

src/main/java/com/redhat/rhjmc/containerjfr/net/web/http/api/v2/CertificatePostHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class CertificatePostHandler extends AbstractAuthenticatedRequestHandler {
7575
private final FileSystem fs;
7676
private final Logger logger;
7777

78-
private static final String TRUSTSTORE_DIR = "TRUSTSTORE_DIR";
78+
private static final String TRUSTSTORE_DIR = "SSL_TRUSTSTORE_DIR";
7979

8080
private Function<File, FileOutputStream> outputStreamFunction;
8181
private CertificateValidator certValidator;

0 commit comments

Comments
 (0)