How to set expiration date?

Hello,

I’d like to know if it is possible to set the expiration date of a certificate. I just generated mine and it looks like it will expire in just 3 months.

Thank you,

You cannot.

2 Likes

Thank you for the answer and the article. I’m the article I read about auto renewal. Is there a tool for that? Or I should just run the ssl generator maybe with a scheduled bash script? Thank you

There are many tools for that--in most cases, the tool you used to get the cert in the first place would handle renewal as well. How did you generate your cert?

1 Like

You are spoiled for choice: ACME Client Implementations - Let's Encrypt

The most popular option is: http://certbot.eff.org/

1 Like

@danb35 I used certbot thanks.
@_az Thanks, I’ll look this up.

1 Like

You can use certbot renew for renewal. Try it manually, perhaps with --dry-run as a test, and then add a cron job for it (without the --dry-run of course :stuck_out_tongue:)

3 Likes

Depending on your OS and how you installed Certbot, there may be a systemd timer or cron job already.

If you used manual mode (--manual without --manual-auth-hook) automatic renewal is not possible, though.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.