Add debug logging of SSL certs to addon manager.

This commit is contained in:
Pentarctagon 2021-12-22 11:34:57 -06:00
parent d228f6ac29
commit 53168a5b90
No known key found for this signature in database
GPG key ID: 9456BC54A21DBFA0

View file

@ -153,6 +153,14 @@ template<typename Verifier> auto verbose_verify(Verifier&& verifier)
bool verified = verifier(preverified, ctx);
DBG_NW << "Verifying TLS certificate: " << subject_name << ": " <<
(verified ? "verified" : "failed") << std::endl;
BIO* bio = BIO_new(BIO_s_mem());
char buffer[1024];
X509_print(bio, cert);
while(BIO_read(bio, buffer, 1024) > 0)
{
DBG_NW << buffer;
}
BIO_free(bio);
return verified;
};
}