private SSLException convertException(Throwable e) {
        if (e instanceof SSLHandshakeException || !handshakeFinished) {
            return SSLUtils.toSSLHandshakeException(e);
        }
        return SSLUtils.toSSLException(e);
    }
Read plaintext data from the OpenSSL internal BIO
common/src/main/java/org/conscrypt/ConscryptEngine.java