[GH-ISSUE #21] Command to get the path of or copy the ca certificate #11

Closed
opened 2026-02-25 22:32:22 +03:00 by kerem · 2 comments
Owner

Originally created by @schrej on GitHub (Jun 30, 2018).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/21

I'm using this tool with vagrant. The services within vagrant need to communicate with each other and therefore need the ca to accept the certificates.
To add the ca I first need to get the certificate. While it is rather easy to find a command to simplify it even more would be nice.

One or both of the following might be useful:
mkcert -capath that just returns the path to rootCA.pem
mkcert -cacopy <path> that copies the rootCA.pem to <path>

As this tools aims to make stuff as easy as possible this might be a good addition as it takes away the extra step figuring out the path of the ca certificate.

Originally created by @schrej on GitHub (Jun 30, 2018). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/21 I'm using this tool with vagrant. The services within vagrant need to communicate with each other and therefore need the ca to accept the certificates. To add the ca I first need to get the certificate. While it is rather easy to find a command to simplify it even more would be nice. One or both of the following might be useful: `mkcert -capath` that just returns the path to `rootCA.pem` `mkcert -cacopy <path>` that copies the `rootCA.pem` to `<path>` As this tools aims to make stuff as easy as possible this might be a good addition as it takes away the extra step figuring out the path of the ca certificate.
kerem closed this issue 2026-02-25 22:32:22 +03:00
Author
Owner

@nebloc commented on GitHub (Jul 2, 2018):

@schrej Something like this?

$ mkcert -capath
/Users/username/Library/Application Support/mkcert
<!-- gh-comment-id:401711504 --> @nebloc commented on GitHub (Jul 2, 2018): @schrej Something like [this?](https://github.com/nebloc/mkcert) ``` $ mkcert -capath /Users/username/Library/Application Support/mkcert ```
Author
Owner

@schrej commented on GitHub (Jul 2, 2018):

As the names of the files are always the same that would be good, yes.

<!-- gh-comment-id:401719858 --> @schrej commented on GitHub (Jul 2, 2018): As the names of the files are always the same that would be good, yes.
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#11
No description provided.