Skip to content
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

Warn user of expired cert #1411

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
Update warning message spacing
vanosg authored Jul 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 7b0201941e057ed14c4b97cdd24d5edc5f7544e8
4 changes: 2 additions & 2 deletions src/tls.c
Original file line number Diff line number Diff line change
@@ -115,9 +115,9 @@ void verify_cert_expiry(int idx) {
(ASN1_TIME_cmp_time_t(X509_get0_notAfter(x509), time(NULL)) < 0)) {
if (idx) {
dprintf(idx, "WARNING: SSL/TLS certificate %s expired\n", tls_certfile);
dprintf(idx, "You can generate new certificates by running 'make sslcert' from the source directory\n");
dprintf(idx, "You can generate new certificates by running 'make sslcert' from the source directory\n\n");
} else {
putlog(LOG_MISC, "*", "WARNING: SSL/TLS certificate %s expired\n", tls_certfile);
putlog(LOG_MISC, "*", "\nWARNING: SSL/TLS certificate %s expired", tls_certfile);
putlog(LOG_MISC, "*", "You can generate new certificates by running 'make sslcert' from the source directory\n");
}
}