devcontainers / images

Repository for pre-built dev container images published under mcr.microsoft.com/devcontainers
https://containers.dev
MIT License
1.11k stars 411 forks source link

dotnet: amend dev-cert script in README #1103

Closed sliekens closed 1 week ago

sliekens commented 1 week ago

Hello again,

This is a minor correction for the dev-cert instructions that I added earlier this week in #1095.

In the original instructions, sudo is used to generate a new dev-cert. As a result, the vscode user might be unable to use the dev-cert due to insufficient permissions. The dev-cert is owned by root:root and the file permissions are -rw------ (600).

The solution is simply to run the dotnet dev-certs https command first as the vscode user, resulting in the file being created with correct ownership. The use of sudo is still needed to export the dev-cert to the ca-certificates/ directory.