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.
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, thevscode
user might be unable to use the dev-cert due to insufficient permissions. The dev-cert is owned byroot:root
and the file permissions are-rw------
(600).The solution is simply to run the
dotnet dev-certs https
command first as thevscode
user, resulting in the file being created with correct ownership. The use ofsudo
is still needed to export the dev-cert to theca-certificates/
directory.