update configuration, add certificate downloading