mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 05:26:03 +03:00
[GH-ISSUE #260] Specify CA Name on mkcert -install #169
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#169
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 @mfoster86 on GitHub (May 1, 2020).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/260
Would like to request the ability to specify a name for the CA certificate's subject common name when running
mkcert -install.Example:
mkcert -instal -name 'My Dev CA 01'The built-in method for generating the CN of the CA certificate uses parenthesis in the name which have to be escaped properly in certain languages, bash as an example.
@FiloSottile commented on GitHub (Oct 25, 2020):
This is a common request, but I prefer not to make the root customizable for a few reasons:
-nameor with a different-name? Does it destroy the current root?If parens are annoying, we can remove them. Can you tell us more about how you're using the root to understand what would work?
@mfoster86 commented on GitHub (Oct 25, 2020):
That makes sense on wanting to keep it development focused and not customizable. If removing the parentheses is possible then that would be great.
I tried to remember specifically what use case I was testing mkcert with at the time of posting this, but honestly cannot remember. I was probably testing a certificate scenario using a combination of Python/bash and ran into a character escaping problem with the parentheses.
@luxueyan commented on GitHub (Feb 26, 2021):
Some app must run in LAN. It need be customed
@eleven-net-cn commented on GitHub (Oct 17, 2022):
Sometimes we generate certificates that are shared by the team during the development phase,It would be better to allow custom name.
@laudukang commented on GitHub (Nov 4, 2022):
I'm really looking forward to this feature.
@c33s commented on GitHub (Feb 1, 2024):
especially in the development phase it customization is important. as developer who thinks about his variable names carefully i would really prefer to set a custom name (and maybe later much more). the custom name would help me in team development and also i would love to name the cert something like
AAA....to keep it at the top of all certs.from user security point of view we could also argue that a development certificate with an "unknown" name (a name not chosen by myself), can lead to forget such a cert in the browser which could lead to misuse from people who want to do harm.
trying to protect developers is a noble cause but in the end it is annoying most of the time. it leaves an odd feeling as if someone other is thinking for you.
so this is my vote for customizing the name.
@schontz commented on GitHub (Mar 4, 2025):
What name does mkcert currently used? I ran
mkcert -installand I can't readily find the certs in Keychain on macOS.@levymetal commented on GitHub (Jul 2, 2025):
In MacOS these are installed in the System keychain, and the Common Name will be
mkcert username@hostnamewhereusernameis your login name andhostnameis the host name reported by the kernel.@DoraTheExploder commented on GitHub (Aug 7, 2025):
I've discovered that if you use an external tool to generate a Certificate Signing Request (.csr) such as DigiCert CSR Tool (or do it manually with openssl), you can customize the relevant fields and then pass it as a sort of configuration file to mkcert with
$ mkcert -csr <domain>.I have not tested using a CSR for initial Root CA installation, but
$ mkcert --helpimplies that it should be possible.