clientKey = clientChain[0].getPublicKey();
if (clientKey instanceof RSAPublicKey)
{
SSLRSASignature sig = new SSLRSASignature(cvMD5, cvSHA);
sig.setupVerify(Collections.singletonMap(ISignature.VERIFIER_KEY, clientKey));
if (!sig.verify(verify.getSigValue()))
{
handshakeFailure();
throw new SSLHandshakeException("client certificate verify failed");
}
}