Fix redbean ssl messages to show cert name

This commit is contained in:
Paul Kulchenko 2022-02-13 23:10:14 -08:00
parent 5a99c8e11c
commit 52b7a66bb0

View file

@ -604,9 +604,9 @@ static void InternCertificate(mbedtls_x509_crt *cert, mbedtls_x509_crt *prev) {
}
}
if (mbedtls_x509_time_is_past(&cert->valid_to)) {
WARNF("(ssl) certificate is expired", gc(FormatX509Name(&cert->subject)));
WARNF("(ssl) certificate %`'s is expired", gc(FormatX509Name(&cert->subject)));
} else if (mbedtls_x509_time_is_future(&cert->valid_from)) {
WARNF("(ssl) certificate is from the future",
WARNF("(ssl) certificate %`'s is from the future",
gc(FormatX509Name(&cert->subject)));
}
for (i = 0; i < certs.n; ++i) {