[GH-ISSUE #1] Wildcard Cert Support #1

Closed
opened 2026-02-25 22:32:21 +03:00 by kerem · 2 comments
Owner

Originally created by @stealthybox on GitHub (Jun 26, 2018).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/1

Hey Filippo,
Thanks for putting together this tool -- I hacked a solution for this use case on Windows before and it was not easy to do.

The first thing I tried was to create a wildcard cert:

ERROR: "*.test.com" is not a valid hostname or IP

This regex doesn't allow asterisks which is at least part of the issue:
https://github.com/FiloSottile/mkcert/blob/master/main.go#L104

Should we support this?

Cheers! 🦄

Originally created by @stealthybox on GitHub (Jun 26, 2018). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/1 Hey Filippo, Thanks for putting together this tool -- I hacked a solution for this use case on Windows before and it was not easy to do. The first thing I tried was to create a wildcard cert: ``` ERROR: "*.test.com" is not a valid hostname or IP ``` This regex doesn't allow asterisks which is at least part of the issue: https://github.com/FiloSottile/mkcert/blob/master/main.go#L104 Should we support this? Cheers! 🦄
kerem closed this issue 2026-02-25 22:32:21 +03:00
Author
Owner

@beyondgrayzone commented on GitHub (Jun 27, 2018):

re := regexp.MustCompile(`^[\*|0-9A-Za-z._-]+$`)

should be good enough

<!-- gh-comment-id:400640743 --> @beyondgrayzone commented on GitHub (Jun 27, 2018): ```go re := regexp.MustCompile(`^[\*|0-9A-Za-z._-]+$`) ``` should be good enough
Author
Owner

@stealthybox commented on GitHub (Jun 28, 2018):

nice!
thanks @FiloSottile

<!-- gh-comment-id:401128289 --> @stealthybox commented on GitHub (Jun 28, 2018): nice! thanks @FiloSottile
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mkcert#1
No description provided.