[PR #77] [MERGED] Add ability of customizing file name #383

Closed
opened 2026-02-25 22:33:20 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/FiloSottile/mkcert/pull/77
Author: @sleagon
Created: 10/10/2018
Status: Merged
Merged: 1/7/2019
Merged by: @FiloSottile

Base: masterHead: master


📝 Commits (2)

  • 8125004 Add -cert-file, -key-file and -p12-file (#77)
  • 8e89158 Refactor output path flags

📊 Changes

2 files changed (+40 additions, -14 deletions)

View changed files

📝 cert.go (+32 -13)
📝 main.go (+8 -1)

📄 Description

Just as mentioned in issue #72 which was opened more than one month ago, it is useful to customlize the name of target file.

Usage:

mkcert --key-file my-cert.pem  --cert-file my-key.pem example.com '*.example.org' myapp.dev localhost 127.0.0.1 ::1

or for p12 file

mkcert --p12-file my.p12 example.com '*.example.org' myapp.dev localhost 127.0.0.1 ::1

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/FiloSottile/mkcert/pull/77 **Author:** [@sleagon](https://github.com/sleagon) **Created:** 10/10/2018 **Status:** ✅ Merged **Merged:** 1/7/2019 **Merged by:** [@FiloSottile](https://github.com/FiloSottile) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`8125004`](https://github.com/FiloSottile/mkcert/commit/8125004e961b48e4cbf2f8ab52adc6d01aa4fa73) Add -cert-file, -key-file and -p12-file (#77) - [`8e89158`](https://github.com/FiloSottile/mkcert/commit/8e89158400ad62eb3866e1460d9c82b9dc37b201) Refactor output path flags ### 📊 Changes **2 files changed** (+40 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `cert.go` (+32 -13) 📝 `main.go` (+8 -1) </details> ### 📄 Description Just as mentioned in issue #72 which was opened more than one month ago, it is useful to customlize the name of target file. Usage: ```bash mkcert --key-file my-cert.pem --cert-file my-key.pem example.com '*.example.org' myapp.dev localhost 127.0.0.1 ::1 ``` or for p12 file ```bash mkcert --p12-file my.p12 example.com '*.example.org' myapp.dev localhost 127.0.0.1 ::1 ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 22:33:20 +03:00
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#383
No description provided.