diff --git a/aspnetcore/security/enforcing-ssl.md b/aspnetcore/security/enforcing-ssl.md
index 3e9e60308e..041f1c7dae 100644
--- a/aspnetcore/security/enforcing-ssl.md
+++ b/aspnetcore/security/enforcing-ssl.md
@@ -396,24 +396,32 @@ For more information, see [Setting Up Certificate Authorities (CAs) in Firefox](
See [this GitHub issue](https://github.com/dotnet/AspNetCore.Docs/issues/6199).
-## Ubuntu trust the certificate for service-to-service communication
+## Trust HTTPS certificate on Linux
+
+Establishing trust is distribution and browser specific. The following sections provide instructions for some popular distributions and the Chromium browsers (Edge and Chrome) and for Firefox.
+
+### Ubuntu trust the certificate for service-to-service communication
1. Install [OpenSSL](https://www.openssl.org/) 1.1.1h or later. See your distribution for instructions on how to update OpenSSL.
1. Run the following commands:
```cli
- sudo dotnet dev-certs https -ep /usr/local/share/ca-certificates/aspnet/https.crt --format PEM
+ dotnet dev-certs https
+ sudo -E dotnet dev-certs https -ep /usr/local/share/ca-certificates/aspnet/https.crt --format PEM
sudo update-ca-certificates
```
+The preceding commands:
+
+* Ensure the current user's developer certificate is created.
+* Exports the certificate with elevated permissions needed for the `ca-certificates` folder, using the current user's environment.
+* Removing the `-E` flag exports the root user certificate, generating it if necessary. Each newly generated certificate has a different thumbprint. When running as root, `sudo` and `-E` are not needed.
+
+
The path in the preceding command is specific for Ubuntu. For other distributions, select an appropriate path or use the path for the Certificate Authorities (CAs).
-## Trust HTTPS certificate on Linux
-
-Establishing trust is browser specific. The following sections provide instructions for the Chromium browsers Edge and Chrome and for Firefox.
-
### Trust HTTPS certificate on Linux using Edge or Chrome
For chromium browsers on Linux:
@@ -423,10 +431,11 @@ For chromium browsers on Linux:
* Export the certificate with the following command:
```cli
- dotnet dev-certs https -ep /usr/local/share/ca-certificates/aspnet/https.crt --format PEM
+ dotnet dev-certs https
+ sudo -E dotnet dev-certs https -ep /usr/local/share/ca-certificates/aspnet/https.crt --format PEM
```
- The path in the preceding command is specific for Ubuntu. For other distributions, select an appropriate path or use the path for the Certificate Authorities (CAs). **You may need elevated permissions to export the certificate to the `ca-certificates` folder.**
+ The path in the preceding command is specific for Ubuntu. For other distributions, select an appropriate path or use the path for the Certificate Authorities (CAs).
* Run the following commands:
@@ -444,24 +453,27 @@ For chromium browsers on Linux:
* Export the certificate with the following command:
```vstscli
- dotnet dev-certs https -ep /usr/local/share/ca-certificates/aspnet/https.crt --format PEM
+ dotnet dev-certs https
+ sudo -E dotnet dev-certs https -ep /usr/local/share/ca-certificates/aspnet/https.crt --format PEM
```
The path in the preceding command is specific for Ubuntu. For other distributions, select an appropriate path or use the path for the Certificate Authorities (CAs).
* Create a JSON file at `/usr/lib/firefox/distribution/policies.json` with the following contents:
- ```json
- {
- "policies": {
- "Certificates": {
- "Install": [
- "/usr/local/share/ca-certificates/aspnet/https.crt"
- ]
- }
- }
- }
- ```
+```sh
+cat <