Skip to content

Commit

Permalink
Update CAClient to use httpOptions.verify (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipe.fuerback authored Apr 11, 2024
1 parent b572f20 commit 33a8c91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chain-client/src/hf/CAClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ function buildCAClient(ccp: Record<string, unknown>, caHostName: string): Fabric

const tlsCACerts = caInfo.tlsCACerts as unknown as { pem?: string; path?: string };
const caTLSCACerts = tlsCACerts?.pem ?? tlsCACerts?.path;
const tlsConfig = caTLSCACerts ? { trustedRoots: [caTLSCACerts], verify: false } : undefined;
const tlsConfig = caTLSCACerts
? { trustedRoots: [caTLSCACerts], verify: caInfo?.httpOptions?.verify }
: undefined;

const caName = caInfo.caName;
if (caName === undefined) {
Expand Down

0 comments on commit 33a8c91

Please sign in to comment.