File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import * as tls from 'tls';
4
4
import url = require( 'url' ) ;
5
5
import { oneLine } from 'common-tags' ;
6
6
import CacheableLookup from 'cacheable-lookup' ;
7
+ import * as semver from 'semver' ;
7
8
8
9
import { CompletedBody , Headers } from '../types' ;
9
10
import { byteLength } from '../util/util' ;
@@ -92,6 +93,11 @@ export const getUpstreamTlsOptions = (strictChecks: boolean): tls.SecureContextO
92
93
requestOSCP : true
93
94
} as any ) ,
94
95
96
+ // Trust intermediate certificates from the trusted CA list too. Without this, trusted CAs
97
+ // are only used when they are self-signed root certificates. Seems to cause issues in Node v20
98
+ // in HTTP/2 tests, so disabled below the supported v22 version.
99
+ allowPartialTrustChain : semver . satisfies ( process . version , '>=22.9.0' ) ,
100
+
95
101
// Allow TLSv1, if !strict:
96
102
minVersion : strictChecks ? tls . DEFAULT_MIN_VERSION : 'TLSv1' ,
97
103
You can’t perform that action at this time.
0 commit comments