Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/feature/MTM-58365-chain-…
Browse files Browse the repository at this point in the history
…inference' into feature/feature/MTM-58365-chain-inference
  • Loading branch information
pans-c8y committed Aug 9, 2024
2 parents b445789 + 2e45b42 commit 02649c1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ private static HttpRequest buildRequest() {
try {
Builder builder = HttpRequest.newBuilder().uri(new URI(PLATFORM_URL + ":" + PLATFORM_MTLS_PORT + DEVICE_ACCESS_TOKEN_PATH))
.POST(HttpRequest.BodyPublishers.noBody()).header("Accept", "application/json");
// X_SSL_CERT_CHAIN: This header is not mandatory, if you have uploaded the immediate issuer of the device certificate
// as trusted certificate in Platform
if (LOCAL_DEVICE_CHAIN != null && !LOCAL_DEVICE_CHAIN.isEmpty()) {
builder.header(X_SSL_CERT_CHAIN, LOCAL_DEVICE_CHAIN);
}
Expand Down

0 comments on commit 02649c1

Please sign in to comment.