public void setUseSelfSignedCertificate(boolean useSelfSignedCertificate)
    {
        if (generatedPKIX != null) {
            throw new IllegalStateException("Cannot change PKIX settings after PKIX has been prepared.");
        }
        this.useSelfSignedCertificate = useSelfSignedCertificate;
    }
When set to 'true', this instance will identify itself with a TLS certificate that is self-signed.

Must be invoked before {@link #preparePKIX()} is invoked.

@param useSelfSignedCertificate 'true' to use a self-signed certificate
xmppserver/src/test/java/org/jivesoftware/openfire/session/AbstractRemoteServerDummy.java