Skip to content

Commit bd3eb9d

Browse files
Merge pull request #2 from redvanworkshop/feature/tls-troubleshooting
Added troubleshooting information regarding invalid domain certificates
2 parents 65db2cd + ad8a350 commit bd3eb9d

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

docs/troubleshooting.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,24 @@ Troubleshooting
99
1010
<img src="https://octodex.github.com/images/dinotocat.png" width="400" />
1111

12-
#### No Known Issues to Date
12+
#### Invalid Domain Certificates
13+
14+
For `sfcc-cli` commands that initiate network requests, you may get an error similar to the following:
15+
16+
``Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: dev09.commerce.myclient.demandware.net. is not in the cert's altnames: DNS:*.demandware.net, DNS:demandware.net``
17+
18+
This is because node cannot verify that the server is valid according to the TLS certificate. The following command executed in your terminal will temporarily disable this check while you have your terminal session open.
19+
20+
#### Mac and Linux
21+
22+
```bash
23+
export NODE_TLS_REJECT_UNAUTHORIZED=0
24+
```
25+
26+
#### Windows
27+
28+
```bash
29+
set NODE_TLS_REJECT_UNAUTHORIZED=0
30+
```
31+
32+

0 commit comments

Comments
 (0)