@Override
        public void verify(PublicKey publicKey, String sigProvider)
                throws CertificateException, NoSuchAlgorithmException, InvalidKeyException,
                NoSuchProviderException, SignatureException {
            this.origCertificate.verify(publicKey, sigProvider);
        }
This method sorts the certificate chain from end to root certificate and wraps the end certificate to make it "never-expireing"
@param origChain The original (unsorted) certificate chain
@return The sorted and wrapped certificate chain
@throws CertificateException
clients/src/main/java/org/apache/kafka/common/security/ssl/CommonNameLoggingTrustManagerFactoryWrapper.java