How to set expiration date?


#1

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,


#2

You cannot.


#3

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


#4

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?


#5

You are spoiled for choice: https://letsencrypt.org/docs/client-options/

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


#6

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


#7

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:)


#8

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.