dotnet-devcert-trust
Agent skill fromAaronontheweb/dotnet-skills
Diagnose and fix .NET HTTPS dev certificate trust issues on Linux. Covers the full certificate lifecycle from generation to system CA bundle inclusion, with distro-specific guidance for Ubuntu, Fedora, Arch, and WSL2.
How to install dotnet-devcert-trust
install dotnet-devcert-trust
# install the dotnet-skills pack with the skills CLI
npx skills add Aaronontheweb/dotnet-skills# or add only this skill to Claude Code: copy the folder
skills/dotnet-devcert-trust/
# into
~/.claude/skills/dotnet-devcert-trust/ (all projects)
.claude/skills/dotnet-devcert-trust/ (one project)
1# .NET Dev Certificate Trust on Linux23## When to Use This Skill45Use this skill when:6- Redis TLS connections fail with `UntrustedRoot` or `RemoteCertificateNameMismatch` in Aspire7- `dotnet dev-certs https --check --trust` returns exit code 78- HTTPS localhost connections fail with certificate validation errors9- After running `dotnet dev-certs https --clean` and needing to restore trust10- Setting up a new Linux dev machine for .NET HTTPS development11- Aspire dashboard or inter-service gRPC calls fail with TLS errors12- Upgrading from Aspire < 13.1.0 (which didn't use TLS on Redis by default)1314## The Problem1516On Windows and macOS, `dotnet dev-certs https --trust` handles everything automatically — it generates the certificate, installs it in the user store, and adds it to the system trust store. On Linux, **it does almost nothing useful**. The command generates the cert and places it in the user store, but:17181. It does **not** export the certificate to the system CA directory192. It does **not** run `update-ca-certificates` to rebuild the CA bundle203. It does **not** add the cert to browser trust stores (NSS/NSSDB)214. The `--trust` flag silently succeeds but the cert remains untrusted2223This means .NET applications, OpenSSL, curl, and browsers all reject the dev certificate — even though `dotnet dev-certs https --check` reports it exists.2425### Why This Surfaces with Aspire 13.1.0+26…
Excerpt shown under the repository's MIT license.
