You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix --days flag to properly calculate renewal time with --valid-to
When using --valid-to with --days, the renewal time was incorrectly
set to 1 day before certificate expiry instead of respecting the
user's --days value.
This fix ensures that:
- Renewal is scheduled at 'issuance + days' as intended
- Falls back to 1 day before expiry only if cert expires before renewal
- Matches the behavior when --valid-to is not specified
Example: With --valid-to '+47d' --days 42:
- Before: Renewal at day 46 (1 day before expiry)
- After: Renewal at day 42 (as specified)
0 commit comments