Skip to content

Conversation

@amcasey
Copy link
Member

@amcasey amcasey commented Aug 10, 2024

I thought this already worked, but it turns out it behaves differently depending on how you launch it. When it is launched as a snap (vs from the command line), it can only access things in its own folder, so it looks in a different NSS DB for trusted certs. Fixing this is as simple as adding one more well-known location to the list.

I thought this already worked, but it turns out it behaves differently depending on how you launch it.  When it is launched as a snap (vs from the command line), it can only access things in its own folder, so it looks in a different NSS DB for trusted certs.  Fixing this is as simple as adding one more well-known location to the list.
@ghost ghost added the area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI label Aug 10, 2024
@amcasey
Copy link
Member Author

amcasey commented Aug 10, 2024

/backport to release/8.0

@github-actions
Copy link
Contributor

Started backporting to release/8.0: https://github.com/dotnet/aspnetcore/actions/runs/10327407839

@amcasey
Copy link
Member Author

amcasey commented Aug 10, 2024

Validated locally.

@amcasey amcasey enabled auto-merge (squash) August 10, 2024 00:47

private static string GetChromiumSnapNssDb(string homeDirectory)
{
return Path.Combine(homeDirectory, "snap", "chromium", "current", ".pki", "nssdb");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

current is a symlink to a folder named for the version number.

@amcasey amcasey merged commit bbad091 into dotnet:main Aug 10, 2024
@dotnet-policy-service dotnet-policy-service bot added this to the 9.0-rc1 milestone Aug 10, 2024
@amcasey amcasey deleted the ChromeSnap branch August 12, 2024 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants