Skip to content
aaronontheweb avatar

Dotnet Devcert Trust

Diagnose and repair .NET HTTPS dev certificate trust on Linux by rebuilding the system CA bundle.

CCM score
77 of 100
skills.sh installs
480
GitHub stars
1.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full dev certificate lifecycle, from generation through update-ca-certificates inclusion in the consolidated bundle
  • Includes a 5-point diagnostic procedure (existence, system store, bundle inclusion, environment overrides, symlink integrity) with a full recovery script
  • Enforces correct 644 permissions and removal of stale aspnetcore-dev.crt and aspnet/ files that block trust
  • Designed for .NET developers on Linux hitting UntrustedRoot errors with Aspire 13.1.0+ Redis TLS, with distro notes for Ubuntu, Fedora, Arch, and WSL2

Install

$ npx -y skills add aaronontheweb/dotnet-skills --skill dotnet-devcert-trust -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

.NET Dev Certificate Trust on Linux

When to Use This Skill

Use this skill when:

  • Redis TLS connections fail with UntrustedRoot or RemoteCertificateNameMismatch in Aspire
  • dotnet dev-certs https --check --trust returns exit code 7
  • HTTPS localhost connections fail with certificate validation errors
  • After running dotnet dev-certs https --clean and needing to restore trust
  • Setting up a new Linux dev machine for .NET HTTPS development
  • Aspire dashboard or inter-service gRPC calls fail with TLS errors
  • Upgrading from Aspire < 13.1.0 (which didn't use TLS on Redis by default)

The Problem

On 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:

Details

Repository
github.com/aaronontheweb/dotnet-skills
Categories
.NET & C#, DevOps & Cloud, Debugging
First seen
Jun 3, 2026

Questions

What does the dotnet-devcert-trust skill do?

It diagnoses and fixes .NET HTTPS dev certificate trust problems on Linux, covering the certificate lifecycle from generation to inclusion in the system CA bundle. It gives distro-specific guidance for Ubuntu, Fedora, Arch and WSL2.

Why does dotnet dev-certs https --trust not work on Linux?

On Linux the command generates the certificate and places it in the user store, but it does not export it to the system CA directory or run update-ca-certificates. Applications then reject the certificate even though dotnet dev-certs https --check reports it exists.

How do I install the dotnet-devcert-trust skill?

Run npx -y skills add aaronontheweb/dotnet-skills --skill dotnet-devcert-trust -y in a project. The skill then lets your agent walk through a five-point diagnostic and a full recovery procedure for broken .NET dev certificate trust.

Why do Redis TLS connections fail in Aspire after upgrading to 13.1.0?

Starting with Aspire 13.1.0, Redis connections use TLS by default. If the dev certificate is not trusted at the system level, connections fail with an UntrustedRoot authentication error, which this skill is designed to fix.

More from aaronontheweb/dotnet-skills

All 34

Similar to Dotnet Devcert Trust

More .NET & C#