Skip to content

Request DietPi-Banner Certification Status showing expiration date of ACTIVE certificate (or all certificates)Β #7903

@echtfrank

Description

@echtfrank

More than a year ago, I had to restore my system after my SD-card broke. With some help I managed to restore my system using a fresh DietPi-image using the "restore-on-first-boot" function.

The only thing that I needed te repair manually was my certicate (Letsencrypt)... From the logging I now know that there was quite some time between the last backup and the restore. Meanwhile the old certification was not valid anymore, so I exectued Letsencrypt and everything worked: I have a working system. Nextcloud is available on my own domain and the certificate is renewed.

Only thing is that DietPi-Banner keeps showing the old VALID until date

- Let's Encrypt cert status : Valid until 2024-Nov-26 05:49:34 
- MOTD : Open Beta v10.0 | Please help testing our upcoming release: [https://github.com/MichaIng/]

I see that I now have multiple certificates (folders in /etc/letsencrypt/live/*). One of them being the active certicate, the others are history / obsolete. In the DietpiBanner-code I can see that only the first certificate found (in case of multiple certificates) is shown in the banner.

Suggestion:

  • In case of multiple certicates, show them all? For example:
Certificate: /etc/letsencrypt/live/example.com/cert.pem
Valid until 2026-14-Jan 12:00:00
----------------------------------------
Certificate: /etc/letsencrypt/live/anotherdomain.com/cert.pem
Valid until 2026-20-Feb 10:30:00
----------------------------------------

Questions:

  • Is it possible to only show the actual certificate? I don't know if it is possible to determine this in letsencrypt-configfiles?
  • Can I just manually remove obsolete subfolders in /etc/letsencrypt/live/*? or is there any other way to clean this up?

Thanks in advance,
Frank

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions