Skip to content

Configurable certificate lifetime for the CA server #1094

Open

Description

@marcohald

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

It would be useful to have a config option for the Certificate duration for the ACME Provisioner as discussed here #1049

Why is this needed?

We monitor the validity period of our SSL Certificates and like to have a duration of 30 Days and renew them after 15 Days.
So that we have enough time to troubleshoot any issues with renewing the certificates.

Activity

  1. added
    needs triage
    on Oct 6, 2022
  2. changed the title [-]configurable Certificate duration for the ACME Provisioner[/-] [+]Configurable certificate lifetime for the CA server[/+] on Oct 10, 2022
  3. hslatman commented on Oct 10, 2022

    @hslatman
    Member

    @marcohald: I've updated the title to better reflect what you're looking for, based on the existing discussion. If I'm correct, you're looking for an option to set the certificate lifetime for the CA HTTPS API, which includes the ACME directory endpoints. At this time the CA will transparently renew the certificate that it uses to serve all endpoints every day. You would like to have an option to make the certificate lifetime to be 30 days and to renew them at half their lifetime.

  4. marcohald commented on Oct 11, 2022

    @marcohald
    Author

    @hslatman yes you are correct.
    I think it would be better if the lifetime and the renew time could be specified in hours, for the most users that need it customized

  5. added this to the Backlog milestone on Oct 12, 2022
  6. maraino commented on Oct 20, 2022

    @maraino
    Contributor

    I don't understand the need for this, the CA will automatically renew its own certificate, and if it's unable to do it, it won't be able to issue new certificates to anyone. And it's always possible to monitor that the CA always has a valid certificate just doing a request to it.

  7. removed
    needs triage
    on Jan 6, 2023
  8. hslatman commented on Feb 20, 2024

    @hslatman
    Member

    After #1685 was merged, this functionality is now a step closer. At the moment it would still require custom code to provide *tls.Config, but it might happen that we provide a way to configure that in a more convenient way sometime.

  9. sshipway commented on Mar 6, 2024

    @sshipway

    We have a default 90d lifetime on the Provisioner, but the RA is still generating a 1d certificate. Autorenewals are working; however, we have also configured Slack integration to notify us of expired certificates, and -- apparently because of the short lifetime -- we're getting daily slack notifications from Smallstep that the RA certificate has expired, even though it autorenews.
    Being able to configure the RA to use a 90d certificate would allow renewal to happen comfortably outside the notification window so that we would not be receiving these daily spurious notifications.

  10. added
    needs triage
    on Mar 7, 2024
  11. added a commit that references this issue on Mar 12, 2024
  12. maraino commented on Mar 12, 2024

    @maraino
    Contributor

    @sshipway with this PR #1764, I'm letting the CA decide which lifetime the RA should have.

  13. removed their assignment
    on Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneeds triage

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions