From 1184eb13f0bbe4768bf3dbd6cd31adf10c6c8dfe Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Fri, 22 Apr 2022 00:53:48 +0200 Subject: feat: Certificate viewer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show certificates with an interface modeled after firefox's certificate viewer so that they can be inspected before trusting. The current implementation assumes that each certificate has a unique fingerprint (collisions are astronomically unlikely). Signed-off-by: Kristóf Marussy --- packages/shared/src/schemas/ServiceAction.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/shared/src/schemas/ServiceAction.ts') diff --git a/packages/shared/src/schemas/ServiceAction.ts b/packages/shared/src/schemas/ServiceAction.ts index cfaba08..c0f07d6 100644 --- a/packages/shared/src/schemas/ServiceAction.ts +++ b/packages/shared/src/schemas/ServiceAction.ts @@ -67,6 +67,10 @@ export const ServiceAction = /* @__PURE__ */ (() => z.object({ action: z.literal('dismiss-all-popups'), }), + z.object({ + action: z.literal('download-certificate'), + fingerprint: z.string().nonempty(), + }), ]))(); /* -- cgit v1.2.3-54-g00ecf