Difference between revisions of "Securing XMPP"
(→ejabberd: bug report from Klaus Seistrup) |
Neustradamus (talk | contribs) m |
||
Line 27: | Line 27: | ||
{s2s_use_starttls, required}. | {s2s_use_starttls, required}. | ||
{s2s_certfile, "/etc/ejabberd/ejabberd.pem"}. | {s2s_certfile, "/etc/ejabberd/ejabberd.pem"}. | ||
Further help: | |||
* Homepage: [http://ejabberd.im/ ejabberd.im] | |||
* Chatroom: [xmpp:ejabberd@conference.jabber.ru?join ejabberd@conference.jabber.ru] | |||
* Documentation: [http://www.process-one.net/docs/ejabberd/guide_en.html ejabberd Installation and Operation Guide] | |||
=== Prosody === | === Prosody === | ||
Line 34: | Line 39: | ||
Further help: | Further help: | ||
* Homepage: [https://prosody.im/ Prosody IM] | |||
* Chatroom: [https://prosody.im/chat/ prosody@conference.prosody.im] | * Chatroom: [https://prosody.im/chat/ prosody@conference.prosody.im] | ||
* Documentation: [https://prosody.im/doc/security Prosody.IM: Security] | * Documentation: [https://prosody.im/doc/security Prosody.IM: Security] | ||
=== Metronome === | |||
Ensure that ''metronome.cfg.lua'' contains the following settings in the global section of your config, or under the specific <code>VirtualHost</code> you want to secure: | |||
c2s_require_encryption = true | |||
s2s_require_encryption = true | |||
Further help: | |||
* Homepage: [http://www.lightwitch.org/metronome Metronome IM] | |||
* Chatroom: [xmpp:grimoire@muc.metronome.im?join grimoire@muc.metronome.im] | |||
* Documentation: [http://www.lightwitch.org/metronome/documentation lightwitch.org/metronome/documentation] | |||
=== Tigase === | === Tigase === | ||
Line 49: | Line 65: | ||
In order to have improved security Tigase features [http://www.tigase.org/content/hardened-mode 'hardened mode'] which turns off workaround for SSL issues, turns off SSLv2, forces enabling more secure ciphers suites and also forces requirement of StartTLS. | In order to have improved security Tigase features [http://www.tigase.org/content/hardened-mode 'hardened mode'] which turns off workaround for SSL issues, turns off SSLv2, forces enabling more secure ciphers suites and also forces requirement of StartTLS. | ||
--hardened-mode=true | --hardened-mode=true | ||
Further help: | |||
* Homepage: [http://www.tigase.org/ Tigase.org] | |||
* Documentation: [http://www.tigase.org/admin-guide Admin guide] | |||
=== Openfire === | === Openfire === | ||
Line 57: | Line 77: | ||
# Check the checkbox marked ''Accept self-signed certificates'' | # Check the checkbox marked ''Accept self-signed certificates'' | ||
# Done! | # Done! | ||
Further help: | |||
* Homepage: [http://igniterealtime.org/projects/openfire/ Openfire] | |||
* Chatroom: [xmpp:open_chat@conference.igniterealtime.org?join open_chat@conference.igniterealtime.org] | |||
* Documentation: [http://igniterealtime.org/projects/openfire/documentation.jsp Openfire documentation] | |||
== Step 3: Check your XMPP Security == | == Step 3: Check your XMPP Security == | ||
[http://xmpp.net/ Test your XMPP security] to be sure. | [http://xmpp.net/ Test your XMPP security] to be sure. |
Revision as of 22:29, 19 May 2014
Aim: Encrypt All XMPP Connections
This page provides instructions for XMPP server administrators to secure XMPP client and server connections ready for the following ubiquitous encryption manifesto test days:
- January 4, 2014 - first test day requiring encryption
- February 22, 2014 - second test day
- March 22, 2014 - third test day
- April 19, 2014 - fourth test day
- May 19, 2014 - permanent upgrade to encrypted network
To achieve this, we need to:
- Encrypt connections between clients and servers (C2S)
- Encrypt server to server connections (S2S)
Step1: Get a server certificate
Let's say you run an XMPP service for example.net
(jids of user@example.net), you will need to order a certificate for with a subject or alt-name of example.net
(not server.example.net
) from your preferred cert provider (StartSSL offers free certificates and is quite good).
Step 2: Disable cleartext connections
These instructions will disable any cleartext communication between servers and client connections.
ejabberd
Configure ejabberd.conf
% Ordinary client-2-server service [{5222, ejabberd_c2s, [{access, c2s}, starttls_required, {certfile, "/etc/ssl/certs/ejabberd.pem"}, {shaper, c2s_shaper}]}, % Use STARTTLS+Dialback for S2S connections {s2s_use_starttls, required}. {s2s_certfile, "/etc/ejabberd/ejabberd.pem"}.
Further help:
- Homepage: ejabberd.im
- Chatroom: ejabberd@conference.jabber.ru
- Documentation: ejabberd Installation and Operation Guide
Prosody
Ensure that prosody.cfg.lua contains the following settings in the global section of your config, or under the specific VirtualHost
you want to secure:
c2s_require_encryption = true s2s_require_encryption = true
Further help:
- Homepage: Prosody IM
- Chatroom: prosody@conference.prosody.im
- Documentation: Prosody.IM: Security
Metronome
Ensure that metronome.cfg.lua contains the following settings in the global section of your config, or under the specific VirtualHost
you want to secure:
c2s_require_encryption = true s2s_require_encryption = true
Further help:
- Homepage: Metronome IM
- Chatroom: grimoire@muc.metronome.im
- Documentation: lightwitch.org/metronome/documentation
Tigase
See http://www.tigase.org/content/vhost-tls-required for more details:
--vhost-tls-required = true
By default Tigase will read VHosts certificates from certs/ subdirectory match domain name against .pem filename of the certificate. Alternatively configuration for particular vhost certificate could be specified explicitly in init.properties:
basic-conf/virt-hosts-cert-<domain>=path/to/cert.pem
TLS for s2s connection is enabled by default; no option to configure it as required (certain domains can be configured to skip TLS for s2s with following configuration. For more information: --s2s-skip-tls-hostnames):
--s2s-skip-tls-hostnames = domain1,domain2
In order to have improved security Tigase features 'hardened mode' which turns off workaround for SSL issues, turns off SSLv2, forces enabling more secure ciphers suites and also forces requirement of StartTLS.
--hardened-mode=true
Further help:
- Homepage: Tigase.org
- Documentation: Admin guide
Openfire
- Open the Openfire administration console
- Go to Server Settings under Server
- Then open Security Settings in the list to the left
- Check both radiobuttons labeled Required
- Check the checkbox marked Accept self-signed certificates
- Done!
Further help:
- Homepage: Openfire
- Chatroom: open_chat@conference.igniterealtime.org
- Documentation: Openfire documentation
Step 3: Check your XMPP Security
Test your XMPP security to be sure.