mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 13:36:02 +03:00
[GH-ISSUE #383] Is it pssible to create ONE certificate to be used by all of my local development? #253
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#253
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 @Nefcanto on GitHub (Jul 16, 2021).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/383
I have a lot of websites and web apps. I'm using
.localas my development TLD. For example:This list is not known beforehand, thus I can't use SAN.
But is there possible to create ONE and ONLY ONE general
*.*certificate that can be used by all of these local domains?@rfay commented on GitHub (Jul 16, 2021):
mkcert -hshows you how to create a cert with many domain names, including wildcards.Just list all of your domains there.
@Nefcanto commented on GitHub (Jul 16, 2021):
Thank you @rfay for answering.
The point is, I don't know the name of the domains. Thus I can't list them there. Does this command work?
mkcert *.*@rfay commented on GitHub (Jul 16, 2021):
No, you can't create certs without knowing the names of the domains you're creating the certs for.
I maintain ddev though, that does all this for you on the fly (using mkcert). Maybe that would be an option for you.
But no, you cannot use any tool to create an "Accept-anything" cert. This is about certs and how they work, it's not about mkcert. You'd have to write your own browser and neuter its capabilities to do that. It's called "http" instead of "https".
@Nefcanto commented on GitHub (Jul 16, 2021):
OK, thank you. I understood. There is no possibility for a universal wildcard certificate to be used for development.
This means that I have to automate the certificate creation process somehow so that for each project I won't be required to create a certificate, update the Nginx config file, and create an entry in local DNS.
@minecraftchest1 commented on GitHub (Aug 24, 2021):
You could try
mkcert *.local. That should do a catch-all for everything under .local tld.@Nefcanto commented on GitHub (Aug 25, 2021):
@minecraftchest1 this is what I got:
So, this is not practical.
@gaby commented on GitHub (Sep 18, 2021):
This is not doable, you csn close the issue.
@harryqt commented on GitHub (Aug 4, 2022):
This doesn’t work.
@renatofrota commented on GitHub (Feb 11, 2024):
You can create a cert for
*.dev.localhost. It works and should resolve internally.app1.dev.localhost
app2.dev.localhost
etc...
will be all covered.
you can use anything else instead
devif you prefer. it is there just to make a 3rd level wildcard (instead a 2nd level one) and get accepted by browsers.