diff --git a/cli/cmds/device-id-cmd.ts b/cli/cmds/device-id-cmd.ts index d898fe111..a8125c0b7 100644 --- a/cli/cmds/device-id-cmd.ts +++ b/cli/cmds/device-id-cmd.ts @@ -24,6 +24,59 @@ import { type } from "arktype"; import { CliCtx } from "../cli-ctx.js"; import { sendMsg, sendProgress, WrapCmdTSMsg } from "../cmd-evento.js"; +function certSuccessHtml(): string { + return ` + + + +Certificate received + + + + +
+

Certificate received successfully.

+

You can close this window.

+
+ +`; +} + function getStdin(): Promise { return new Promise((resolve) => { let data = ""; @@ -688,7 +741,7 @@ export const deviceIdRegisterEvento: EventoHandler, ReqDev } void sendProgress(ctx, "info", "\nCertificate received from CA!"); certFuture.resolve(cert); - return c.text("Certificate received successfully. You can close this window."); + return c.html(certSuccessHtml()); }); // Determine port: use specified port or generate random one