Skip to content

aspire doctor reports that dev certs are trusted even though dotnet dev-certs --trust and aspire run report the opposite #13703

@davidfowl

Description

@davidfowl
user@omni-linux:~/dev/user$ aspire doctor

Aspire Environment Check
========================

.NET SDK
  ✓  .NET 10.0.100 installed (x64)
  ⚠  HTTPS development certificate is not trusted
        Certificate <redacted>
in the trusted root store.
        Run: dotnet dev-certs https --trust
        See: https://aka.ms/aspire-prerequisites#dev-certs

Container Runtime
  ⚠  Docker Engine detected (version 29.1.3). Aspire's container tunnel is required to allow containers to 
reach applications running on the host
        Set environment variable: ASPIRE_ENABLE_CONTAINER_TUNNEL=true
        See: https://aka.ms/aspire-prerequisites#docker-engine

Summary: 1 passed, 2 warnings, 0 failed
For detailed prerequisites: https://aka.ms/aspire-prerequisites

user@omni-linux:\~/dev/user$ dotnet dev-certs https --trust
Trusting the HTTPS development certificate was requested. Trust is per-user and may require additional configuration. See https://aka.ms/dev-certs-trust for more information.
There was an error trusting the HTTPS developer certificate. It will be trusted by some clients but not by others.
user@omni-linux:\~/dev/user$ aspire doctor

Aspire Environment Check
========================

.NET SDK
  ✓  .NET 10.0.100 installed (x64)
  ✓  HTTPS development certificate is trusted

Container Runtime
  ⚠  Docker Engine detected (version 29.1.3). Aspire's container tunnel is required to allow containers to 
reach applications running on the host
        Set environment variable: ASPIRE_ENABLE_CONTAINER_TUNNEL=true
        See: https://aka.ms/aspire-prerequisites#docker-engine

Summary: 2 passed, 1 warnings, 0 failed
For detailed prerequisites: https://aka.ms/aspire-prerequisites

user@omni-linux:~/dev/user$ aspire run
The following certificates were found, but none of them is trusted: 1 certificate
    1) <redacted> - CN=localhost - Valid from 2025-12-24 20:32:56Z to 
2026-12-24 20:32:56Z - IsHttpsDevelopmentCertificate: true - IsExportable: true
Run the command with --verbose for more details.
Trusting the HTTPS development certificate was requested. Trust is per-user and may require additional 
configuration. See https://aka.ms/dev-certs-trust for more information.
There was an error trusting the HTTPS developer certificate. It will be trusted by some clients but not by 
others.
⚠  Developer certificates may not be fully trusted (trust exit code was: 4).

     AppHost:  Omniblog/src/apphost.cs                                                 
                                                                                       
   Dashboard:  https://localhost:17081/login?t=YOUWISH        
                                                                                       
        Logs:  /home/user/.aspire/cli/logs/apphost-41850-2025-12-25-03-16-22.log   
                                                            
               Press CTRL+C to stop the apphost and exit.   
^C
🛑 Stopping Aspire.

user@omni-linux:~/dev/user$ sudo apt install libnss3-tools        
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  libnss3-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 615 kB of archives.
After this operation, 2,193 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble/main amd64 libnss3-tools amd64 2:3.98-1build1 [615 kB]
Fetched 615 kB in 1s (1,158 kB/s)     
Selecting previously unselected package libnss3-tools.
(Reading database ... 549811 files and directories currently installed.)
Preparing to unpack .../libnss3-tools_2%3a3.98-1build1_amd64.deb ...
Unpacking libnss3-tools (2:3.98-1build1) ...
Setting up libnss3-tools (2:3.98-1build1) ...
Processing triggers for man-db (2.12.0-4build2) ...
user@omni-linux:~/dev/user$ aspire run

     AppHost:  Omniblog/src/apphost.cs                                                 
                                                                                       
   Dashboard:  https://localhost:17081/login?t=DONT        
                                                                                       
        Logs:  /home/user/.aspire/cli/logs/apphost-50966-2025-12-25-03-26-05.log   
                                                            
               Press CTRL+C to stop the apphost and exit.   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions