From 2622f787fef039bdd842729be6ec395d852220a1 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Mon, 28 Feb 2022 11:13:42 -0700 Subject: [PATCH] base64 encode cert (#1295) --- .../setup-wizard/src/app/services/api/live-api.service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/projects/setup-wizard/src/app/services/api/live-api.service.ts b/frontend/projects/setup-wizard/src/app/services/api/live-api.service.ts index 580a02414..54d52af92 100644 --- a/frontend/projects/setup-wizard/src/app/services/api/live-api.service.ts +++ b/frontend/projects/setup-wizard/src/app/services/api/live-api.service.ts @@ -111,10 +111,15 @@ export class LiveApiService extends ApiService { } async setupComplete() { - return this.http.rpcRequest({ + const res = await this.http.rpcRequest({ method: 'setup.complete', params: {}, }) + + return { + ...res, + 'root-ca': btoa(res['root-ca']), + } } }