certstrap icon indicating copy to clipboard operation
certstrap copied to clipboard

Finer Expiry Control

Open Goirad opened this issue 6 years ago • 2 comments

Hello, I find that I often need to create expired certificates for testing related validation and it would be extremely helpful if the --expires option was extended to allow passing minutes and even seconds.

Goirad avatar Sep 05 '19 18:09 Goirad

I think it'd probably be fine to have a flag that takes expiry in simple duration format 1d10h2m5s

mbyczkowski avatar Sep 05 '19 18:09 mbyczkowski

Or even better would be the ability to offset the start date backwards in time by a similar mechanism ie --offset -1y --expires 1m to create a certificate valid starting a year ago for a period of 1 month

Goirad avatar Sep 05 '19 19:09 Goirad