public synchronized void ensureDomainCertificate() throws CertificateStoreConfigException
    {
        Log.debug( "Verifying that a domain certificate is available in this store." );
        if ( !containsDomainCertificate() )
        {
            Log.debug( "Store does not contain a domain certificate. A self-signed certificate will be generated." );
            addSelfSignedDomainCertificate();
        }
    }
Adds a self-signed certificate for the domain of this XMPP service when no certificate for the domain was found.

@throws CertificateStoreConfigException if there was a problem creating the certificate
xmppserver/src/main/java/org/jivesoftware/openfire/keystore/IdentityStore.java