public Optional<X509Certificate> peerCertificate() {
        return peerCertificateChain.isEmpty() ? Optional.empty() : Optional.of(peerCertificateChain.get(0));
    }
Throws checked exception to force caller to handle verification failed.
Provided strings are used for improved logging only
security-utils/src/main/java/com/yahoo/security/tls/ConnectionAuthContext.java