public static ResultHolder generateExpiredSelfSignedCertificate() throws Exception
    {
        return generateTestCertificate( null, false, true, 0 );
    }
Instantiates a new certificate that is self-signed, of which the notAfter value is a point in time that is in the
past (as compared to the point in time of the invocation of this method).

@return A certificate that is self-signed and expired (never null).
@see #generateSelfSignedCertificate()
@see #generateExpiredCertificate()
xmppserver/src/test/java/org/jivesoftware/openfire/keystore/KeystoreTestUtils.java