-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add support for NotBefore and NotAfter to initca #1270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
FYI here's an example of the weird behavior, I would love it if someone could point out if I'm doing something wrong or if this is a cfssl bug. I tried setting
ca.in.json looks like:
and here's what I'm seeing, note how the the pre-unix-epoch ts only goes up to ...:40 and then jumps back up to 1970-01-01... (hmm now that I think about it maybe it has to do with GMT != UTC maybe?)
|
Back to the actual PR though... Please let me know how this is looking and what you'd like to see added/changed. Thanks! |
Setting these was only previously possible with backdate and expiry but could be a pain to figure out the tdeltas correctly. Sometimes its just easier to explicitly give the timestamps.
This way users can pass these in so the csr and certificate end up with the wanted dates.
063bfd2
to
5fd4c43
Compare
hey @nickysemenza wanted to bring this to your 👀 and get some feedback hopefully. Good idea/bad idea... |
ping @nickysemenza |
Thanks! |
So I was trying to get a cert with NotBefore to be somewhere around right after the Unix Epoch for $reasons and could not come up on a way to get what I wanted with backdate. So I thought it'd be nicer to just add support for NotBefore and NotAfter directly like other operations do.
Fixes: #1038
Fixes: #910