从事件中心消费到我的应用程序时,消息是否加密?它是 SSL 安全的吗?

Are messages encrypted when consuming from Event Hub to my application? Is it SSL Secured?

我正在使用从 Azure 事件中心到我的应用程序的消息,并且我正在成功接收这些消息。我想知道从事件中心发送的消息是否加密。我在 docs.microsoft.com 中搜索但找不到太多信息。如果有人能帮助我理解,那将是一个很大的帮助。

简短回答:是的。

如您在 the docs 中所见:

Any entity that reads event data from an event hub is an event consumer. All Event Hubs consumers connect via the AMQP 1.0 session and events are delivered through the session as they become available...

现在,有更多关于服务总线和事件中心的 AMQP 使用文档,可以找到 here:

It is the primary protocol of Azure Service Bus Messaging and Azure Event Hubs. Both services also support HTTPS.

而且,在这种情况下更重要的是:

Azure Service Bus ( note: also Event Hub ) requires the use of TLS at all times. It supports connections over TCP port 5671, whereby the TCP connection is first overlaid with TLS before entering the AMQP protocol handshake, and also supports connections over TCP port 5672 whereby the server immediately offers a mandatory upgrade of connection to TLS using the AMQP-prescribed model. The AMQP WebSockets binding creates a tunnel over TCP port 443 that is then equivalent to AMQP 5671 connections.

此外,事件中心数据是静态加密的,请参阅[文档])(https://docs.microsoft.com/en-us/azure/security/azure-security-encryption-atrest)