From fa508a0fdd44a4b945196190da7cf38affe48f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Thu, 19 Aug 2021 21:43:48 +0300 Subject: [PATCH] Drop unused vanilla P12 export --- static/js/certidude.js | 7 ------- templates/views/enroll.html | 16 ---------------- 2 files changed, 23 deletions(-) diff --git a/static/js/certidude.js b/static/js/certidude.js index d98445f..9428280 100644 --- a/static/js/certidude.js +++ b/static/js/certidude.js @@ -202,13 +202,6 @@ function onEnroll(encoding) { let privKeyBase64 = await pkijsToBase64(keys.privateKey); switch(encoding) { - case 'p12': - var p12 = await pkcs12chain(privKeyBase64, [certBase64, caBase64], "", window.authority.certificate.hash_algorithm); - - var buf = arrayBufferToString(p12.toSchema().toBER(false)); - var mimetype = "application/x-pkcs12" - a.download = query.title + ".p12"; - break case 'sswan': var p12 = arrayBufferToString( (await pkcs12chain(privKeyBase64, [certBase64, caBase64], "", window.authority.certificate.hash_algorithm)).toSchema().toBER(false)); diff --git a/templates/views/enroll.html b/templates/views/enroll.html index 848146d..28e38c8 100644 --- a/templates/views/enroll.html +++ b/templates/views/enroll.html @@ -122,22 +122,6 @@ systemctl restart NetworkManager -
-
-
-

Windows

-

- Import PKCS#12 container to your machine trust store. - Import VPN connection profile by moving the downloaded .pbk file to -

%userprofile%\AppData\Roaming\Microsoft\Network\Connections\PBK
- or -
C:\ProgramData\Microsoft\Network\Connections\Pbk

- Fetch PKCS#12 container - Fetch IPSec IKEv2 VPN profile -
-
-
-