diff --git a/docker-compose.yml b/docker-compose.yml index c0ed829a..440af65d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -42,6 +42,9 @@ services: - CORE_EGRESS_EXCHANGE=${CORE_EGRESS_EXCHANGE} - CORE_EGRESS_HTTP_QUEUE=${CORE_EGRESS_HTTP_QUEUE} - CORE_EGRESS_HTTP_CTAG=${CORE_EGRESS_HTTP_CTAG} + - NODE_EXTRA_CA_CERTS=${TLS_CERTFILE} + volumes: + - ./src/compose/volumes/certs/:/etc/ssl/certs/ ########################################## i40-aas-grpc-endpoint-ingress: image: sapi40/i40-aas-grpc-endpoint-ingress diff --git a/src/ts/cmd/https-endpoint-egress/src/WebClient/WebClient.ts b/src/ts/cmd/https-endpoint-egress/src/WebClient/WebClient.ts index 44693695..96b0db3a 100644 --- a/src/ts/cmd/https-endpoint-egress/src/WebClient/WebClient.ts +++ b/src/ts/cmd/https-endpoint-egress/src/WebClient/WebClient.ts @@ -25,17 +25,10 @@ class WebClient { auth: { username: username as string, password: password as string, - }, - httpsAgent: new https.Agent({ - ca: cert as string - }), + } }); } else { - response = await Axios.post(url, body, { - httpsAgent: new https.Agent({ - ca: cert as string - }), - }); + response = await Axios.post(url, body); } return response as AxiosResponse; }