Cannot access virtualmin because the certificate has expired

SYSTEM INFORMATION
OS type and version root@clanmills:~# uname -a Linux clanmills.co.uk 6.8.0-59-generic #61-Ubuntu SMP PREEMPT_DYNAMIC Fri Apr 11 23:16:11 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Virtual/Webmin version Latest 2.303/7.30

Folks:
My first ever VPS. Wonderful. So much better than hosting. Webmin/VirtualMin is also wonderful.

I got the Apache/SSL/ssh certificate from Let’s Encrypt in February and successfully renewed it yesterday.

I cannot access WebMin today because certificate is out of date.

The VPS is running and I can access it with SSH.
Apache is running and I can access it with HTTPS.

I’d be grateful for any suggestions. For example:

  1. Should I uninstall virtualmin and reinstall it?
  2. Can I just copy the updated certificate from Apache to WebMin?
root@clanmills:~# certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Renewal configuration file /etc/letsencrypt/renewal/clanmills.co.uk-0001.conf produced an unexpected error: expected /etc/letsencrypt/live/clanmills.co.uk-0001/privkey.pem to be a symlink. Skipping.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
  Certificate Name: clanmills.co.uk-0002
    Serial Number: 55a27bd18b27a553af6b05d77b837ca7911
    Key Type: ECDSA
    Domains: clanmills.co.uk
    Expiry Date: 2025-08-06 13:06:44+00:00 (VALID: 89 days)
    Certificate Path: /etc/letsencrypt/live/clanmills.co.uk-0002/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/clanmills.co.uk-0002/privkey.pem
  Certificate Name: clanmills.co.uk
    Serial Number: 3c312862255d6fbd426cd89253d7582ca29
    Key Type: ECDSA
    Domains: *.clanmills.co.uk clanmills.co.uk
    Expiry Date: 2025-05-18 19:26:12+00:00 (VALID: 10 days)
    Certificate Path: /etc/letsencrypt/live/clanmills.co.uk/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/clanmills.co.uk/privkey.pem

The following renewal configurations were invalid:
  /etc/letsencrypt/renewal/clanmills.co.uk-0001.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
root@clanmills:~# 

I’ve solved this with the help of Hostinger’s Kodee AI chatbot:

# cp /etc/letsencrypt/live/clanmills.co.uk/fullchain.pem /etc/webmin/clanmills.co.uk.cert
# cp /etc/letsencrypt/live/clanmills.co.uk/privkey.pem /etc/webmin/clanmills.co.uk.key
# systemctl restart webmin

I am amazed by Kodee. He’s the best and most polite system admin ever. You don’t even need to laugh at his jokes.

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