def update_configuration(cfgfile):
    """Update configuration from file.

    :param cfgfile: Configuration file to load.
    """
    global config
    from configobj import ConfigObj
    from pyca.config import cfgspec
    from validate import Validator
    config = ConfigObj(cfgfile, configspec=cfgspec)
    validator = Validator()
    config.validate(validator)
    return config
