private void SendCertificateVerify(byte[] data)
{
/*
* Send signature of handshake messages so far to prove we are the owner of
* the cert See RFC 2246 sections 4.7, 7.4.3 and 7.4.8
*/
MemoryStream bos = new MemoryStream();
TlsUtilities.WriteUint8((byte)HandshakeType.certificate_verify, bos);
TlsUtilities.WriteUint24(data.Length + 2, bos);
TlsUtilities.WriteOpaque16(data, bos);
byte[] message = bos.ToArray();
rs.WriteMessage(ContentType.handshake, message, 0, message.Length);
}