# Workflow for adding a LXD host ## User input * A symbolic name * The LDX host base URL * The password for certificate addition ## workflow * Check our current client key. * Recreate client key if we find no active valid key * This also involves deactivating the old one and activate the new one. * Get API version of the LXD host. (unauth) * Bail out if not supported ... currently (only 1.0 is supported) * Get Server info / well, this might also be done in the previous task. * If unathorized add cert with password. * I guess thats it. ## stored * The new cert eventually * The name and url of the LXD host # Workflow accessing LXD host ## input * The name of the LXD host ## workflow * Check our current client cert. * If close to expiration create a new one and send it to LXD host with the old one. * If behind expiration ask for password * Connect to LXD host using the current active cert.