public void persist() throws CertificateStoreConfigException
    {
        try ( final FileOutputStream os = new FileOutputStream( configuration.getFile() ) )
        {
            store.store( os, configuration.getPassword() );
        }
        catch ( NoSuchAlgorithmException | KeyStoreException | CertificateException | IOException ex )
        {
            throw new CertificateStoreConfigException( "Unable to save changes to store in '" + configuration.getFile() + "'", ex );
        }
    }
Saves the current state of the store to disk. Useful when certificates have been added or removed from the
store.
@throws CertificateStoreConfigException of the configuration could not be persisted
xmppserver/src/main/java/org/jivesoftware/openfire/keystore/CertificateStore.java