public void setUseExpiredEndEntityCertificate(boolean useExpiredEndEntityCertificate)
    {
        if (generatedPKIX != null) {
            throw new IllegalStateException("Cannot change PKIX settings after PKIX has been prepared.");
        }
        this.useExpiredEndEntityCertificate = useExpiredEndEntityCertificate;
    }
When set to 'true', this instance will identify itself with a TLS certificate that is expired (its 'notBefore'
and 'notAfter' values define a period of validity that does not include the current date and time).

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

@param useExpiredEndEntityCertificate 'true' to use an expired certificate
xmppserver/src/test/java/org/jivesoftware/openfire/session/AbstractRemoteServerDummy.java