protected virtual Certificate ProcessServerCertificate(ClientHandshakeState state, byte[] body)
{
MemoryStream buf = new MemoryStream(body, false);
Certificate serverCertificate = Certificate.Parse(buf);
TlsProtocol.AssertEmpty(buf);
state.keyExchange.ProcessServerCertificate(serverCertificate);
state.authentication = state.client.GetAuthentication();
state.authentication.NotifyServerCertificate(serverCertificate);
return serverCertificate;
}