public static void initCertMetrics(Meter meter, String prefix) throws CertificateException {
        String truststoreCerts = truststoreCertsSupplier.get();
        String certChain = certChainSupplier.get();
        if (truststoreCerts == null || truststoreCerts.isEmpty()) {
            return;
        }
        if (certChain == null || certChain.isEmpty()) {
            return;
        }
        // Add TLS certificate metrics
        addTlsMetrics(certChain, truststoreCerts, meter, prefix);
    }
Initialize the certificate metrics.

@param meter The OpenTelemetry meter to use for creating metrics.
server-common/src/main/java/org/apache/kafka/server/metrics/s3stream/S3StreamKafkaMetricsManager.java