-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
PKI backend sign-verbatim ignores requested ttl value #5549
Comments
Additional information:
That expiration is correct for a cert with a lifespan of 24 hours, as requested, but being valid starting at the beginning of 1 AD is not. |
The not before thing is a bug fixed in master already. For the original request, can you provide a repro script so we can recreate with your role values? |
Also there is a workaround for the second issue: #5481 (comment) |
Gives me this error:
From the test script if I use this role creation line:
I get a different similarly nonsensical error:
With these versions:
I get this:
With these:
I get this:
With these:
I do get issued a certificate. In all cases the requested cert ttl is |
Thanks for the script, made it easy to repro. |
This endpoint eventually goes through generateCreationBundle where we already have the right checks. Also add expiration to returned value to match output when using root generation. Fixes #5549
This endpoint eventually goes through generateCreationBundle where we already have the right checks. Also add expiration to returned value to match output when using root generation. Fixes #5549
BTW your script as-is still won't work for you with the above fix because you mistyped |
Describe the bug
PKI backend
sign-verbatim
ignores requestedttl
value.To Reproduce
Expected behavior
It signs the certificate with the requested lifespan
Environment:
vault version
):Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: