()
| 164 | * Configure global Node.js TLS settings |
| 165 | */ |
| 166 | export function configureGlobalMTLS(): void { |
| 167 | const mtlsConfig = getMTLSConfig() |
| 168 | |
| 169 | if (!mtlsConfig) { |
| 170 | return |
| 171 | } |
| 172 | |
| 173 | // NODE_EXTRA_CA_CERTS is automatically handled by Node.js at runtime |
| 174 | if (process.env.NODE_EXTRA_CA_CERTS) { |
| 175 | logForDebugging( |
| 176 | 'NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs', |
| 177 | ) |
| 178 | } |
| 179 | } |
no test coverage detected