Domi intermediate
{#if certs.intermediate?.not_after}expires {shortDate(certs.intermediate.not_after)}{/if}
Root stays offline ({certs.root.subject}, until {shortDate(certs.root.not_after)}).
Devices
A device certificate lets a phone, computer or Domi app into hosts that ask for one.
{#if capped}Valid until {until}, when the Domi intermediate certificate ends (renew it to issue for a full year).{:else}Valid for {lifetime} days, until {until}.{/if} It lets this device into hosts that ask for a Domi device certificate.
Waiting for approval
Custos cannot approve device certificates yet, so approve it on the server, and only if it shows the same code:
{request.match_code}
Run on the server:
{request.approve_command}
The request stays open for 10 minutes ({Math.floor(secondsLeft(request.expires_at) / 60)}:{String(secondsLeft(request.expires_at) % 60).padStart(2, "0")} left). Nothing is issued until it is approved.
The file is protected with a one-time password shown next to the QR code.
Password for the file
{bundle.b.one_time_password}
Works once, for 10 minutes ({Math.floor(secondsLeft(bundle.b.expires_at) / 60)}:{String(secondsLeft(bundle.b.expires_at) % 60).padStart(2, "0")} left).
{#if bundle.device.kind === "computer"}Open the downloaded file and enter the password when it asks. {:else if bundle.device.kind === "app"}In the app, choose Import certificate, pick the file, and enter the password. {:else}Scan the code with the device's camera, open the link, and enter the password when it asks. Then allow the certificate in the device's settings.{/if}