Skip to content

Commit faddab9

Browse files
committed
Add missing certutil command
1 parent 40d3112 commit faddab9

File tree

1 file changed

+41
-15
lines changed

1 file changed

+41
-15
lines changed

articles/cosmos-db/how-to-develop-emulator.md

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -401,21 +401,47 @@ The Windows local installation of the emulator automatically imports the TLS/SSL
401401

402402
The certificate for the emulator is available at the path `_explorer/emulator.pem` on the running container. Use `curl` to download the certificate from the running container to your local machine.
403403

404-
For Linux systems, use:
405-
406-
```bash
407-
curl --insecure https://localhost:8081/_explorer/emulator.pem > ~/emulatorcert.crt
408-
```
409-
410-
```powershell
411-
$parameters = @{
412-
Uri = 'https://localhost:8081/_explorer/emulator.pem'
413-
Method = 'GET'
414-
OutFile = 'emulatorcert.crt'
415-
SkipCertificateCheck = $True
416-
}
417-
Invoke-WebRequest @parameters
418-
```
404+
1. Get the certificate from the running container.
405+
406+
For Linux systems, use:
407+
408+
```bash
409+
curl --insecure https://localhost:8081/_explorer/emulator.pem > ~/emulatorcert.crt
410+
```
411+
412+
For Windows systems, use:
413+
414+
```powershell
415+
$parameters = @{
416+
Uri = 'https://localhost:8081/_explorer/emulator.pem'
417+
Method = 'GET'
418+
OutFile = 'emulatorcert.crt'
419+
SkipCertificateCheck = $True
420+
}
421+
Invoke-WebRequest @parameters
422+
```
423+
424+
1. Regenerate the certificate bundle by using the appropriate command for your operating system.
425+
426+
For **Debian-based** Linux systems (for example, Ubuntu), use:
427+
428+
```bash
429+
sudo update-ca-certificates
430+
```
431+
432+
For **Red Hat-based** Linux systems (for example, CentOS, Fedora), use:
433+
434+
```bash
435+
sudo update-ca-trust
436+
```
437+
438+
For Windows systems, use:
439+
440+
```powershell
441+
certutil -f -addstore "Root" ~/emulatorcert.crt
442+
```
443+
444+
For more detailed instructions, consult the documentation specific to your operating system.
419445

420446
### [Docker (Windows container)](#tab/docker-windows)
421447

0 commit comments

Comments
 (0)