Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify export command with sudo -E
  • Loading branch information
sliekens authored Jun 18, 2024
commit 6a1fa17b581be2ed14750199ed4f8a3382d24b0e
5 changes: 1 addition & 4 deletions src/dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,9 @@ sudo chown -R vscode:vscode /home/vscode/.dotnet

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

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

Expand Down