Skip to content

Commit 1bcd936

Browse files
committed
Update instructions on how to regenerate CA certificate bundle in Linux
1 parent d837db9 commit 1bcd936

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,20 @@ The certificate for the emulator is available at the path `_explorer/emulator.pe
407407
```bash
408408
cp ~/emulatorcert.crt /usr/local/share/ca-certificates/
409409
```
410+
1. Update CA certificates and regenerate the certificate bundle by using the appropriate command for your Linux distribution.
411+
412+
For **Debian-based** systems (e.g., Ubuntu), use:
413+
414+
```bash
415+
sudo update-ca-certificates
416+
```
417+
418+
For **Red Hat-based** systems (e.g., CentOS, Fedora), use:
419+
```bash
420+
sudo update-ca-trust
421+
```
422+
423+
For more detailed instructions, consult the documentation specific to your Linux distribution.
410424
411425
### [Windows (local)](#tab/windows)
412426
@@ -559,12 +573,13 @@ Use the [Azure Cosmos DB API for NoSQL Python SDK](nosql/quickstart-python.md) t
559573
560574
1. Once you have identified the DEFAULT_CA_BUNDLE_PATH, open a **new terminal** and run the following commands to append the emulator certificate to the certificate bundle:
561575
> [!IMPORTANT]
562-
> If DEFAULT_CA_BUNDLE_PATH variable points to a system directory, you might encounter a **"Permission denied"** error. In this case, you will need to run the commands with elevated privileges (as root).
563-
>
576+
> If DEFAULT_CA_BUNDLE_PATH variable points to a **system directory**, you might encounter a **"Permission denied"** error. In this case, you will need to run the commands with elevated privileges (as root). Also, you will need to [update and regenerate the certificate bundle](#import-the-emulators-tlsssl-certificate) after executing the provided commands.
577+
564578
```bash
565579
# Add a new line to the certificate bundle
566580
echo >> /path/to/ca_bundle
567581
```
582+
568583
```bash
569584
# Append the emulator certificate to the certificate bundle
570585
cat /path/to/emulatorcert.crt >> /path/to/ca_bundle

0 commit comments

Comments
 (0)