dotnet / dotnet/aspnetcore

dotnet dev-certs https --trust generates certificate with future NotBefore time in .NET 9.0.7 (timezone UTC+2 Hungary)

Open
#63,003 2 comments 1 reaction 1 assignee Assigned to @Copilot View on GitHub
area-commandlinetools feature-devcerts
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

**Environment**
.NET SDK version: 9.0.7

**OS**: Windows 10/11 (Hungary timezone, UTC+2 during DST)

**Command**: dotnet dev-certs https --trust

**Problem**
When generating a development HTTPS certificate, the tool creates a cert where the NotBefore timestamp is set in the future by ~2 hours. This causes browsers and Visual Studio to reject it as "not yet valid" until that time passes.

**Expected behavior**
The NotBefore value should align with the current UTC time (or be immediately valid in local time) so the certificate is trusted right away.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.