@peculiar/certificates-viewer 4.7.0 → 4.7.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/attribute-certificate-viewer.js +4 -2
- package/components/attribute-certificate-viewer.js.map +1 -1
- package/components/attribute.js +1 -1
- package/components/certificate-chain-viewer.js +1 -1
- package/components/certificate-viewer.js +3 -2
- package/components/certificate-viewer.js.map +1 -1
- package/components/crl-viewer.js +4 -2
- package/components/crl-viewer.js.map +1 -1
- package/components/csr-viewer.js +2 -2
- package/components/download.js +2 -12680
- package/components/download.js.map +1 -1
- package/components/index.js +2 -1
- package/components/index.js.map +1 -1
- package/components/index2.js +3 -2
- package/components/index2.js.map +1 -1
- package/components/issuer_name.js +2 -2
- package/components/link.js +14335 -0
- package/components/link.js.map +1 -0
- package/components/miscellaneous.js +5 -79
- package/components/miscellaneous.js.map +1 -1
- package/components/peculiar-certificate-decoder.js +32 -16
- package/components/peculiar-certificate-decoder.js.map +1 -1
- package/components/peculiar-certificates-viewer.js +2 -1
- package/components/peculiar-certificates-viewer.js.map +1 -1
- package/components/peculiar-ssh-certificate-viewer.d.ts +11 -0
- package/components/peculiar-ssh-certificate-viewer.js +12 -0
- package/components/peculiar-ssh-certificate-viewer.js.map +1 -0
- package/components/peculiar-text-hider.js +1 -32
- package/components/peculiar-text-hider.js.map +1 -1
- package/components/pkcs10_certificate_request.js +2 -1
- package/components/pkcs10_certificate_request.js.map +1 -1
- package/components/row.js +87 -0
- package/components/row.js.map +1 -0
- package/components/ssh-certificate-viewer.js +193 -0
- package/components/ssh-certificate-viewer.js.map +1 -0
- package/components/subject_name.js +2 -2
- package/components/text-hider.js +40 -0
- package/components/text-hider.js.map +1 -0
- package/dist/cjs/extension-D8YKlAu4.js +110 -0
- package/dist/cjs/{extension-CGZpfI3W.js.map → extension-D8YKlAu4.js.map} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{miscellaneous-D_RAtkZz.js → miscellaneous-DvVSM5KJ.js} +147 -147
- package/dist/cjs/{miscellaneous-D_RAtkZz.js.map → miscellaneous-DvVSM5KJ.js.map} +1 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.cjs.js.map +1 -0
- package/dist/cjs/{peculiar-attribute-certificate-viewer_4.cjs.entry.js → peculiar-attribute-certificate-viewer_5.cjs.entry.js} +197 -44
- package/dist/{peculiar/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.esm.js.map → cjs/peculiar-attribute-certificate-viewer_5.cjs.entry.js.map} +1 -1
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +25 -21
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificate-decoder.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +4 -4
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +23 -23
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificates-viewer.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar.cjs.js +1 -1
- package/dist/cjs/pkcs10_certificate_request-BoHhadiA.js +146 -0
- package/dist/cjs/{pkcs10_certificate_request-BQkkkT42.js.map → pkcs10_certificate_request-BoHhadiA.js.map} +1 -1
- package/dist/cjs/{certification_request-DISQwgjn.js → ssh_certificate-s3-rwdMT.js} +1664 -16
- package/dist/cjs/ssh_certificate-s3-rwdMT.js.map +1 -0
- package/dist/cjs/{x509_certificate-DGRpZGA2.js → x509_certificate-DfXuxxZp.js} +29 -29
- package/dist/cjs/{x509_certificate-DGRpZGA2.js.map → x509_certificate-DfXuxxZp.js.map} +1 -1
- package/dist/cjs/{x509_crl-DMvJk_81.js → x509_crl-CxJ2lyGX.js} +32 -32
- package/dist/cjs/{x509_crl-DMvJk_81.js.map → x509_crl-CxJ2lyGX.js.map} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/certificate-decoder/certificate-decoder.js +10 -6
- package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -1
- package/dist/collection/components/ssh-certificate-viewer/-components/basic_information.js +29 -0
- package/dist/collection/components/ssh-certificate-viewer/-components/basic_information.js.map +1 -0
- package/dist/collection/components/ssh-certificate-viewer/-components/public_key.js +26 -0
- package/dist/collection/components/ssh-certificate-viewer/-components/public_key.js.map +1 -0
- package/dist/collection/components/ssh-certificate-viewer/-components/signature_key.js +26 -0
- package/dist/collection/components/ssh-certificate-viewer/-components/signature_key.js.map +1 -0
- package/dist/collection/components/ssh-certificate-viewer/ssh-certificate-viewer.js +193 -0
- package/dist/collection/components/ssh-certificate-viewer/ssh-certificate-viewer.js.map +1 -0
- package/dist/collection/crypto/index.js +1 -0
- package/dist/collection/crypto/index.js.map +1 -1
- package/dist/collection/crypto/ssh_certificate.js +68 -0
- package/dist/collection/crypto/ssh_certificate.js.map +1 -0
- package/dist/collection/locales/en.json +5 -1
- package/dist/esm/{extension-CUOKUt7o.js → extension-oK2qpCU6.js} +3 -3
- package/dist/{esm-es5/extension-CUOKUt7o.js.map → esm/extension-oK2qpCU6.js.map} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{miscellaneous-DVlekgVM.js → miscellaneous-DrmTXljc.js} +4 -4
- package/dist/esm/{miscellaneous-DVlekgVM.js.map → miscellaneous-DrmTXljc.js.map} +1 -1
- package/dist/esm/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.js.map +1 -0
- package/dist/esm/{peculiar-attribute-certificate-viewer_4.entry.js → peculiar-attribute-certificate-viewer_5.entry.js} +166 -14
- package/dist/esm/peculiar-attribute-certificate-viewer_5.entry.js.map +1 -0
- package/dist/esm/peculiar-certificate-decoder.entry.js +14 -10
- package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -1
- package/dist/esm/peculiar-certificate-viewer.entry.js +4 -4
- package/dist/esm/peculiar-certificates-viewer.entry.js +3 -3
- package/dist/esm/peculiar.js +1 -1
- package/dist/esm/{pkcs10_certificate_request-B9Q42jiE.js → pkcs10_certificate_request-Bdt_qA_g.js} +3 -3
- package/dist/esm/{pkcs10_certificate_request-B9Q42jiE.js.map → pkcs10_certificate_request-Bdt_qA_g.js.map} +1 -1
- package/dist/esm/{certification_request-CSS3OhZq.js → ssh_certificate-Ct-r021h.js} +1664 -17
- package/dist/esm/ssh_certificate-Ct-r021h.js.map +1 -0
- package/dist/esm/{x509_certificate-fWXLCtc8.js → x509_certificate-5DEbrOA7.js} +4 -4
- package/dist/esm/{x509_certificate-fWXLCtc8.js.map → x509_certificate-5DEbrOA7.js.map} +1 -1
- package/dist/esm/{x509_crl-Dq33Vv-q.js → x509_crl-CPgNUkh7.js} +5 -5
- package/dist/esm/{x509_crl-Dq33Vv-q.js.map → x509_crl-CPgNUkh7.js.map} +1 -1
- package/dist/esm-es5/{extension-CUOKUt7o.js → extension-oK2qpCU6.js} +2 -2
- package/dist/{esm/extension-CUOKUt7o.js.map → esm-es5/extension-oK2qpCU6.js.map} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{miscellaneous-DVlekgVM.js → miscellaneous-DrmTXljc.js} +2 -2
- package/dist/esm-es5/{miscellaneous-DVlekgVM.js.map → miscellaneous-DrmTXljc.js.map} +1 -1
- package/dist/esm-es5/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.js.map +1 -0
- package/dist/esm-es5/{peculiar-attribute-certificate-viewer_4.entry.js → peculiar-attribute-certificate-viewer_5.entry.js} +24 -3
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_5.entry.js.map +1 -0
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +1 -1
- package/dist/esm-es5/peculiar.js +1 -1
- package/dist/esm-es5/{pkcs10_certificate_request-B9Q42jiE.js → pkcs10_certificate_request-Bdt_qA_g.js} +2 -2
- package/dist/esm-es5/{pkcs10_certificate_request-B9Q42jiE.js.map → pkcs10_certificate_request-Bdt_qA_g.js.map} +1 -1
- package/dist/esm-es5/{certification_request-CSS3OhZq.js → ssh_certificate-Ct-r021h.js} +7 -7
- package/dist/{peculiar/p-D_WeukQa.system.js.map → esm-es5/ssh_certificate-Ct-r021h.js.map} +1 -1
- package/dist/esm-es5/{x509_certificate-fWXLCtc8.js → x509_certificate-5DEbrOA7.js} +2 -2
- package/dist/esm-es5/{x509_certificate-fWXLCtc8.js.map → x509_certificate-5DEbrOA7.js.map} +1 -1
- package/dist/esm-es5/{x509_crl-Dq33Vv-q.js → x509_crl-CPgNUkh7.js} +2 -2
- package/dist/esm-es5/{x509_crl-Dq33Vv-q.js.map → x509_crl-CPgNUkh7.js.map} +1 -1
- package/dist/peculiar/index.esm.js +1 -1
- package/dist/peculiar/locales/en.json +5 -1
- package/dist/peculiar/{p-4cc72a56.entry.js → p-0b895a8e.entry.js} +2 -2
- package/dist/peculiar/{p-a193f8fd.system.entry.js → p-11434880.system.entry.js} +2 -2
- package/dist/peculiar/{p-DTz3NA_M.system.js → p-2GQYAR0v.system.js} +2 -2
- package/dist/peculiar/{p-DTz3NA_M.system.js.map → p-2GQYAR0v.system.js.map} +1 -1
- package/dist/peculiar/{p-17ebc78c.system.entry.js → p-364fd32b.system.entry.js} +2 -2
- package/dist/peculiar/{p-e7c60082.system.entry.js → p-5df0f22b.system.entry.js} +40 -19
- package/dist/{esm-es5/peculiar-attribute-certificate-viewer_4.entry.js.map → peculiar/p-5df0f22b.system.entry.js.map} +1 -1
- package/dist/peculiar/{p-a4e74904.entry.js → p-62b723f6.entry.js} +40 -19
- package/dist/peculiar/p-62b723f6.entry.js.map +1 -0
- package/dist/peculiar/{p-e3967e76.entry.js → p-83a53b4f.entry.js} +2 -2
- package/dist/peculiar/{p-DKooqn40.js → p-B2G7qjfV.js} +10 -10
- package/dist/peculiar/{p-DKooqn40.js.map → p-B2G7qjfV.js.map} +1 -1
- package/dist/peculiar/{p-D8TC0Na9.system.js.map → p-BCsPspKr.system.js.map} +1 -1
- package/dist/peculiar/p-BGASC3UX.system.js +1 -1
- package/dist/peculiar/p-BGIWeG8l.js +12 -0
- package/dist/peculiar/{p-CZuaTO2G.js.map → p-BGIWeG8l.js.map} +1 -1
- package/dist/peculiar/{p-CEzxVCEh.system.js → p-BQiABBi1.system.js} +4 -4
- package/dist/peculiar/{p-CEzxVCEh.system.js.map → p-BQiABBi1.system.js.map} +1 -1
- package/dist/peculiar/{p-DcTXA-2R.system.js → p-BeVuAzsd.system.js} +39 -39
- package/dist/peculiar/{p-DcTXA-2R.system.js.map → p-BeVuAzsd.system.js.map} +1 -1
- package/dist/peculiar/{p-BTn-wukS.system.js → p-C31rbtuG.system.js} +2 -2
- package/dist/peculiar/p-C31rbtuG.system.js.map +1 -0
- package/dist/peculiar/p-Ce-IF7_R.system.js.map +1 -0
- package/dist/peculiar/p-ClkgAXnd.system.js +135 -0
- package/dist/peculiar/{p-CSS3OhZq.js.map → p-ClkgAXnd.system.js.map} +1 -1
- package/dist/peculiar/{p-CSS3OhZq.js → p-Ct-r021h.js} +12 -12
- package/dist/peculiar/p-Ct-r021h.js.map +1 -0
- package/dist/peculiar/{p-Bsy7Sqzl.system.js.map → p-CxtUQdcj.system.js.map} +1 -1
- package/dist/peculiar/{p-tl0v45Y7.js → p-D9qq15zG.js} +2 -2
- package/dist/peculiar/{p-tl0v45Y7.js.map → p-D9qq15zG.js.map} +1 -1
- package/dist/peculiar/{p-BG_D4qzJ.js → p-DOpiv0-8.js} +3 -3
- package/dist/peculiar/{p-BG_D4qzJ.js.map → p-DOpiv0-8.js.map} +1 -1
- package/dist/peculiar/p-IOtHTzYC.system.js +12 -0
- package/dist/peculiar/{p-CgCUixvk.system.js.map → p-IOtHTzYC.system.js.map} +1 -1
- package/dist/peculiar/p-LmKU8Smy.system.js.map +1 -0
- package/dist/peculiar/{p-CoPYW15U.js → p-RWPI76Dh.js} +4 -4
- package/dist/peculiar/{p-CoPYW15U.js.map → p-RWPI76Dh.js.map} +1 -1
- package/dist/peculiar/p-da9eb1e7.entry.js +5 -0
- package/dist/peculiar/p-da9eb1e7.entry.js.map +1 -0
- package/dist/peculiar/p-fd98bb82.system.entry.js +5 -0
- package/dist/peculiar/p-fd98bb82.system.entry.js.map +1 -0
- package/dist/peculiar/p-zQwWLfga.system.js +19 -0
- package/dist/peculiar/{p-7fTYvx_V.system.js.map → p-zQwWLfga.system.js.map} +1 -1
- package/dist/peculiar/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.esm.js.map +1 -0
- package/dist/peculiar/peculiar-certificate-decoder.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +4 -4
- package/dist/types/components/ssh-certificate-viewer/-components/basic_information.d.ts +21 -0
- package/dist/types/components/ssh-certificate-viewer/-components/public_key.d.ts +14 -0
- package/dist/types/components/ssh-certificate-viewer/-components/signature_key.d.ts +14 -0
- package/dist/types/components/ssh-certificate-viewer/ssh-certificate-viewer.d.ts +43 -0
- package/dist/types/components.d.ts +43 -0
- package/dist/types/crypto/index.d.ts +1 -0
- package/dist/types/crypto/ssh_certificate.d.ts +28 -0
- package/dist/types/utils/l10n.d.ts +4 -0
- package/hydrate/index.js +1840 -27
- package/hydrate/index.mjs +1840 -27
- package/package.json +3 -2
- package/dist/cjs/certification_request-DISQwgjn.js.map +0 -1
- package/dist/cjs/extension-CGZpfI3W.js +0 -110
- package/dist/cjs/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.cjs.js.map +0 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer_4.cjs.entry.js.map +0 -1
- package/dist/cjs/pkcs10_certificate_request-BQkkkT42.js +0 -146
- package/dist/esm/certification_request-CSS3OhZq.js.map +0 -1
- package/dist/esm/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.js.map +0 -1
- package/dist/esm/peculiar-attribute-certificate-viewer_4.entry.js.map +0 -1
- package/dist/esm-es5/certification_request-CSS3OhZq.js.map +0 -1
- package/dist/esm-es5/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.js.map +0 -1
- package/dist/peculiar/p-7fTYvx_V.system.js +0 -19
- package/dist/peculiar/p-BTn-wukS.system.js.map +0 -1
- package/dist/peculiar/p-CZuaTO2G.js +0 -12
- package/dist/peculiar/p-CgCUixvk.system.js +0 -12
- package/dist/peculiar/p-DLsQGkmT.system.js.map +0 -1
- package/dist/peculiar/p-D_WeukQa.system.js +0 -135
- package/dist/peculiar/p-a4e74904.entry.js.map +0 -1
- package/dist/peculiar/p-ce006f1c.system.entry.js +0 -5
- package/dist/peculiar/p-ce006f1c.system.entry.js.map +0 -1
- package/dist/peculiar/p-e7c60082.system.entry.js.map +0 -1
- package/dist/peculiar/p-f465afe6.entry.js +0 -5
- package/dist/peculiar/p-f465afe6.entry.js.map +0 -1
- package/dist/peculiar/p-tBL0ekYY.system.js.map +0 -1
- /package/dist/peculiar/{p-4cc72a56.entry.js.map → p-0b895a8e.entry.js.map} +0 -0
- /package/dist/peculiar/{p-a193f8fd.system.entry.js.map → p-11434880.system.entry.js.map} +0 -0
- /package/dist/peculiar/{p-17ebc78c.system.entry.js.map → p-364fd32b.system.entry.js.map} +0 -0
- /package/dist/peculiar/{p-e3967e76.entry.js.map → p-83a53b4f.entry.js.map} +0 -0
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
6
|
var index = require('./index-uHmGhObe.js');
|
|
7
|
-
var
|
|
7
|
+
var ssh_certificate = require('./ssh_certificate-s3-rwdMT.js');
|
|
8
8
|
var link = require('./link-Cgh8wnbs.js');
|
|
9
|
-
var extension = require('./extension-
|
|
9
|
+
var extension = require('./extension-D8YKlAu4.js');
|
|
10
10
|
var button = require('./button-C8EWG_-r.js');
|
|
11
11
|
var download = require('./download-DQP0KR4o.js');
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ var download = require('./download-DQP0KR4o.js');
|
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
19
|
*/
|
|
20
20
|
function getStringByOID(value) {
|
|
21
|
-
const oid =
|
|
21
|
+
const oid = ssh_certificate.OIDs[value];
|
|
22
22
|
if (oid) {
|
|
23
23
|
return `${oid} (${value})`;
|
|
24
24
|
}
|
|
@@ -119,15 +119,15 @@ const RowValue = (props) => {
|
|
|
119
119
|
const BasicInformation = (props) => {
|
|
120
120
|
const { serialNumber, version, validity, notBefore, notAfter, lastUpdate, nextUpdate, type, } = props;
|
|
121
121
|
return [
|
|
122
|
-
index.h(RowTitle, { value:
|
|
123
|
-
index.h(RowValue, { name:
|
|
124
|
-
index.h(RowValue, { name:
|
|
125
|
-
index.h(RowValue, { name:
|
|
126
|
-
index.h(RowValue, { name:
|
|
127
|
-
index.h(RowValue, { name:
|
|
128
|
-
index.h(RowValue, { name:
|
|
129
|
-
index.h(RowValue, { name:
|
|
130
|
-
index.h(RowValue, { name:
|
|
122
|
+
index.h(RowTitle, { value: ssh_certificate.l10n.getString('basicInformation') }),
|
|
123
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('type'), value: type }),
|
|
124
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('serialNumber'), value: serialNumber, monospace: true }),
|
|
125
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('version'), value: version }),
|
|
126
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('validity'), value: validity }),
|
|
127
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('issued'), value: notBefore ? ssh_certificate.dateShort(notBefore) : undefined }),
|
|
128
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('expired'), value: notAfter ? ssh_certificate.dateShort(notAfter) : undefined }),
|
|
129
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('lastUpdate'), value: lastUpdate ? ssh_certificate.dateShort(lastUpdate) : undefined }),
|
|
130
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('nextUpdate'), value: nextUpdate ? ssh_certificate.dateShort(nextUpdate) : undefined }),
|
|
131
131
|
];
|
|
132
132
|
};
|
|
133
133
|
|
|
@@ -163,15 +163,15 @@ const PublicKey = (props) => {
|
|
|
163
163
|
}
|
|
164
164
|
function renderKeyDetails(key) {
|
|
165
165
|
return [
|
|
166
|
-
index.h(RowValue, { name:
|
|
167
|
-
index.h(RowValue, { name:
|
|
168
|
-
index.h(RowValue, { name:
|
|
169
|
-
index.h(RowValue, { name:
|
|
170
|
-
index.h(RowValue, { name:
|
|
166
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('algorithm'), value: getStringByOID(key.algorithm) }),
|
|
167
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('namedCurve'), value: getStringByOID((key.params && 'namedCurve' in key.params) ? key.params.namedCurve : undefined) }),
|
|
168
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('exponent'), value: getPublicKeyExponent(key) }),
|
|
169
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('modulus'), value: getPublicKeyModulus(key) }),
|
|
170
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('value'), value: ssh_certificate.buildExports.Convert.ToHex(key.value), monospace: true, collapse: true }),
|
|
171
171
|
];
|
|
172
172
|
}
|
|
173
173
|
return [
|
|
174
|
-
index.h(RowTitle, { value:
|
|
174
|
+
index.h(RowTitle, { value: ssh_certificate.l10n.getString('publicKeyInfo') }),
|
|
175
175
|
renderKeyDetails(publicKey),
|
|
176
176
|
(Array.isArray(publicKey.params) && publicKey.params.length && publicKey.params.map((param) => (index.h(TableRowTable, null, renderKeyDetails(param))))),
|
|
177
177
|
];
|
|
@@ -187,7 +187,7 @@ const PublicKey = (props) => {
|
|
|
187
187
|
const SubjectName = (props) => {
|
|
188
188
|
const { name } = props;
|
|
189
189
|
return [
|
|
190
|
-
index.h(RowTitle, { value:
|
|
190
|
+
index.h(RowTitle, { value: ssh_certificate.l10n.getString('subjectName') }),
|
|
191
191
|
name.map((n) => (index.h(RowValue, { name: n.name || n.type, value: n.value }))),
|
|
192
192
|
];
|
|
193
193
|
};
|
|
@@ -201,7 +201,7 @@ const SubjectName = (props) => {
|
|
|
201
201
|
*/
|
|
202
202
|
const IssuerName = (props) => {
|
|
203
203
|
const { name, issuerDnLink } = props;
|
|
204
|
-
const title =
|
|
204
|
+
const title = ssh_certificate.l10n.getString('issuerName');
|
|
205
205
|
return [
|
|
206
206
|
index.h(RowTitle, { value: issuerDnLink
|
|
207
207
|
? (index.h(link.Link, { href: issuerDnLink }, title))
|
|
@@ -224,12 +224,12 @@ const Signature = (props) => {
|
|
|
224
224
|
}
|
|
225
225
|
function renderSignatureDetails(data) {
|
|
226
226
|
return [
|
|
227
|
-
index.h(RowValue, { name:
|
|
228
|
-
index.h(RowValue, { name:
|
|
227
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('algorithm'), value: getStringByOID(data.algorithm) }),
|
|
228
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('value'), value: ssh_certificate.buildExports.Convert.ToHex(data.value), monospace: true, collapse: true }),
|
|
229
229
|
];
|
|
230
230
|
}
|
|
231
231
|
return [
|
|
232
|
-
index.h(RowTitle, { value:
|
|
232
|
+
index.h(RowTitle, { value: ssh_certificate.l10n.getString('signature') }),
|
|
233
233
|
renderSignatureDetails(signature),
|
|
234
234
|
(signature.params && signature.params.length && signature.params.map((param) => (index.h(TableRowTable, null, renderSignatureDetails(param))))),
|
|
235
235
|
];
|
|
@@ -252,7 +252,7 @@ const Thumbprints = (props) => {
|
|
|
252
252
|
return null;
|
|
253
253
|
}
|
|
254
254
|
return [
|
|
255
|
-
index.h(RowTitle, { value:
|
|
255
|
+
index.h(RowTitle, { value: ssh_certificate.l10n.getString('fingerprints') }),
|
|
256
256
|
keys.map((name) => (index.h(RowValue, { name: name, value: thumbprints[name], monospace: true }))),
|
|
257
257
|
];
|
|
258
258
|
};
|
|
@@ -268,7 +268,7 @@ const BasicExtension = (props, children) => {
|
|
|
268
268
|
const { extension } = props;
|
|
269
269
|
return ([
|
|
270
270
|
index.h(RowValue, { name: "Name", value: getStringByOID(extension.asn.extnID) }),
|
|
271
|
-
index.h(RowValue, { name: "Critical", value: extension.asn.critical ?
|
|
271
|
+
index.h(RowValue, { name: "Critical", value: extension.asn.critical ? ssh_certificate.l10n.getString('yes') : ssh_certificate.l10n.getString('no') }),
|
|
272
272
|
children,
|
|
273
273
|
index.h("tr", null,
|
|
274
274
|
index.h("td", { colSpan: 2, class: "divider" },
|
|
@@ -299,7 +299,7 @@ const KeyUsageExtension = (props) => {
|
|
|
299
299
|
const BasicConstraintsExtension = (props) => {
|
|
300
300
|
const { extension } = props;
|
|
301
301
|
return (index.h(BasicExtension, { extension: extension },
|
|
302
|
-
index.h(RowValue, { name: "Certificate Authority", value: extension.value.cA ?
|
|
302
|
+
index.h(RowValue, { name: "Certificate Authority", value: extension.value.cA ? ssh_certificate.l10n.getString('yes') : ssh_certificate.l10n.getString('no') }),
|
|
303
303
|
index.h(RowValue, { name: "Path Length Constraint", value: extension.value.pathLenConstraint })));
|
|
304
304
|
};
|
|
305
305
|
|
|
@@ -328,7 +328,7 @@ const ExtendedKeyUsageExtension = (props) => {
|
|
|
328
328
|
*/
|
|
329
329
|
const SubjectKeyIdentifierExtension = (props) => {
|
|
330
330
|
const { extension, getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink, } = props;
|
|
331
|
-
const keyId =
|
|
331
|
+
const keyId = ssh_certificate.buildExports.Convert.ToHex(extension.value.buffer);
|
|
332
332
|
const childrenLink = getSubjectKeyIdChildrenLink(keyId);
|
|
333
333
|
const siblingsLink = getSubjectKeyIdSiblingsLink(keyId);
|
|
334
334
|
return (index.h(BasicExtension, { extension: extension },
|
|
@@ -353,7 +353,7 @@ const SubjectKeyIdentifierExtension = (props) => {
|
|
|
353
353
|
*/
|
|
354
354
|
const AuthorityKeyIdentifierExtension = (props) => {
|
|
355
355
|
const { extension, getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink, } = props;
|
|
356
|
-
const keyId =
|
|
356
|
+
const keyId = ssh_certificate.buildExports.Convert.ToHex(extension.value.keyIdentifier.buffer);
|
|
357
357
|
const parentLink = getAuthKeyIdParentLink(keyId);
|
|
358
358
|
const siblingsLink = getAuthKeyIdSiblingsLink(keyId);
|
|
359
359
|
return (index.h(BasicExtension, { extension: extension },
|
|
@@ -394,35 +394,35 @@ const GeneralNamePart = (props) => {
|
|
|
394
394
|
}
|
|
395
395
|
return Object.keys(generalName).map((name) => {
|
|
396
396
|
const value = generalName[name];
|
|
397
|
-
if (value instanceof
|
|
397
|
+
if (value instanceof ssh_certificate.Name$1) {
|
|
398
398
|
return [
|
|
399
399
|
index.h(RowValue, { name: names[name] || name, value: "" }),
|
|
400
|
-
index.h(TableRowTable, null, value.map((relativeDistinguishedName) => (relativeDistinguishedName.map((attributeTypeAndValue) => (index.h(RowValue, { name:
|
|
400
|
+
index.h(TableRowTable, null, value.map((relativeDistinguishedName) => (relativeDistinguishedName.map((attributeTypeAndValue) => (index.h(RowValue, { name: ssh_certificate.OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type, value: attributeTypeAndValue.value.toString() })))))),
|
|
401
401
|
];
|
|
402
402
|
}
|
|
403
|
-
if (value instanceof
|
|
403
|
+
if (value instanceof ssh_certificate.OtherName) {
|
|
404
404
|
try {
|
|
405
|
-
const text =
|
|
406
|
-
return (index.h(RowValue, { name:
|
|
405
|
+
const text = ssh_certificate.AsnParser.parse(value.value, ssh_certificate.DisplayText);
|
|
406
|
+
return (index.h(RowValue, { name: ssh_certificate.OIDs[value.typeId] || value.typeId, value: text.toString() }));
|
|
407
407
|
}
|
|
408
408
|
catch (_a) {
|
|
409
409
|
//
|
|
410
410
|
}
|
|
411
411
|
try {
|
|
412
|
-
const text =
|
|
412
|
+
const text = ssh_certificate.AsnParser.parse(value.value, ssh_certificate.UserNotice);
|
|
413
413
|
if (text.explicitText) {
|
|
414
|
-
return (index.h(RowValue, { name:
|
|
414
|
+
return (index.h(RowValue, { name: ssh_certificate.OIDs[value.typeId] || value.typeId, value: text.explicitText.toString() }));
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
catch (_b) {
|
|
418
418
|
//
|
|
419
419
|
}
|
|
420
|
-
return (index.h(RowValue, { name:
|
|
420
|
+
return (index.h(RowValue, { name: ssh_certificate.OIDs[value.typeId] || value.typeId, value: ssh_certificate.buildExports.Convert.ToHex(value.value), monospace: true }));
|
|
421
421
|
}
|
|
422
|
-
if (
|
|
423
|
-
return (index.h(RowValue, { name: names[name] || name, value:
|
|
422
|
+
if (ssh_certificate.buildExports.BufferSourceConverter.isBufferSource(value)) {
|
|
423
|
+
return (index.h(RowValue, { name: names[name] || name, value: ssh_certificate.buildExports.Convert.ToString(value) }));
|
|
424
424
|
}
|
|
425
|
-
if (value instanceof
|
|
425
|
+
if (value instanceof ssh_certificate.EDIPartyName) {
|
|
426
426
|
return (index.h(RowValue, { name: names[name] || name, value: value.partyName.toString() }));
|
|
427
427
|
}
|
|
428
428
|
if (name === 'dNSName') {
|
|
@@ -502,11 +502,11 @@ const CertificatePoliciesExtension = (props) => {
|
|
|
502
502
|
index.h(RowValue, { name: "Qualifier ID", value: getStringByOID(qualifierInfo.policyQualifierId) }),
|
|
503
503
|
];
|
|
504
504
|
if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.1') {
|
|
505
|
-
const value =
|
|
505
|
+
const value = ssh_certificate.AsnParser.parse(qualifierInfo.qualifier, ssh_certificate.DisplayText);
|
|
506
506
|
data.push(index.h(RowValue, { name: "Value", value: value.toString() }));
|
|
507
507
|
}
|
|
508
508
|
if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.2') {
|
|
509
|
-
const value =
|
|
509
|
+
const value = ssh_certificate.AsnParser.parse(qualifierInfo.qualifier, ssh_certificate.UserNotice);
|
|
510
510
|
if (value.explicitText) {
|
|
511
511
|
data.push(index.h(RowValue, { name: "Value", value: value.explicitText.toString() }));
|
|
512
512
|
}
|
|
@@ -619,7 +619,7 @@ const CertificateTransparencyExtension = (props) => {
|
|
|
619
619
|
index.h(RowValue, { name: "Version", value: signedCertificateTimestamp.version + 1 }),
|
|
620
620
|
index.h(RowValue, { name: "Log Operator", value: logs[signedCertificateTimestamp.logId] || signedCertificateTimestamp.logId }),
|
|
621
621
|
index.h(RowValue, { name: "Log Key ID", value: signedCertificateTimestamp.logId, monospace: true }),
|
|
622
|
-
index.h(RowValue, { name: "Timestamp", value:
|
|
622
|
+
index.h(RowValue, { name: "Timestamp", value: ssh_certificate.dateShort(signedCertificateTimestamp.timestamp) }),
|
|
623
623
|
index.h(RowValue, { name: "Signature Algorithm", value: `${signedCertificateTimestamp.hashAlgorithm} ${signedCertificateTimestamp.signatureAlgorithm}`.toUpperCase() }),
|
|
624
624
|
index.h(RowValue, { name: "Signature", value: signedCertificateTimestamp.signature, monospace: true })))),
|
|
625
625
|
])));
|
|
@@ -694,14 +694,14 @@ let Iso4217CurrencyCode = class Iso4217CurrencyCode {
|
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
};
|
|
697
|
-
|
|
698
|
-
|
|
697
|
+
ssh_certificate.__decorate([
|
|
698
|
+
ssh_certificate.AsnProp({ type: ssh_certificate.AsnPropTypes.PrintableString })
|
|
699
699
|
], Iso4217CurrencyCode.prototype, "alphabetic", void 0);
|
|
700
|
-
|
|
701
|
-
|
|
700
|
+
ssh_certificate.__decorate([
|
|
701
|
+
ssh_certificate.AsnProp({ type: ssh_certificate.AsnPropTypes.PrintableString })
|
|
702
702
|
], Iso4217CurrencyCode.prototype, "numeric", void 0);
|
|
703
|
-
Iso4217CurrencyCode =
|
|
704
|
-
|
|
703
|
+
Iso4217CurrencyCode = ssh_certificate.__decorate([
|
|
704
|
+
ssh_certificate.AsnType({ type: ssh_certificate.AsnTypeTypes.Choice })
|
|
705
705
|
], Iso4217CurrencyCode);
|
|
706
706
|
class MonetaryValue {
|
|
707
707
|
constructor(params = {}) {
|
|
@@ -711,30 +711,30 @@ class MonetaryValue {
|
|
|
711
711
|
Object.assign(this, params);
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
|
-
|
|
715
|
-
|
|
714
|
+
ssh_certificate.__decorate([
|
|
715
|
+
ssh_certificate.AsnProp({ type: Iso4217CurrencyCode })
|
|
716
716
|
], MonetaryValue.prototype, "currency", void 0);
|
|
717
|
-
|
|
718
|
-
|
|
717
|
+
ssh_certificate.__decorate([
|
|
718
|
+
ssh_certificate.AsnProp({ type: ssh_certificate.AsnPropTypes.Integer })
|
|
719
719
|
], MonetaryValue.prototype, "amount", void 0);
|
|
720
|
-
|
|
721
|
-
|
|
720
|
+
ssh_certificate.__decorate([
|
|
721
|
+
ssh_certificate.AsnProp({ type: ssh_certificate.AsnPropTypes.Integer })
|
|
722
722
|
], MonetaryValue.prototype, "exponent", void 0);
|
|
723
723
|
let QcEuLimitValue = class QcEuLimitValue extends MonetaryValue {
|
|
724
724
|
};
|
|
725
|
-
QcEuLimitValue =
|
|
726
|
-
|
|
725
|
+
QcEuLimitValue = ssh_certificate.__decorate([
|
|
726
|
+
ssh_certificate.AsnType({ type: ssh_certificate.AsnTypeTypes.Sequence })
|
|
727
727
|
], QcEuLimitValue);
|
|
728
728
|
let QcEuRetentionPeriod = class QcEuRetentionPeriod {
|
|
729
729
|
constructor(value = 0) {
|
|
730
730
|
this.value = value;
|
|
731
731
|
}
|
|
732
732
|
};
|
|
733
|
-
|
|
734
|
-
|
|
733
|
+
ssh_certificate.__decorate([
|
|
734
|
+
ssh_certificate.AsnProp({ type: ssh_certificate.AsnPropTypes.Integer })
|
|
735
735
|
], QcEuRetentionPeriod.prototype, "value", void 0);
|
|
736
|
-
QcEuRetentionPeriod =
|
|
737
|
-
|
|
736
|
+
QcEuRetentionPeriod = ssh_certificate.__decorate([
|
|
737
|
+
ssh_certificate.AsnType({ type: ssh_certificate.AsnTypeTypes.Choice })
|
|
738
738
|
], QcEuRetentionPeriod);
|
|
739
739
|
let PdsLocation = class PdsLocation {
|
|
740
740
|
constructor(params = {}) {
|
|
@@ -743,23 +743,23 @@ let PdsLocation = class PdsLocation {
|
|
|
743
743
|
Object.assign(this, params);
|
|
744
744
|
}
|
|
745
745
|
};
|
|
746
|
-
|
|
747
|
-
|
|
746
|
+
ssh_certificate.__decorate([
|
|
747
|
+
ssh_certificate.AsnProp({ type: ssh_certificate.AsnPropTypes.IA5String })
|
|
748
748
|
], PdsLocation.prototype, "url", void 0);
|
|
749
|
-
|
|
750
|
-
|
|
749
|
+
ssh_certificate.__decorate([
|
|
750
|
+
ssh_certificate.AsnProp({ type: ssh_certificate.AsnPropTypes.PrintableString })
|
|
751
751
|
], PdsLocation.prototype, "language", void 0);
|
|
752
|
-
PdsLocation =
|
|
753
|
-
|
|
752
|
+
PdsLocation = ssh_certificate.__decorate([
|
|
753
|
+
ssh_certificate.AsnType({ type: ssh_certificate.AsnTypeTypes.Sequence })
|
|
754
754
|
], PdsLocation);
|
|
755
|
-
let PdsLocations = PdsLocations_1 = class PdsLocations extends
|
|
755
|
+
let PdsLocations = PdsLocations_1 = class PdsLocations extends ssh_certificate.AsnArray {
|
|
756
756
|
constructor(items) {
|
|
757
757
|
super(items);
|
|
758
758
|
Object.setPrototypeOf(this, PdsLocations_1.prototype);
|
|
759
759
|
}
|
|
760
760
|
};
|
|
761
|
-
PdsLocations = PdsLocations_1 =
|
|
762
|
-
|
|
761
|
+
PdsLocations = PdsLocations_1 = ssh_certificate.__decorate([
|
|
762
|
+
ssh_certificate.AsnType({ type: ssh_certificate.AsnTypeTypes.Sequence, itemType: PdsLocation })
|
|
763
763
|
], PdsLocations);
|
|
764
764
|
let QcEuPDS = QcEuPDS_1 = class QcEuPDS extends PdsLocations {
|
|
765
765
|
constructor(items) {
|
|
@@ -767,26 +767,26 @@ let QcEuPDS = QcEuPDS_1 = class QcEuPDS extends PdsLocations {
|
|
|
767
767
|
Object.setPrototypeOf(this, QcEuPDS_1.prototype);
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
|
-
QcEuPDS = QcEuPDS_1 =
|
|
771
|
-
|
|
770
|
+
QcEuPDS = QcEuPDS_1 = ssh_certificate.__decorate([
|
|
771
|
+
ssh_certificate.AsnType({ type: ssh_certificate.AsnTypeTypes.Sequence, itemType: PdsLocation })
|
|
772
772
|
], QcEuPDS);
|
|
773
|
-
let QcType = QcType_1 = class QcType extends
|
|
773
|
+
let QcType = QcType_1 = class QcType extends ssh_certificate.AsnArray {
|
|
774
774
|
constructor(items) {
|
|
775
775
|
super(items);
|
|
776
776
|
Object.setPrototypeOf(this, QcType_1.prototype);
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
|
-
QcType = QcType_1 =
|
|
780
|
-
|
|
779
|
+
QcType = QcType_1 = ssh_certificate.__decorate([
|
|
780
|
+
ssh_certificate.AsnType({ type: ssh_certificate.AsnTypeTypes.Sequence, itemType: ssh_certificate.AsnPropTypes.ObjectIdentifier })
|
|
781
781
|
], QcType);
|
|
782
|
-
let QcCClegislation = QcCClegislation_1 = class QcCClegislation extends
|
|
782
|
+
let QcCClegislation = QcCClegislation_1 = class QcCClegislation extends ssh_certificate.AsnArray {
|
|
783
783
|
constructor(items) {
|
|
784
784
|
super(items);
|
|
785
785
|
Object.setPrototypeOf(this, QcCClegislation_1.prototype);
|
|
786
786
|
}
|
|
787
787
|
};
|
|
788
|
-
QcCClegislation = QcCClegislation_1 =
|
|
789
|
-
|
|
788
|
+
QcCClegislation = QcCClegislation_1 = ssh_certificate.__decorate([
|
|
789
|
+
ssh_certificate.AsnType({ type: ssh_certificate.AsnTypeTypes.Sequence, itemType: ssh_certificate.AsnPropTypes.PrintableString })
|
|
790
790
|
], QcCClegislation);
|
|
791
791
|
const id_etsi_qcs = "0.4.0.1862.1";
|
|
792
792
|
const id_etsi_qcs_qcRetentionPeriod = `${id_etsi_qcs}.3`;
|
|
@@ -806,20 +806,20 @@ const QCStatementsExtension = (props) => {
|
|
|
806
806
|
if (!statementInfo.byteLength) {
|
|
807
807
|
return null;
|
|
808
808
|
}
|
|
809
|
-
if (statementId ===
|
|
810
|
-
const semanticsInformation =
|
|
809
|
+
if (statementId === ssh_certificate.id_qcs_pkixQCSyntax_v2) {
|
|
810
|
+
const semanticsInformation = ssh_certificate.AsnParser.parse(statementInfo, ssh_certificate.SemanticsInformation);
|
|
811
811
|
return (index.h(RowValue, { name: "Semantics Identifier", value: getStringByOID(semanticsInformation.semanticsIdentifier) }));
|
|
812
812
|
}
|
|
813
813
|
if (statementId === id_etsi_qcs_qcType) {
|
|
814
|
-
const qcTypes =
|
|
814
|
+
const qcTypes = ssh_certificate.AsnParser.parse(statementInfo, QcType);
|
|
815
815
|
return (index.h(RowValue, { name: "QC Types", value: qcTypes.map((type) => getStringByOID(type)).join(', ') }));
|
|
816
816
|
}
|
|
817
817
|
if (statementId === id_etsi_qcs_qcRetentionPeriod) {
|
|
818
|
-
const retentionPeriod =
|
|
818
|
+
const retentionPeriod = ssh_certificate.AsnParser.parse(statementInfo, QcEuRetentionPeriod);
|
|
819
819
|
return (index.h(RowValue, { name: "Retention Period", value: `${retentionPeriod.value} years` }));
|
|
820
820
|
}
|
|
821
821
|
if (statementId === id_etsi_qcs_qcPDS) {
|
|
822
|
-
const pdsLocations =
|
|
822
|
+
const pdsLocations = ssh_certificate.AsnParser.parse(statementInfo, PdsLocations);
|
|
823
823
|
return ([
|
|
824
824
|
index.h(RowValue, { name: "PDS Locations", value: "" }),
|
|
825
825
|
pdsLocations.map((location) => (index.h(TableRowTable, null,
|
|
@@ -827,7 +827,7 @@ const QCStatementsExtension = (props) => {
|
|
|
827
827
|
index.h(RowValue, { name: "Language", value: location.language })))),
|
|
828
828
|
]);
|
|
829
829
|
}
|
|
830
|
-
return (index.h(RowValue, { name: "Info", value:
|
|
830
|
+
return (index.h(RowValue, { name: "Info", value: ssh_certificate.buildExports.Convert.ToHex(statementInfo), monospace: true }));
|
|
831
831
|
}
|
|
832
832
|
return (index.h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
|
|
833
833
|
index.h(RowValue, { name: "Statements", value: "" }),
|
|
@@ -901,7 +901,7 @@ const TimestampExtension = (props) => {
|
|
|
901
901
|
return (index.h(BasicExtension, { extension: extension },
|
|
902
902
|
index.h(RowValue, { name: "Version", value: extension.value.version }),
|
|
903
903
|
index.h(GeneralNamePart, Object.assign({ generalName: extension.value.location }, props)),
|
|
904
|
-
index.h(RowValue, { name: "Requires Auth", value: extension.value.requiresAuth ?
|
|
904
|
+
index.h(RowValue, { name: "Requires Auth", value: extension.value.requiresAuth ? ssh_certificate.l10n.getString('yes') : ssh_certificate.l10n.getString('no') })));
|
|
905
905
|
};
|
|
906
906
|
|
|
907
907
|
/**
|
|
@@ -938,7 +938,7 @@ const CRLReasonExtension = (props) => {
|
|
|
938
938
|
* LICENSE file in the root directory of this source tree.
|
|
939
939
|
*/
|
|
940
940
|
function getAttributeValue(attribute) {
|
|
941
|
-
return
|
|
941
|
+
return ssh_certificate.buildExports.Convert.ToString(attribute.values[0]);
|
|
942
942
|
}
|
|
943
943
|
|
|
944
944
|
/**
|
|
@@ -981,8 +981,8 @@ const AsStringExtension = (props) => {
|
|
|
981
981
|
const PrivateKeyUsagePeriodExtension = (props) => {
|
|
982
982
|
const { extension } = props;
|
|
983
983
|
return (index.h(BasicExtension, { extension: extension },
|
|
984
|
-
index.h(RowValue, { name: "Not Before", value:
|
|
985
|
-
index.h(RowValue, { name: "Not After", value:
|
|
984
|
+
index.h(RowValue, { name: "Not Before", value: ssh_certificate.dateShort(extension.value.notBefore) }),
|
|
985
|
+
index.h(RowValue, { name: "Not After", value: ssh_certificate.dateShort(extension.value.notAfter) })));
|
|
986
986
|
};
|
|
987
987
|
|
|
988
988
|
/**
|
|
@@ -1014,7 +1014,7 @@ const BiometricSyntaxExtension = (props) => {
|
|
|
1014
1014
|
index.h(RowValue, { name: "OID", value: getStringByOID(data.typeOfBiometricData.biometricDataOid) }),
|
|
1015
1015
|
index.h(RowValue, { name: "Type", value: data.typeOfBiometricData.predefinedBiometricType }),
|
|
1016
1016
|
index.h(RowValue, { name: "Algorithm", value: getStringByOID(data.hashAlgorithm.algorithm) }),
|
|
1017
|
-
index.h(RowValue, { name: "Hash", value:
|
|
1017
|
+
index.h(RowValue, { name: "Hash", value: ssh_certificate.buildExports.Convert.ToHex(data.biometricDataHash.buffer), monospace: true }),
|
|
1018
1018
|
index.h(RowValue, { name: "Source Uri", value: data.sourceDataUri })))),
|
|
1019
1019
|
])));
|
|
1020
1020
|
};
|
|
@@ -1036,7 +1036,7 @@ const LogotypeExtension = (props) => {
|
|
|
1036
1036
|
const { imageDetails } = img;
|
|
1037
1037
|
return [
|
|
1038
1038
|
index.h(RowValue, { name: "Image Type", value: imageDetails.mediaType }),
|
|
1039
|
-
index.h(RowValue, { name: "Image Hash", value:
|
|
1039
|
+
index.h(RowValue, { name: "Image Hash", value: ssh_certificate.buildExports.Convert.ToHex(imageDetails.logotypeHash[0].hashValue), monospace: true }),
|
|
1040
1040
|
index.h(RowValue, { name: "Image URL", value: imageDetails.logotypeURI[0], monospace: true, collapse: true }),
|
|
1041
1041
|
index.h(RowValue, { name: "Image Hash Algorithm", value: getStringByOID(imageDetails.logotypeHash[0].hashAlg.algorithm) }),
|
|
1042
1042
|
];
|
|
@@ -1050,7 +1050,7 @@ const LogotypeExtension = (props) => {
|
|
|
1050
1050
|
const { audioDetails } = aud;
|
|
1051
1051
|
return [
|
|
1052
1052
|
index.h(RowValue, { name: "Audio Type", value: audioDetails.mediaType }),
|
|
1053
|
-
index.h(RowValue, { name: "Audio Hash", value:
|
|
1053
|
+
index.h(RowValue, { name: "Audio Hash", value: ssh_certificate.buildExports.Convert.ToHex(audioDetails.logotypeHash[0].hashValue), monospace: true }),
|
|
1054
1054
|
index.h(RowValue, { name: "Audio URL", value: audioDetails.logotypeURI[0], monospace: true, collapse: true }),
|
|
1055
1055
|
index.h(RowValue, { name: "Audio Hash Algorithm", value: getStringByOID(audioDetails.logotypeHash[0].hashAlg.algorithm) }),
|
|
1056
1056
|
];
|
|
@@ -1103,8 +1103,8 @@ const TNAuthListExtension = (props) => {
|
|
|
1103
1103
|
const PolicyConstraintsExtension = (props) => {
|
|
1104
1104
|
const { extension } = props;
|
|
1105
1105
|
return (index.h(BasicExtension, { extension: extension },
|
|
1106
|
-
extension.value.requireExplicitPolicy && (index.h(RowValue, { name: "Require Explicit Policy", value:
|
|
1107
|
-
extension.value.inhibitPolicyMapping && (index.h(RowValue, { name: "Inhibit Policy Mapping", value:
|
|
1106
|
+
extension.value.requireExplicitPolicy && (index.h(RowValue, { name: "Require Explicit Policy", value: ssh_certificate.AsnIntegerArrayBufferConverter.toASN(extension.value.requireExplicitPolicy).valueBlock.toString() })),
|
|
1107
|
+
extension.value.inhibitPolicyMapping && (index.h(RowValue, { name: "Inhibit Policy Mapping", value: ssh_certificate.AsnIntegerArrayBufferConverter.toASN(extension.value.inhibitPolicyMapping).valueBlock.toString() }))));
|
|
1108
1108
|
};
|
|
1109
1109
|
|
|
1110
1110
|
/**
|
|
@@ -1134,7 +1134,7 @@ const PolicyMappingsExtension = (props) => {
|
|
|
1134
1134
|
const CRLNumberExtension = (props) => {
|
|
1135
1135
|
const { extension } = props;
|
|
1136
1136
|
return (index.h(BasicExtension, { extension: extension },
|
|
1137
|
-
index.h(RowValue, { name:
|
|
1137
|
+
index.h(RowValue, { name: ssh_certificate.l10n.getString('value'), value: extension.value.value })));
|
|
1138
1138
|
};
|
|
1139
1139
|
|
|
1140
1140
|
/**
|
|
@@ -1149,11 +1149,11 @@ const IssuingDistributionPointExtension = (props) => {
|
|
|
1149
1149
|
const { extension } = props;
|
|
1150
1150
|
return (index.h(BasicExtension, { extension: extension }, (_a = extension.value.distributionPoint) === null || _a === void 0 ? void 0 :
|
|
1151
1151
|
_a.fullName.map((gn) => (index.h(GeneralNamePart, Object.assign({ generalName: gn }, props)))),
|
|
1152
|
-
extension.value.onlySomeReasons && (index.h(RowValue, { name:
|
|
1153
|
-
extension.value.indirectCRL && (index.h(RowValue, { name:
|
|
1154
|
-
extension.value.onlyContainsUserCerts && (index.h(RowValue, { name:
|
|
1155
|
-
extension.value.onlyContainsAttributeCerts && (index.h(RowValue, { name:
|
|
1156
|
-
extension.value.onlyContainsCACerts && (index.h(RowValue, { name:
|
|
1152
|
+
extension.value.onlySomeReasons && (index.h(RowValue, { name: ssh_certificate.l10n.getString('onlyReasons'), value: extension.value.onlySomeReasons.toJSON().join(', ') })),
|
|
1153
|
+
extension.value.indirectCRL && (index.h(RowValue, { name: ssh_certificate.l10n.getString('indirectCRL'), value: ssh_certificate.l10n.getString('yes') })),
|
|
1154
|
+
extension.value.onlyContainsUserCerts && (index.h(RowValue, { name: ssh_certificate.l10n.getString('onlyUserCertificates'), value: ssh_certificate.l10n.getString('yes') })),
|
|
1155
|
+
extension.value.onlyContainsAttributeCerts && (index.h(RowValue, { name: ssh_certificate.l10n.getString('onlyAttributeCertificates'), value: ssh_certificate.l10n.getString('yes') })),
|
|
1156
|
+
extension.value.onlyContainsCACerts && (index.h(RowValue, { name: ssh_certificate.l10n.getString('onlyCACertificates'), value: ssh_certificate.l10n.getString('yes') }))));
|
|
1157
1157
|
};
|
|
1158
1158
|
|
|
1159
1159
|
/**
|
|
@@ -1172,26 +1172,26 @@ const KeyDescriptionExtension = (props) => {
|
|
|
1172
1172
|
case typeof keyValue === 'string' || typeof keyValue === 'number':
|
|
1173
1173
|
value = keyValue;
|
|
1174
1174
|
break;
|
|
1175
|
-
case keyValue instanceof
|
|
1175
|
+
case keyValue instanceof ssh_certificate.IntegerSet:
|
|
1176
1176
|
value = keyValue.join(', ');
|
|
1177
1177
|
break;
|
|
1178
1178
|
case typeof keyValue === 'boolean':
|
|
1179
1179
|
value = keyValue
|
|
1180
|
-
?
|
|
1181
|
-
:
|
|
1180
|
+
? ssh_certificate.l10n.getString('yes')
|
|
1181
|
+
: ssh_certificate.l10n.getString('no');
|
|
1182
1182
|
break;
|
|
1183
1183
|
case Object.is(keyValue, null):
|
|
1184
1184
|
value = 'NULL';
|
|
1185
1185
|
break;
|
|
1186
|
-
case keyValue instanceof
|
|
1186
|
+
case keyValue instanceof ssh_certificate.RootOfTrust:
|
|
1187
1187
|
return [
|
|
1188
1188
|
index.h(RowValue, { name: camelCaseToWords(keyName), value: "" }),
|
|
1189
1189
|
index.h(TableRowTable, null, renderRowValue(keyValue)),
|
|
1190
1190
|
];
|
|
1191
|
-
case
|
|
1191
|
+
case ssh_certificate.buildExports.BufferSourceConverter.isBufferSource(keyValue):
|
|
1192
1192
|
if (keyName === 'attestationApplicationId') {
|
|
1193
1193
|
try {
|
|
1194
|
-
const parsed =
|
|
1194
|
+
const parsed = ssh_certificate.AsnParser.parse(keyValue, ssh_certificate.AttestationApplicationId);
|
|
1195
1195
|
if (parsed.packageInfos.length || parsed.signatureDigests.length) {
|
|
1196
1196
|
return [
|
|
1197
1197
|
index.h(RowValue, { name: camelCaseToWords(keyName), value: "" }),
|
|
@@ -1206,10 +1206,10 @@ const KeyDescriptionExtension = (props) => {
|
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
1208
1208
|
try {
|
|
1209
|
-
value =
|
|
1209
|
+
value = ssh_certificate.buildExports.Convert.ToString(keyValue);
|
|
1210
1210
|
}
|
|
1211
1211
|
catch (_b) {
|
|
1212
|
-
value =
|
|
1212
|
+
value = ssh_certificate.buildExports.Convert.ToHex(keyValue);
|
|
1213
1213
|
}
|
|
1214
1214
|
break;
|
|
1215
1215
|
}
|
|
@@ -1229,8 +1229,8 @@ const KeyDescriptionExtension = (props) => {
|
|
|
1229
1229
|
index.h(RowValue, { name: camelCaseToWords('attestationSecurityLevel'), value: extension.value.attestationSecurityLevel }),
|
|
1230
1230
|
index.h(RowValue, { name: camelCaseToWords('keymasterVersion'), value: extension.value.keymasterVersion }),
|
|
1231
1231
|
index.h(RowValue, { name: camelCaseToWords('keymasterSecurityLevel'), value: extension.value.keymasterSecurityLevel }),
|
|
1232
|
-
index.h(RowValue, { name: camelCaseToWords('attestationChallenge'), value:
|
|
1233
|
-
index.h(RowValue, { name: camelCaseToWords('uniqueId'), value:
|
|
1232
|
+
index.h(RowValue, { name: camelCaseToWords('attestationChallenge'), value: ssh_certificate.buildExports.Convert.ToString(extension.value.attestationChallenge) }),
|
|
1233
|
+
index.h(RowValue, { name: camelCaseToWords('uniqueId'), value: ssh_certificate.buildExports.Convert.ToString(extension.value.uniqueId) || undefined }),
|
|
1234
1234
|
renderAuthorizationList(camelCaseToWords('softwareEnforced'), extension.value.softwareEnforced),
|
|
1235
1235
|
renderAuthorizationList(camelCaseToWords('teeEnforced'), extension.value.teeEnforced)));
|
|
1236
1236
|
};
|
|
@@ -1263,107 +1263,107 @@ const Extensions = (props) => {
|
|
|
1263
1263
|
index.h(RowTitle, { value: title || 'Extensions' }),
|
|
1264
1264
|
extensions.map((extension$1) => {
|
|
1265
1265
|
try {
|
|
1266
|
-
if (extension$1.value instanceof
|
|
1266
|
+
if (extension$1.value instanceof ssh_certificate.KeyUsage) {
|
|
1267
1267
|
return (index.h(KeyUsageExtension, { extension: extension$1 }));
|
|
1268
1268
|
}
|
|
1269
|
-
if (extension$1.value instanceof
|
|
1269
|
+
if (extension$1.value instanceof ssh_certificate.BasicConstraints) {
|
|
1270
1270
|
return (index.h(BasicConstraintsExtension, { extension: extension$1 }));
|
|
1271
1271
|
}
|
|
1272
|
-
if (extension$1.value instanceof
|
|
1272
|
+
if (extension$1.value instanceof ssh_certificate.ExtendedKeyUsage) {
|
|
1273
1273
|
return (index.h(ExtendedKeyUsageExtension, { extension: extension$1 }));
|
|
1274
1274
|
}
|
|
1275
|
-
if (extension$1.value instanceof
|
|
1275
|
+
if (extension$1.value instanceof ssh_certificate.SubjectKeyIdentifier) {
|
|
1276
1276
|
return (index.h(SubjectKeyIdentifierExtension, Object.assign({ extension: extension$1 }, props)));
|
|
1277
1277
|
}
|
|
1278
|
-
if (extension$1.value instanceof
|
|
1278
|
+
if (extension$1.value instanceof ssh_certificate.AuthorityKeyIdentifier) {
|
|
1279
1279
|
return (index.h(AuthorityKeyIdentifierExtension, Object.assign({ extension: extension$1 }, props)));
|
|
1280
1280
|
}
|
|
1281
|
-
if (extension$1.value instanceof
|
|
1281
|
+
if (extension$1.value instanceof ssh_certificate.CRLDistributionPoints) {
|
|
1282
1282
|
return (index.h(CRLDistributionPointsExtension, Object.assign({ extension: extension$1 }, props)));
|
|
1283
1283
|
}
|
|
1284
|
-
if (extension$1.value instanceof
|
|
1285
|
-
|| extension$1.value instanceof
|
|
1284
|
+
if (extension$1.value instanceof ssh_certificate.AuthorityInfoAccessSyntax
|
|
1285
|
+
|| extension$1.value instanceof ssh_certificate.SubjectInfoAccessSyntax) {
|
|
1286
1286
|
return (index.h(InfoAccessSyntaxExtension, Object.assign({ extension: extension$1 }, props)));
|
|
1287
1287
|
}
|
|
1288
|
-
if (extension$1.value instanceof
|
|
1288
|
+
if (extension$1.value instanceof ssh_certificate.SubjectAlternativeName) {
|
|
1289
1289
|
return (index.h(SubjectAlternativeNameExtension, Object.assign({ extension: extension$1 }, props)));
|
|
1290
1290
|
}
|
|
1291
|
-
if (extension$1.value instanceof
|
|
1291
|
+
if (extension$1.value instanceof ssh_certificate.CertificatePolicies) {
|
|
1292
1292
|
return (index.h(CertificatePoliciesExtension, { extension: extension$1 }));
|
|
1293
1293
|
}
|
|
1294
1294
|
if (extension$1.value instanceof extension.CertificateTransparency) {
|
|
1295
1295
|
return (index.h(CertificateTransparencyExtension, { extension: extension$1 }));
|
|
1296
1296
|
}
|
|
1297
|
-
if (extension$1.value instanceof
|
|
1297
|
+
if (extension$1.value instanceof ssh_certificate.NameConstraints) {
|
|
1298
1298
|
return (index.h(NameConstraintsExtension, Object.assign({ extension: extension$1 }, props)));
|
|
1299
1299
|
}
|
|
1300
|
-
if (extension$1.value instanceof
|
|
1300
|
+
if (extension$1.value instanceof ssh_certificate.CertificateTemplate) {
|
|
1301
1301
|
return (index.h(CertificateTemplateExtension, { extension: extension$1 }));
|
|
1302
1302
|
}
|
|
1303
|
-
if (extension$1.value instanceof
|
|
1303
|
+
if (extension$1.value instanceof ssh_certificate.EnrollCertTypeChoice) {
|
|
1304
1304
|
return (index.h(EnrollCertTypeChoiceExtension, { extension: extension$1 }));
|
|
1305
1305
|
}
|
|
1306
|
-
if (extension$1.value instanceof
|
|
1306
|
+
if (extension$1.value instanceof ssh_certificate.CaVersion) {
|
|
1307
1307
|
return (index.h(CaVersionExtension, { extension: extension$1 }));
|
|
1308
1308
|
}
|
|
1309
|
-
if (extension$1.value instanceof
|
|
1309
|
+
if (extension$1.value instanceof ssh_certificate.QCStatements) {
|
|
1310
1310
|
return (index.h(QCStatementsExtension, { extension: extension$1 }));
|
|
1311
1311
|
}
|
|
1312
|
-
if (extension$1.value instanceof
|
|
1312
|
+
if (extension$1.value instanceof ssh_certificate.NetscapeComment) {
|
|
1313
1313
|
return (index.h(NetscapeCommentExtension, { extension: extension$1 }));
|
|
1314
1314
|
}
|
|
1315
|
-
if (extension$1.value instanceof
|
|
1315
|
+
if (extension$1.value instanceof ssh_certificate.NetscapeCertType) {
|
|
1316
1316
|
return (index.h(NetscapeCertTypeExtension, { extension: extension$1 }));
|
|
1317
1317
|
}
|
|
1318
|
-
if (extension$1.value instanceof
|
|
1318
|
+
if (extension$1.value instanceof ssh_certificate.LeiRole) {
|
|
1319
1319
|
return (index.h(LeiRoleExtension, { extension: extension$1 }));
|
|
1320
1320
|
}
|
|
1321
|
-
if (extension$1.value instanceof
|
|
1321
|
+
if (extension$1.value instanceof ssh_certificate.LeiChoice) {
|
|
1322
1322
|
return (index.h(LeiExtension, Object.assign({ extension: extension$1 }, props)));
|
|
1323
1323
|
}
|
|
1324
|
-
if (extension$1.value instanceof
|
|
1324
|
+
if (extension$1.value instanceof ssh_certificate.Timestamp) {
|
|
1325
1325
|
return (index.h(TimestampExtension, Object.assign({ extension: extension$1 }, props)));
|
|
1326
1326
|
}
|
|
1327
|
-
if (extension$1.value instanceof
|
|
1327
|
+
if (extension$1.value instanceof ssh_certificate.ArchiveRevInfo) {
|
|
1328
1328
|
return (index.h(ArchiveRevInfoExtension, { extension: extension$1 }));
|
|
1329
1329
|
}
|
|
1330
|
-
if (extension$1.value instanceof
|
|
1330
|
+
if (extension$1.value instanceof ssh_certificate.CRLReason) {
|
|
1331
1331
|
return (index.h(CRLReasonExtension, { extension: extension$1 }));
|
|
1332
1332
|
}
|
|
1333
|
-
if (extension$1.value instanceof
|
|
1333
|
+
if (extension$1.value instanceof ssh_certificate.SubjectDirectoryAttributes) {
|
|
1334
1334
|
return (index.h(SubjectDirectoryAttributesExtension, { extension: extension$1 }));
|
|
1335
1335
|
}
|
|
1336
|
-
if (extension$1.value instanceof
|
|
1336
|
+
if (extension$1.value instanceof ssh_certificate.PrivateKeyUsagePeriod) {
|
|
1337
1337
|
return (index.h(PrivateKeyUsagePeriodExtension, { extension: extension$1 }));
|
|
1338
1338
|
}
|
|
1339
|
-
if (extension$1.value instanceof
|
|
1339
|
+
if (extension$1.value instanceof ssh_certificate.EntrustVersionInfo) {
|
|
1340
1340
|
return (index.h(EntrustVersionInfoExtension, { extension: extension$1 }));
|
|
1341
1341
|
}
|
|
1342
|
-
if (extension$1.value instanceof
|
|
1342
|
+
if (extension$1.value instanceof ssh_certificate.BiometricSyntax) {
|
|
1343
1343
|
return (index.h(BiometricSyntaxExtension, { extension: extension$1 }));
|
|
1344
1344
|
}
|
|
1345
|
-
if (extension$1.value instanceof
|
|
1345
|
+
if (extension$1.value instanceof ssh_certificate.LogotypeExtn) {
|
|
1346
1346
|
return (index.h(LogotypeExtension, { extension: extension$1 }));
|
|
1347
1347
|
}
|
|
1348
|
-
if (extension$1.value instanceof
|
|
1348
|
+
if (extension$1.value instanceof ssh_certificate.TNAuthorizationList) {
|
|
1349
1349
|
return (index.h(TNAuthListExtension, { extension: extension$1 }));
|
|
1350
1350
|
}
|
|
1351
|
-
if (extension$1.value instanceof
|
|
1351
|
+
if (extension$1.value instanceof ssh_certificate.PolicyConstraints) {
|
|
1352
1352
|
return (index.h(PolicyConstraintsExtension, { extension: extension$1 }));
|
|
1353
1353
|
}
|
|
1354
|
-
if (extension$1.value instanceof
|
|
1354
|
+
if (extension$1.value instanceof ssh_certificate.PolicyMappings) {
|
|
1355
1355
|
return (index.h(PolicyMappingsExtension, { extension: extension$1 }));
|
|
1356
1356
|
}
|
|
1357
|
-
if (extension$1.value instanceof
|
|
1357
|
+
if (extension$1.value instanceof ssh_certificate.CRLNumber) {
|
|
1358
1358
|
return (index.h(CRLNumberExtension, { extension: extension$1 }));
|
|
1359
1359
|
}
|
|
1360
|
-
if (extension$1.value instanceof
|
|
1360
|
+
if (extension$1.value instanceof ssh_certificate.IssuingDistributionPoint) {
|
|
1361
1361
|
return (index.h(IssuingDistributionPointExtension, Object.assign({ extension: extension$1 }, props)));
|
|
1362
1362
|
}
|
|
1363
|
-
if (extension$1.value instanceof
|
|
1363
|
+
if (extension$1.value instanceof ssh_certificate.NonStandardKeyDescription) {
|
|
1364
1364
|
return (index.h(KeyDescriptionExtension, Object.assign({ extension: extension$1 }, props)));
|
|
1365
1365
|
}
|
|
1366
|
-
if (extension$1.value instanceof
|
|
1366
|
+
if (extension$1.value instanceof ssh_certificate.CabforganizationIdentifier) {
|
|
1367
1367
|
return (index.h(CabforganizationIdentifierExtension, Object.assign({ extension: extension$1 }, props)));
|
|
1368
1368
|
}
|
|
1369
1369
|
if (typeof extension$1.value === 'string') {
|
|
@@ -1389,13 +1389,13 @@ const Extensions = (props) => {
|
|
|
1389
1389
|
const Miscellaneous = (props) => {
|
|
1390
1390
|
const { certificate } = props;
|
|
1391
1391
|
return [
|
|
1392
|
-
index.h(RowTitle, { value:
|
|
1392
|
+
index.h(RowTitle, { value: ssh_certificate.l10n.getString('miscellaneous') }),
|
|
1393
1393
|
index.h("tr", null,
|
|
1394
1394
|
index.h("td", null,
|
|
1395
|
-
index.h(button.Button, { startIcon: index.h(download.DownloadIcon, null), onClick: () => certificate.downloadAsPEM() },
|
|
1395
|
+
index.h(button.Button, { startIcon: index.h(download.DownloadIcon, null), onClick: () => certificate.downloadAsPEM() }, ssh_certificate.l10n.getString('download.pem')))),
|
|
1396
1396
|
index.h("tr", null,
|
|
1397
1397
|
index.h("td", null,
|
|
1398
|
-
index.h(button.Button, { startIcon: index.h(download.DownloadIcon, null), onClick: () => certificate.downloadAsDER() },
|
|
1398
|
+
index.h(button.Button, { startIcon: index.h(download.DownloadIcon, null), onClick: () => certificate.downloadAsDER() }, ssh_certificate.l10n.getString('download.der')))),
|
|
1399
1399
|
];
|
|
1400
1400
|
};
|
|
1401
1401
|
|
|
@@ -1416,6 +1416,6 @@ exports.getDNSNameLink = getDNSNameLink;
|
|
|
1416
1416
|
exports.getIPAddressLink = getIPAddressLink;
|
|
1417
1417
|
exports.getLEILink = getLEILink;
|
|
1418
1418
|
exports.getStringByOID = getStringByOID;
|
|
1419
|
-
//# sourceMappingURL=miscellaneous-
|
|
1419
|
+
//# sourceMappingURL=miscellaneous-DvVSM5KJ.js.map
|
|
1420
1420
|
|
|
1421
|
-
//# sourceMappingURL=miscellaneous-
|
|
1421
|
+
//# sourceMappingURL=miscellaneous-DvVSM5KJ.js.map
|