mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 13:36:02 +03:00
[GH-ISSUE #30] Wildcard on second-level domain does not work #17
Labels
No labels
TLS stack issue
Windows
bug
duplicate
duplicate
enhancement
help wanted
help wanted
pull-request
question
question
root store
waiting for info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mkcert#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mcdado on GitHub (Jul 3, 2018).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/30
I have setup mkcert, and in apache config successfully created two sites:
hostname.localandsomename.test. These two work, but then I also tried to setup a wildcard*.testsystem where other folders in the~/Sitesare "converted" to.testdomains:This system in Apache works, but the certificate doesn't work:
FWIW, in Chrome the error is
NET::ERR_CERT_COMMON_NAME_INVALID.@kohenkatz commented on GitHub (Jul 3, 2018):
Most web browsers will not trust a second-level wildcard certificate. See here for example, which links to the source code in Chromiun (Google Chrome) that disallows it.
@FiloSottile commented on GitHub (Jul 3, 2018):
Indeed, this is not something that can be handled by mkcert AFAICT. It will work if you use a name like
*.wild.test.@FiloSottile commented on GitHub (Jul 3, 2018):
I'll add a warning though.
@bradical commented on GitHub (Nov 14, 2019):
I get that this is a fundamental browser limitation but anyone think of why the certificate might work for one domain and not another? I've got a "*.me" certificate installed into Apache for a VirtualHost proxy to
puma/puma-dev. And while one domain gives me a warning:the other says not secure but doesn't mention the certificate:
Any ideas?
@kohenkatz commented on GitHub (Nov 14, 2019):
@bradical Are you sure you accessed the second site using
https://and not just plainhttp://? Plainhttp://without thesis what your second screenshot looks like.For example:

@mcdado commented on GitHub (Nov 14, 2019):
It would appear you’re using Chrome, right? If you open DevTools there’s a security tab with more information about the certificate
@bradical commented on GitHub (Nov 14, 2019):
Thanks for that! I think you're right.
Thanks for that too! I was unsure where to look for certificate information in the latest Chrome.