FiloSottile / FiloSottile/mkcert

Certificate is generated with a wrong DateTime

Open
#524 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
59.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

## Environment

* Operating system (including version): Windows 11 Pro 22H2
* mkcert version (from `mkcert -version`): 1.4.1
* Server (where the certificate is loaded): local
* Client (e.g. browser, CLI tool, or script): browser/cli
* Date, time and timezone are configured to set automatically

## What you did

1. `.\mkcert.exe -install`
2. `.\mkcert.exe "*.headless.localhost"`
3. `.\mkcert.exe -install`
4. Open browser, try to open cm.headless.localhost
![image](https://github.com/FiloSottile/mkcert/assets/647813/7f46221c-b334-4819-b9b8-e7713adb3ed2)
5. Open `certmgr.msc`
![image](https://github.com/FiloSottile/mkcert/assets/647813/e1d2fc07-2e4a-4eb1-8ce4-92e90bec8a2b)
![image](https://github.com/FiloSottile/mkcert/assets/647813/bc0446ac-f530-4664-a1a0-4387c9764d24)
![image](https://github.com/FiloSottile/mkcert/assets/647813/2eec59d3-7d15-4c2c-90e5-f86785aa65fc)
6. Check current time: 12 of May 2023, 1:26 AM GMT+2

## What went wrong

For some reason, the certificate generates for future + 8 hours.
And it is a reason, why it is invalid for browser or CLI calls.
(Or there is some other reason, I will confirm Date/time hypothesis after 10 hours)

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.