Configuring Transport Layer Security-Based XMPP in Contrail
Overview: TLS-Based XMPP
Transport Layer Security (TLS)-based XMPP can be used to secure all Extensible Messaging and Presence Protocol (XMPP)-based communication that occurs in the Contrail environment.
Secure XMPP is based on RFC 6120, Extensible Messaging and Presence Protocol (XMPP): Core.
TLS XMPP in Contrail
In the Contrail environment, the Transport Layer Security (TLS) protocol is used for certificate exchange, mutual authentication, and negotiating ciphers to secure the stream from potential tampering and eavesdropping.
The RFC 6120 highlights a basic stream message exchange format for TLS negotiation between an XMPP server and an XMPP client.
Simple Authentication and Security Layer (SASL) authentication is not supported in the Contrail environment.
Configuring XMPP Client and Server in Contrail
In the Contrail environment, XMPP based communications are used in client and server exchanges, between the compute node (as the XMPP client), and:
the control node (as the XMPP server)
the DNS server (as the XMPP server)
- Configuring Control Node for XMPP Server
- Configuring DNS Server for XMPP Server
- Configuring Control Node for XMPP Client
Configuring Control Node for XMPP Server
To enable secure XMPP, the following parameters are configured at the XMPP server.
On the control node, enable the parameters in the configuration
file: /etc/contrail/contrail-control.conf
.
Parameter |
Description |
Default |
---|---|---|
|
Path to the node's public certificate |
|
|
Path to server's or node's private key |
|
|
Path to CA certificate |
|
|
Enables SSL based XMPP |
Default is set to false, XMPP is disabled. Note:
The keyword |
Configuring DNS Server for XMPP Server
To enable secure XMPP, the following parameters are configured at the XMPP DNS server.
On the DNS server control node, enable the parameters in the
configuration file:/etc/contrail/contrail-control.conf
Parameter |
Description |
Default |
---|---|---|
|
Path to the node's public certificate |
|
|
Path to server's/node's private key |
|
|
Path to CA certificate |
|
|
Enables SSL based XMPP |
Default is set to false, XMPP is disabled. Note:
The keyword |
Configuring Control Node for XMPP Client
To enable secure XMPP, the following parameters are configured at the XMPP client.
On the compute node, enable the parameters in the configuration
file: /etc/contrail/contrail-vrouter-agent.conf
Parameter |
Description |
Default |
---|---|---|
|
Path to the node's public certificate |
|
|
Path to server's/node's private key |
|
|
Path to CA certificate |
|
|
Enables SSL based XMPP |
Default is set to false, XMPP is disabled. Note:
The keyword |