mkcert icon indicating copy to clipboard operation
mkcert copied to clipboard

Add a -days flag to specify the validity period.

Open kixelated opened this issue 2 years ago • 2 comments
trafficstars

The hard-coded default of 2 years, 3 months works for most applications. However, some applications enforce that the certificate is only valid for a short period and this default is too long.

For example, WebRTC fingerprinting enforces a max duration of 30 days. WebTransport is even more extreme and rejects certs valid for more than 14 days. These certificates are meant to be ephemeral.

Fixes #339 #343

kixelated avatar Mar 25 '23 22:03 kixelated

Any reason why it hasn't merged yet?

harryqt avatar Jun 19 '23 23:06 harryqt

WebTransport also requires that "total length of the validity period MUST NOT exceed two weeks" (see WebTransport spec)

endel avatar Jun 25 '23 17:06 endel