Skip to content

Certificate has a problem: The certificate has expired or is not yet valid. #2497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
monarc83 opened this issue Apr 3, 2025 · 13 comments
Open

Comments

@monarc83
Copy link

monarc83 commented Apr 3, 2025

I noticed that expired TLS (SSL) certificates will not be renewed currently, maybe due to the Let's Encrypt changes!? How is this gonna be addressed and solved for MiaB? Is it possible to trigger the renewal manually as a workaround?

@downtownallday
Copy link
Contributor

Have you examined /var/log/letsencrypt/letsencrypt.log for error messages?

@monarc83
Copy link
Author

monarc83 commented Apr 3, 2025

No error messages lately...

Both [mta-sts] certificates have expired and have not been renewed before.

@downtownallday
Copy link
Contributor

downtownallday commented Apr 3, 2025

You could try running management/ssl_certificates.py mta-sts.mydomain.tld from the command line

@monarc83
Copy link
Author

monarc83 commented Apr 4, 2025

did not work, but again no error messages... more ideas? Am I the only one with this issue?

@kiekerjan
Copy link
Contributor

What is the output for these domains when you run management/ssl_certificates.py? You say no errors, but it should at least give a status for each required domain.

@monarc83
Copy link
Author

monarc83 commented Apr 7, 2025

oh, good hint, I missed that in the GUI maybe.

skipped: mta-sts.*****:
The domain name does not resolve to this machine: [Not Set] (AAAA).

skipped: mta-sts.*****:
The domain name does not resolve to this machine: [Not Set] (AAAA).

@monarc83
Copy link
Author

monarc83 commented Apr 7, 2025

Hmm, rDNS checks for IPv4 and IPv6 are fine. No idea what the issue is, hopefully someone else!?

@kiekerjan
Copy link
Contributor

Are you letting the box serve dns? Or some external dns provider? In the latter case, check that the A/AAAA records for the mta-sts subdomain are set.
There's probably also a warning on this on the Admin Status page.

@monarc83
Copy link
Author

monarc83 commented Apr 7, 2025

All setup up correctly at Cloudflare, but following errors are visible.

2x MTA-STS policy is missing: STSFetchResult.FETCH_ERROR
-> This is due to the expired Certificate

This box's reverse DNS is currently [Not Set], but it should be mail.die-familie-nowak.de. Your ISP or cloud provider will have instructions on setting up reverse DNS for this box.
-> No Idea why the system is reporting this, external rDNS checks are valid and fine

@kiekerjan
Copy link
Contributor

kiekerjan commented Apr 7, 2025

There seems to be no aaaa dns entry for the mta-sts subdomain, that will block requesting the certificate.
Reverse dns indeed seems fine. Perhaps the dns resolver is not functioning correctly. Can you check the output of sudo systemctl status named perhaps sudo systemctl restart named is needed?

@monarc83
Copy link
Author

monarc83 commented Apr 8, 2025

so, I do need to setup a AAAA entry for mta-sts subdomain at Cloudflare?

@kiekerjan
Copy link
Contributor

Yes

@monarc83
Copy link
Author

monarc83 commented Apr 8, 2025

perfect, it worked. Thanks @kiekerjan

Not sure why there were certificates which expired at all. Haven't change any DNS settings at Cloudflare lately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants