aboutsummaryrefslogtreecommitdiffstats
path: root/packages/renderer/src/stores/Service.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-04-22 00:53:48 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-05-16 00:55:02 +0200
commit1184eb13f0bbe4768bf3dbd6cd31adf10c6c8dfe (patch)
tree78e6c699d8a232c948b40f643299f7af95a29215 /packages/renderer/src/stores/Service.ts
parentfeat(renderer): Insecure connection warning (diff)
downloadsophie-1184eb13f0bbe4768bf3dbd6cd31adf10c6c8dfe.tar.gz
sophie-1184eb13f0bbe4768bf3dbd6cd31adf10c6c8dfe.tar.zst
sophie-1184eb13f0bbe4768bf3dbd6cd31adf10c6c8dfe.zip
feat: Certificate viewer
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 <kristof@marussy.com>
Diffstat (limited to 'packages/renderer/src/stores/Service.ts')
-rw-r--r--packages/renderer/src/stores/Service.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/renderer/src/stores/Service.ts b/packages/renderer/src/stores/Service.ts
index 4510ec0..dcaf96e 100644
--- a/packages/renderer/src/stores/Service.ts
+++ b/packages/renderer/src/stores/Service.ts
@@ -123,6 +123,12 @@ const Service = defineServiceModel(ServiceSettings)
123 action: 'dismiss-all-popups', 123 action: 'dismiss-all-popups',
124 }); 124 });
125 }, 125 },
126 downloadCertificate(fingerprint: string): void {
127 dispatch({
128 action: 'download-certificate',
129 fingerprint,
130 });
131 },
126 }; 132 };
127 }) 133 })
128 .actions((self) => ({ 134 .actions((self) => ({