# XMPP Module

**URL:** <https://forums.unrealengine.com/t/xmpp-module/2614636>\
**Category:** Multiplayer & Networking\
**Tags:** unreal-engine, certificate, Plugins, question, CPP\
**Created:** [July 22, 2025, 6:22pm UTC](https://forums.unrealengine.com/t/xmpp-module/2614636 "2025-07-22T18:22:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javo\_StoicStudio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Javo\_StoicStudio](https://forums.unrealengine.com/u/Javo_StoicStudio)\
**Post date:** [July 22, 2025, 6:22pm UTC](https://forums.unrealengine.com/t/xmpp-module/2614636/1 "2025-07-22T18:22:46Z")

</div>

We are trying to connect the xmpp module that is provide with the engine with an EJabberd xmpp server **without allowing self signed certificates**

Could you provide some guidelines on how to avoid this?

Here is the the libstrophe flag Im referring to

```auto
/** @def XMPP_CONN_FLAG_TRUST_TLS
 * Trust servers certificate even if it is invalid.
 */
#define XMPP_CONN_FLAG_TRUST_TLS (1UL << 3)

```

And here is how we are enabling it

```auto
void FStropheConnection::SetAcceptSelfSignedCertificates(bool bAccept)
{
	const long flags = xmpp_conn_get_flags(XmppConnectionPtr);
	if (bAccept)
	{
		xmpp_conn_set_flags(XmppConnectionPtr, flags | XMPP_CONN_FLAG_TRUST_TLS);
	}
	else
	{
		xmpp_conn_set_flags(XmppConnectionPtr, flags & (~XMPP_CONN_FLAG_TRUST_TLS));
	}
}

```
