Internet Access TLS inspection troubleshooting
Microsoft's edit ·
Microsoft's commit message in MicrosoftDocs/entra-docs · commit 7ccf49a · +17 −3 lines · also on GitHub
⋯ 83 unchanged lines
8484
8585
#### Command Line
8686
87
+Use the `--use-system-ca` flag when running your application. Replace `<your-app>.js` with your application's entry point (for example, `index.js` or `server.js`):
88
+
8789
```bash
88
−node --use-system-ca app.js
90
+node --use-system-ca <your-app>.js
8991
```
9092
91
−#### Environment Variable
93
+#### Environment Variable (single session)
9294
95
+Set the variable inline for a single command:
96
+
9397
```bash
94
−NODE_USE_SYSTEM_CA=1 node app.js
98
+NODE_USE_SYSTEM_CA=1 node <your-app>.js
9599
```
100
+
101
+#### Environment Variable (all Node.js apps)
102
+
103
+To apply the setting permanently to all Node.js applications on the machine, set `NODE_USE_SYSTEM_CA` as a system environment variable:
104
+
105
+```powershell
106
+setx NODE_USE_SYSTEM_CA 1
107
+```
108
+
109
+After running this command, restart any open terminals for the change to take effect. All Node.js processes will then use the system certificate store automatically.
96110
97111
## Applications don't work on mobile platforms
98112
Mobile applications might fail when TLS inspection is enabled due to certificate pinning, which restricts applications to trust only specific certificates.
⋯ 21 unchanged lines
Microsoft's Markdown source from MicrosoftDocs/entra-docs, © Microsoft Corporation, under MIT. Changed lines with up to 3 unchanged lines around each; ChangeIntel kept this copy 10 Oct 00:54 UTC. The commit date is when the source changed, which can be hours or days before Learn published it.