0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 20:28:52 +02:00

ircd:Ⓜ️ Print less of the cert to the info log on init.

This commit is contained in:
Jason Volk 2018-01-26 18:37:53 -08:00
parent 638843ade1
commit 8d59fab2dc

View file

@ -111,11 +111,13 @@ ircd::m::keys::init::certificate()
b64encode_unpadded(hash)
};
log.info("Certificate `%s' (PEM: %zu bytes; DER: %zu bytes) sha256b64: %s",
static char print_buf[8_KiB];
log.info("Certificate `%s' (PEM: %zu bytes; DER: %zu bytes) sha256b64: %s :%s",
cert_file,
cert_pem.size(),
ircd::size(cert_der),
self::tls_cert_der_sha256_b64);
self::tls_cert_der_sha256_b64,
openssl::print_subject(print_buf, cert_pem));
}
void