Skip to content

Commit 6a1fa17

Browse files
authored
Simplify export command with sudo -E
1 parent c83906b commit 6a1fa17

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/dotnet/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,9 @@ sudo chown -R vscode:vscode /home/vscode/.dotnet
6666

6767
# Export the ASP.NET Core HTTPS development certificate to a PEM file
6868
# If there is no development certificate, this command will generate a new one
69-
DOTNET_NOLOGO=true \
70-
DOTNET_GENERATE_ASPNET_CERTIFICATE=false \
71-
dotnet dev-certs https --export-path /home/vscode/https.crt --format pem
69+
sudo -E dotnet dev-certs https --export-path /usr/local/share/ca-certificates/https.crt --format pem
7270

7371
# Add the PEM file to the trust store
74-
sudo mv /home/vscode/https.crt /usr/local/share/ca-certificates/https.crt
7572
sudo update-ca-certificates
7673
```
7774

0 commit comments

Comments
 (0)