public void setAcceptSelfSignedCertificates( boolean accept )
    {
        final boolean oldValue = verifyCertificateValidity();

        // Always set the property explicitly even if it appears the equal to the old value (the old value might be a fallback value).
        JiveGlobals.setProperty( type.getPrefix() + "certificate.accept-selfsigned", Boolean.toString( accept ) );

        if ( oldValue == accept )
        {
            Log.debug( "Ignoring self-signed certificate acceptance policy change request (to '{}'): listener already in this state.", accept );
            return;
        }

        Log.debug( "Changing self-signed certificate acceptance policy from '{}' to '{}'.", oldValue, accept );
        restart();
    }
Configures if self-signed peer certificates can be used to establish an encrypted connection.

@param accept true when self-signed certificates are accepted, otherwise false.
xmppserver/src/main/java/org/jivesoftware/openfire/spi/ConnectionListener.java