[GH-ISSUE #269] Create certificate with multiple Subject Alternative Names from file #174

Closed
opened 2026-02-25 22:32:47 +03:00 by kerem · 1 comment
Owner

Originally created by @antwal on GitHub (Jun 13, 2020).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/269

Hi,

would it be possible to load the list of names directly from a text file?

i tried this way but it generates an error:

mkcert $(cat /etc/hosts | sed '/#/d' | awk '{ print $2 }' | tr "\n" " ")
-bash: /usr/bin/mkcert: Argument list too long

Thanks.

Originally created by @antwal on GitHub (Jun 13, 2020). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/269 Hi, would it be possible to load the list of names directly from a text file? i tried this way but it generates an error: ``` mkcert $(cat /etc/hosts | sed '/#/d' | awk '{ print $2 }' | tr "\n" " ") -bash: /usr/bin/mkcert: Argument list too long ``` Thanks.
kerem 2026-02-25 22:32:47 +03:00
Author
Owner

@FiloSottile commented on GitHub (Oct 25, 2020):

That's... a lot of names. Maybe consider using a wildcard? This feature request never came up before, and can be handled like you did for shorter lists, so I'd rather not add a flag, sorry.

<!-- gh-comment-id:716187592 --> @FiloSottile commented on GitHub (Oct 25, 2020): That's... a lot of names. Maybe consider using a wildcard? This feature request never came up before, and can be handled like you did for shorter lists, so I'd rather not add a flag, sorry.
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#174
No description provided.