Skip to content

Commit d992a39

Browse files
Merge pull request #309 from SavioBS629/apiclient-tls-strict-validation
fix: enable strict TLS validation when CA cert is configured
2 parents 87588f7 + 0595a3d commit d992a39

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/lib/apiClient.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ function getAxiosAgent(): AxiosRequestConfig["httpsAgent"] | undefined {
7878
host: proxyHost,
7979
port: Number(proxyPort),
8080
ca,
81-
rejectUnauthorized: false, // Set to true if you want strict SSL
8281
});
8382
} else {
8483
// Proxy only
@@ -88,7 +87,6 @@ function getAxiosAgent(): AxiosRequestConfig["httpsAgent"] | undefined {
8887
// CA only
8988
return new https.Agent({
9089
ca: fs.readFileSync(caCertPath),
91-
rejectUnauthorized: false, // Set to true for strict SSL
9290
});
9391
}
9492
// Default agent (no proxy, no CA)

0 commit comments

Comments
 (0)