mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 13:36:02 +03:00
[GH-ISSUE #204] How to customize CN? #131
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#131
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 @ddnexus on GitHub (Oct 8, 2019).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/204
I need a certificate with a specific Common Name. I didn't find any doc about that. Is it possible to customize? Thanks.
@FiloSottile commented on GitHub (Nov 9, 2019):
We don't support this, you can see some of the reasons at #205
@ddnexus commented on GitHub (Nov 10, 2019):
Thanks for your answer.
We understood that trying to use mkcert for our particular case was not a good idea for quite a few reasons.
We opt for a quite simple custom script that automates the creation of the CA root + a star-domain certificate and their addition to proxy server, java-truststore, FF trustore, etc.
@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.