@peculiar/certificates-viewer 4.6.1 → 4.7.0
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 +2 -2
- package/components/attribute.js +2 -1
- package/components/attribute.js.map +1 -1
- package/components/certificate-viewer.js +2 -2
- package/components/crl-viewer.js +2 -2
- package/components/csr-viewer.js +2 -2
- package/components/csr-viewer.js.map +1 -1
- package/components/download.js +19 -99
- package/components/download.js.map +1 -1
- package/components/index2.js +50 -2
- package/components/index2.js.map +1 -1
- package/components/miscellaneous.js +100 -2
- package/components/miscellaneous.js.map +1 -1
- package/components/peculiar-certificate-decoder.js +1 -1
- package/components/peculiar-certificates-viewer.js +1 -1
- package/components/pkcs10_certificate_request.js +1 -6
- package/components/pkcs10_certificate_request.js.map +1 -1
- package/dist/cjs/{certification_request-CxHe71zR.js → certification_request-DISQwgjn.js} +72 -112
- package/dist/cjs/certification_request-DISQwgjn.js.map +1 -0
- package/dist/cjs/extension-CGZpfI3W.js +110 -0
- package/dist/cjs/extension-CGZpfI3W.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{miscellaneous-DeBEwLDy.js → miscellaneous-D_RAtkZz.js} +78 -77
- package/dist/cjs/{miscellaneous-DeBEwLDy.js.map → miscellaneous-D_RAtkZz.js.map} +1 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer_4.cjs.entry.js +54 -5
- package/dist/cjs/peculiar-attribute-certificate-viewer_4.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +5 -4
- 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 -3
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificate-viewer.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +3 -2
- 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/{pkcs10_certificate_request-CHMDxe2Z.js → pkcs10_certificate_request-BQkkkT42.js} +4 -8
- package/dist/cjs/pkcs10_certificate_request-BQkkkT42.js.map +1 -0
- package/dist/cjs/{x509_certificate-CzplJQ0X.js → x509_certificate-DGRpZGA2.js} +5 -4
- package/dist/cjs/{x509_certificate-CzplJQ0X.js.map → x509_certificate-DGRpZGA2.js.map} +1 -1
- package/dist/cjs/{x509_crl-B7kFbLDV.js → x509_crl-DMvJk_81.js} +8 -7
- package/dist/cjs/{x509_crl-B7kFbLDV.js.map → x509_crl-DMvJk_81.js.map} +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/extension_request_attribute.js +25 -0
- package/dist/collection/components/certificate-details-parts/attributes/extension_request_attribute.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/index.js +10 -1
- package/dist/collection/components/certificate-details-parts/attributes/index.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/private_key_possession_statement_attribute.js +27 -0
- package/dist/collection/components/certificate-details-parts/attributes/private_key_possession_statement_attribute.js.map +1 -0
- package/dist/collection/components/csr-viewer/csr-viewer.js +2 -2
- package/dist/collection/components/csr-viewer/csr-viewer.js.map +1 -1
- package/dist/collection/constants/oids.js +2 -0
- package/dist/collection/constants/oids.js.map +1 -1
- package/dist/collection/crypto/attribute.js +2 -0
- package/dist/collection/crypto/attribute.js.map +1 -1
- package/dist/collection/crypto/pkcs10_certificate_request.js +0 -7
- package/dist/collection/crypto/pkcs10_certificate_request.js.map +1 -1
- package/dist/esm/{certification_request-PeMaLTUD.js → certification_request-CSS3OhZq.js} +21 -101
- package/dist/esm/certification_request-CSS3OhZq.js.map +1 -0
- package/dist/esm/extension-CUOKUt7o.js +107 -0
- package/dist/esm/extension-CUOKUt7o.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/{miscellaneous-bVeJt-6m.js → miscellaneous-DVlekgVM.js} +4 -3
- package/dist/esm/{miscellaneous-bVeJt-6m.js.map → miscellaneous-DVlekgVM.js.map} +1 -1
- package/dist/esm/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.js.map +1 -1
- package/dist/esm/peculiar-attribute-certificate-viewer_4.entry.js +54 -5
- package/dist/esm/peculiar-attribute-certificate-viewer_4.entry.js.map +1 -1
- package/dist/esm/peculiar-certificate-decoder.entry.js +5 -4
- package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -1
- package/dist/esm/peculiar-certificate-viewer.entry.js +4 -3
- package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -1
- package/dist/esm/peculiar-certificates-viewer.entry.js +3 -2
- package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -1
- package/dist/esm/{pkcs10_certificate_request-CK8FH47X.js → pkcs10_certificate_request-B9Q42jiE.js} +4 -8
- package/dist/esm/pkcs10_certificate_request-B9Q42jiE.js.map +1 -0
- package/dist/esm/{x509_certificate-CEEWtU_T.js → x509_certificate-fWXLCtc8.js} +4 -3
- package/dist/{esm-es5/x509_certificate-CEEWtU_T.js.map → esm/x509_certificate-fWXLCtc8.js.map} +1 -1
- package/dist/esm/{x509_crl-BcZd9KVn.js → x509_crl-Dq33Vv-q.js} +5 -4
- package/dist/{esm-es5/x509_crl-BcZd9KVn.js.map → esm/x509_crl-Dq33Vv-q.js.map} +1 -1
- package/dist/esm-es5/{certification_request-PeMaLTUD.js → certification_request-CSS3OhZq.js} +5 -12
- package/dist/esm-es5/certification_request-CSS3OhZq.js.map +1 -0
- package/dist/esm-es5/extension-CUOKUt7o.js +12 -0
- package/dist/esm-es5/extension-CUOKUt7o.js.map +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{miscellaneous-bVeJt-6m.js → miscellaneous-DVlekgVM.js} +2 -2
- package/dist/esm-es5/{miscellaneous-bVeJt-6m.js.map → miscellaneous-DVlekgVM.js.map} +1 -1
- package/dist/esm-es5/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_4.entry.js +17 -3
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_4.entry.js.map +1 -1
- 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-certificate-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -1
- package/dist/esm-es5/pkcs10_certificate_request-B9Q42jiE.js +19 -0
- package/dist/esm-es5/pkcs10_certificate_request-B9Q42jiE.js.map +1 -0
- package/dist/esm-es5/{x509_certificate-CEEWtU_T.js → x509_certificate-fWXLCtc8.js} +4 -4
- package/dist/{esm/x509_certificate-CEEWtU_T.js.map → esm-es5/x509_certificate-fWXLCtc8.js.map} +1 -1
- package/dist/esm-es5/{x509_crl-BcZd9KVn.js → x509_crl-Dq33Vv-q.js} +2 -2
- package/dist/{esm/x509_crl-BcZd9KVn.js.map → esm-es5/x509_crl-Dq33Vv-q.js.map} +1 -1
- package/dist/peculiar/index.esm.js +1 -1
- package/dist/peculiar/p-17ebc78c.system.entry.js +5 -0
- package/dist/peculiar/{p-14fcbc5c.system.entry.js.map → p-17ebc78c.system.entry.js.map} +1 -1
- package/dist/peculiar/{p-5479a530.entry.js → p-4cc72a56.entry.js} +2 -2
- package/dist/peculiar/p-7fTYvx_V.system.js +19 -0
- package/dist/peculiar/p-7fTYvx_V.system.js.map +1 -0
- package/dist/peculiar/p-BGASC3UX.system.js +1 -1
- package/dist/peculiar/{p-CjWRKsN-.js → p-BG_D4qzJ.js} +3 -3
- package/dist/peculiar/{p-CjWRKsN-.js.map → p-BG_D4qzJ.js.map} +1 -1
- package/dist/peculiar/{p-CZwhKPgb.system.js → p-BTn-wukS.system.js} +2 -2
- package/dist/peculiar/p-BTn-wukS.system.js.map +1 -0
- package/dist/peculiar/{p-BaebEpW0.system.js.map → p-Bsy7Sqzl.system.js.map} +1 -1
- package/dist/peculiar/{p-DRvp86xt.system.js → p-CEzxVCEh.system.js} +5 -5
- package/dist/peculiar/{p-DRvp86xt.system.js.map → p-CEzxVCEh.system.js.map} +1 -1
- package/dist/peculiar/{p-PeMaLTUD.js → p-CSS3OhZq.js} +9 -16
- package/dist/peculiar/p-CSS3OhZq.js.map +1 -0
- package/dist/peculiar/p-CZuaTO2G.js +12 -0
- package/dist/peculiar/p-CZuaTO2G.js.map +1 -0
- package/dist/peculiar/p-CgCUixvk.system.js +12 -0
- package/dist/peculiar/p-CgCUixvk.system.js.map +1 -0
- package/dist/peculiar/p-CoPYW15U.js +19 -0
- package/dist/peculiar/p-CoPYW15U.js.map +1 -0
- package/dist/peculiar/{p-BypepohK.system.js.map → p-D8TC0Na9.system.js.map} +1 -1
- package/dist/peculiar/p-DKooqn40.js +369 -0
- package/dist/peculiar/{p-CGRNSrHk.js.map → p-DKooqn40.js.map} +1 -1
- package/dist/peculiar/p-DLsQGkmT.system.js.map +1 -0
- package/dist/peculiar/{p-C9sY8yng.system.js → p-DTz3NA_M.system.js} +3 -3
- package/dist/peculiar/{p-C9sY8yng.system.js.map → p-DTz3NA_M.system.js.map} +1 -1
- package/dist/peculiar/p-D_WeukQa.system.js +135 -0
- package/dist/peculiar/p-D_WeukQa.system.js.map +1 -0
- package/dist/peculiar/{p-CezfC5i1.system.js → p-DcTXA-2R.system.js} +17 -17
- package/dist/peculiar/{p-CezfC5i1.system.js.map → p-DcTXA-2R.system.js.map} +1 -1
- package/dist/peculiar/{p-84f69023.system.entry.js → p-a193f8fd.system.entry.js} +2 -2
- package/dist/peculiar/p-a4e74904.entry.js +124 -0
- package/dist/peculiar/p-a4e74904.entry.js.map +1 -0
- package/dist/peculiar/p-ce006f1c.system.entry.js +5 -0
- package/dist/peculiar/{p-591a9019.system.entry.js.map → p-ce006f1c.system.entry.js.map} +1 -1
- package/dist/peculiar/p-e3967e76.entry.js +5 -0
- package/dist/peculiar/{p-0de4837d.entry.js.map → p-e3967e76.entry.js.map} +1 -1
- package/dist/peculiar/p-e7c60082.system.entry.js +125 -0
- package/dist/peculiar/p-e7c60082.system.entry.js.map +1 -0
- package/dist/peculiar/p-f465afe6.entry.js +5 -0
- package/dist/peculiar/{p-315805ce.entry.js.map → p-f465afe6.entry.js.map} +1 -1
- package/dist/peculiar/{p-BloT0Xj9.system.js.map → p-tBL0ekYY.system.js.map} +1 -1
- package/dist/peculiar/{p-DrmgUhyv.js → p-tl0v45Y7.js} +4 -4
- package/dist/peculiar/{p-DrmgUhyv.js.map → p-tl0v45Y7.js.map} +1 -1
- package/dist/peculiar/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar-certificate-decoder.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar-certificate-viewer.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar-certificates-viewer.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/certificate-details-parts/attributes/extension_request_attribute.d.ts +15 -0
- package/dist/types/components/certificate-details-parts/attributes/private_key_possession_statement_attribute.d.ts +15 -0
- package/dist/types/constants/oids.d.ts +2 -0
- package/dist/types/crypto/attribute.d.ts +2 -0
- package/dist/types/crypto/pkcs10_certificate_request.d.ts +0 -2
- package/hydrate/index.js +68 -6
- package/hydrate/index.mjs +68 -6
- package/package.json +3 -2
- package/dist/cjs/certification_request-CxHe71zR.js.map +0 -1
- package/dist/cjs/pkcs10_certificate_request-CHMDxe2Z.js.map +0 -1
- package/dist/esm/certification_request-PeMaLTUD.js.map +0 -1
- package/dist/esm/pkcs10_certificate_request-CK8FH47X.js.map +0 -1
- package/dist/esm-es5/certification_request-PeMaLTUD.js.map +0 -1
- package/dist/esm-es5/pkcs10_certificate_request-CK8FH47X.js +0 -19
- package/dist/esm-es5/pkcs10_certificate_request-CK8FH47X.js.map +0 -1
- package/dist/peculiar/p-00d6f11f.system.entry.js +0 -111
- package/dist/peculiar/p-00d6f11f.system.entry.js.map +0 -1
- package/dist/peculiar/p-0de4837d.entry.js +0 -5
- package/dist/peculiar/p-14fcbc5c.system.entry.js +0 -5
- package/dist/peculiar/p-315805ce.entry.js +0 -5
- package/dist/peculiar/p-591a9019.system.entry.js +0 -5
- package/dist/peculiar/p-BipKYW6e.system.js +0 -142
- package/dist/peculiar/p-BipKYW6e.system.js.map +0 -1
- package/dist/peculiar/p-CGRNSrHk.js +0 -369
- package/dist/peculiar/p-CZwhKPgb.system.js.map +0 -1
- package/dist/peculiar/p-D1eNnGDF.js +0 -19
- package/dist/peculiar/p-D1eNnGDF.js.map +0 -1
- package/dist/peculiar/p-ITVWR0oT.system.js.map +0 -1
- package/dist/peculiar/p-J1t5v5N3.system.js +0 -19
- package/dist/peculiar/p-J1t5v5N3.system.js.map +0 -1
- package/dist/peculiar/p-PeMaLTUD.js.map +0 -1
- package/dist/peculiar/p-c8b3766a.entry.js +0 -110
- package/dist/peculiar/p-c8b3766a.entry.js.map +0 -1
- /package/dist/peculiar/{p-5479a530.entry.js.map → p-4cc72a56.entry.js.map} +0 -0
- /package/dist/peculiar/{p-84f69023.system.entry.js.map → p-a193f8fd.system.entry.js.map} +0 -0
package/components/index2.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { h } from '@stencil/core/internal/client';
|
|
5
|
-
import {
|
|
6
|
-
import { a as RowValue, e as getStringByOID,
|
|
5
|
+
import { $ as OIDs, l as l10n, b as AsnConvert, f as buildExports, ab as Name$1, m as ExtensionRequest, o as ActivityDescription, W as WebGDPR, I as InsuranceValue, T as TypeRelationship, V as ValuationRanking, U as UnstructuredName, n as ChallengePassword, k as PrivateKeyPossessionStatement } from './download.js';
|
|
6
|
+
import { a as RowValue, e as getStringByOID, h as camelCaseToWords, d as TableRowTable, G as GeneralNamePart, E as Extension, f as Extensions, R as RowTitle } from './miscellaneous.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
@@ -187,6 +187,48 @@ const ChallengePasswordAttribute = (props) => {
|
|
|
187
187
|
h(RowValue, { name: "Value", value: attribute.value.toString() })));
|
|
188
188
|
};
|
|
189
189
|
|
|
190
|
+
/**
|
|
191
|
+
* @license
|
|
192
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the MIT license found in the
|
|
195
|
+
* LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/
|
|
197
|
+
const ExtensionRequestAttribute = (props) => {
|
|
198
|
+
const { attribute } = props;
|
|
199
|
+
let extensions;
|
|
200
|
+
if (attribute.value) {
|
|
201
|
+
extensions = attribute.value.map((e) => new Extension(AsnConvert.serialize(e)));
|
|
202
|
+
}
|
|
203
|
+
return (h(BasicAttribute, { attribute: attribute },
|
|
204
|
+
h(TableRowTable, null,
|
|
205
|
+
h(Extensions, { extensions: extensions, getDNSNameLink: () => '', getIPAddressLink: () => '', getLEILink: () => '' }))));
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @license
|
|
210
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the MIT license found in the
|
|
213
|
+
* LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/
|
|
215
|
+
const PrivateKeyPossessionStatementAttribute = (props) => {
|
|
216
|
+
const { attribute } = props;
|
|
217
|
+
const certificateRaw = attribute.value.cert
|
|
218
|
+
? AsnConvert.serialize(attribute.value.cert)
|
|
219
|
+
: null;
|
|
220
|
+
return (h(BasicAttribute, { attribute: attribute },
|
|
221
|
+
h(RowValue, { name: "Serial Number", value: buildExports.Convert.ToHex(attribute.value.signer.serialNumber), monospace: true }),
|
|
222
|
+
h(RowValue, { name: "Issuer", value: "" }),
|
|
223
|
+
h(TableRowTable, null,
|
|
224
|
+
h(NamePart, { name: attribute.value.signer.issuer })),
|
|
225
|
+
certificateRaw && [
|
|
226
|
+
h(RowValue, { name: "Certificate", value: "" }),
|
|
227
|
+
h(TableRowTable, null,
|
|
228
|
+
h("peculiar-certificate-viewer", { certificate: buildExports.Convert.ToBase64(certificateRaw) })),
|
|
229
|
+
]));
|
|
230
|
+
};
|
|
231
|
+
|
|
190
232
|
/**
|
|
191
233
|
* @license
|
|
192
234
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -206,6 +248,9 @@ const Attributes = (props) => {
|
|
|
206
248
|
if (attribute.value instanceof Name$1) {
|
|
207
249
|
return (h(NameAttribute, { attribute: attribute }));
|
|
208
250
|
}
|
|
251
|
+
if (attribute.value instanceof ExtensionRequest) {
|
|
252
|
+
return (h(ExtensionRequestAttribute, { attribute: attribute }));
|
|
253
|
+
}
|
|
209
254
|
if (attribute.value instanceof ActivityDescription) {
|
|
210
255
|
return (h(ActivityDescriptionAttribute, { attribute: attribute }));
|
|
211
256
|
}
|
|
@@ -227,6 +272,9 @@ const Attributes = (props) => {
|
|
|
227
272
|
if (attribute.value instanceof ChallengePassword) {
|
|
228
273
|
return (h(ChallengePasswordAttribute, { attribute: attribute }));
|
|
229
274
|
}
|
|
275
|
+
if (attribute.value instanceof PrivateKeyPossessionStatement) {
|
|
276
|
+
return (h(PrivateKeyPossessionStatementAttribute, { attribute: attribute }));
|
|
277
|
+
}
|
|
230
278
|
if (typeof attribute.value === 'string') {
|
|
231
279
|
return (h(AsStringAttribute, { attribute: attribute }));
|
|
232
280
|
}
|
package/components/index2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index2.js","mappings":";;;;;;;AAAA;;;;;;AAMG;AAWI,MAAM,cAAc,GAA8C,CAAC,KAAK,EAAE,QAAQ,KAAI;AAC3F,IAAA,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK;AAE3B,IAAA,QAAQ;AACN,QAAA,CAAA,CAAC,QAAQ,EACP,EAAA,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EACzC,CAAA;QACF,QAAQ;AACR,QAAA,CAAA,CAAA,IAAA,EAAA,IAAA;AACE,YAAA,CAAA,CAAA,IAAA,EAAA,EAAI,OAAO,EAAE,CAAC,EAAE,KAAK,EAAC,SAAS,EAAA;AAC7B,gBAAA,CAAA,CAAA,MAAA,EAAA,IAAA,CAAQ,CACL,CACF;AACN,KAAA;AACH,CAAC;;AChCD;;;;;;AAMG;AAWH;AACO,MAAM,QAAQ,GAAwC,CAAC,KAAK,KAAW;AAC5E,IAAA,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK;IAEtB,IAAI,CAAC,IAAI,EAAE;AACT,QAAA,OAAO,IAAI;;IAGb,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,yBAAyB,MACxC,yBAAyB,CAAC,GAAG,CAAC,CAAC,qBAAqB,MAClD,CAAC,CAAA,QAAQ,EACP,EAAA,IAAI,EAAE,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,IAAI,EACpE,KAAK,EAAE,qBAAqB,CAAC,KAAK,CAAC,QAAQ,EAAE,GAC7C,CACH,CAAC,CACH,CAAC;AACJ,CAAC;;ACjCD;;;;;;AAMG;AAYI,MAAM,aAAa,GACiB,CAAC,KAAK,KAAI;AACnD,I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names":["Name"],"sources":["src/components/certificate-details-parts/attributes/basic_attribute.tsx","src/components/certificate-details-parts/attributes/name_part.tsx","src/components/certificate-details-parts/attributes/name_attribute.tsx","src/components/certificate-details-parts/attributes/activity_description_attribute.tsx","src/components/certificate-details-parts/attributes/web_gdpr_attribute.tsx","src/components/certificate-details-parts/attributes/insurance_value_attribute.tsx","src/components/certificate-details-parts/attributes/type_relationship_attribute.tsx","src/components/certificate-details-parts/attributes/valuation_ranking_attribute.tsx","src/components/certificate-details-parts/attributes/as_string_attribute.tsx","src/components/certificate-details-parts/attributes/unstructured_name_attribute.tsx","src/components/certificate-details-parts/attributes/challenge_password_attribute.tsx","src/components/certificate-details-parts/attributes/index.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { Attribute, TAttributeValue } from '../../../crypto/attribute';\nimport { getStringByOID } from '../../../utils';\nimport { RowValue } from '../row';\n\ninterface IBasicAttributeProps {\n attribute: Attribute<TAttributeValue>;\n}\n\nexport const BasicAttribute: FunctionalComponent<IBasicAttributeProps> = (props, children) => {\n const { attribute } = props;\n\n return ([\n <RowValue\n name=\"Name\"\n value={getStringByOID(attribute.asn.type)}\n />,\n children,\n <tr>\n <td colSpan={2} class=\"divider\">\n <span />\n </td>\n </tr>,\n ]);\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { Name } from '@peculiar/asn1-x509';\nimport { OIDs } from '../../../constants/oids';\nimport { RowValue } from '../row';\n\ninterface INamePartProps {\n name: Name;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const NamePart: FunctionalComponent<INamePartProps> = (props): any[] => {\n const { name } = props;\n\n if (!name) {\n return null;\n }\n\n return name.map((relativeDistinguishedName) => (\n relativeDistinguishedName.map((attributeTypeAndValue) => (\n <RowValue\n name={OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type}\n value={attributeTypeAndValue.value.toString()}\n />\n ))\n ));\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { Name } from '@peculiar/asn1-x509';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { BasicAttribute } from './basic_attribute';\nimport { NamePart } from './name_part';\n\ninterface INameAttributeProps {\n attribute: Attribute<Name>;\n}\n\nexport const NameAttribute:\nFunctionalComponent<INameAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <NamePart\n name={attribute.value}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ActivityDescription } from '@peculiar/asn1-ntqwac';\nimport { Attribute } from '../../../crypto/attribute';\nimport { camelCaseToWords } from '../../../utils';\nimport { GeneralNamePart } from '../extensions/general_name_part';\nimport { RowValue, TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IActivityDescriptionAttributeProps {\n attribute: Attribute<ActivityDescription>;\n}\n\nexport const ActivityDescriptionAttribute:\nFunctionalComponent<IActivityDescriptionAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name={camelCaseToWords('codeAuthority')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.codeAuthority}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('codeId')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.codeId}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('shortName')}\n value={attribute.value.shortName}\n />\n <RowValue\n name={camelCaseToWords('shortDescription')}\n value={attribute.value.shortDescription}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { WebGDPR } from '@peculiar/asn1-ntqwac';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { camelCaseToWords } from '../../../utils';\nimport { GeneralNamePart } from '../extensions/general_name_part';\nimport { RowValue, TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IWebGdprAttributeProps {\n attribute: Attribute<WebGDPR>;\n}\n\nexport const WebGdprAttribute:\nFunctionalComponent<IWebGdprAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name={camelCaseToWords('assessmentAuthority')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentAuthority}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('assessmentLocation')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentLocation}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('assessmentRef')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentRef}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('dataStorageTerritory')}\n value={attribute.value.dataStorageTerritory}\n />\n <RowValue\n name={camelCaseToWords('description')}\n value={attribute.value.description}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { InsuranceValue } from '@peculiar/asn1-ntqwac';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IInsuranceValueAttributeProps {\n attribute: Attribute<InsuranceValue>;\n}\n\nexport const InsuranceValueAttribute:\nFunctionalComponent<IInsuranceValueAttributeProps> = (props) => {\n const { attribute } = props;\n const value = `${attribute.value.base} * 10^${attribute.value.degree} ${attribute.value.location}`;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={value}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { TypeRelationship } from '@peculiar/asn1-ntqwac';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { l10n } from '../../../utils';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface ITypeRelationshipAttributeProps {\n attribute: Attribute<TypeRelationship>;\n}\n\nexport const TypeRelationshipAttribute:\nFunctionalComponent<ITypeRelationshipAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n {Object.keys(attribute.value).map((keyName) => (\n <RowValue\n name={keyName}\n value={attribute.value[keyName].toNumber() ? l10n.getString('yes') : l10n.getString('no')}\n />\n ))}\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ValuationRanking } from '@peculiar/asn1-ntqwac';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IValuationRankingAttributeProps {\n attribute: Attribute<ValuationRanking>;\n}\n\nconst getValueRank = (value: number): string => {\n let ratio = 1;\n\n if (value / 100 > 1) {\n ratio = 100;\n } else if (value / 10 > 1) {\n ratio = 10;\n }\n\n return `${value}/${5 * ratio}`;\n};\n\nexport const ValuationRankingAttribute:\nFunctionalComponent<IValuationRankingAttributeProps> = (props) => {\n const { attribute } = props;\n const values = Object.keys(attribute.value).map((keyName) => ([\n getValueRank(attribute.value[keyName]),\n <br />,\n ]));\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={values as unknown as string[]}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IAsStringAttributeProps {\n attribute: Attribute<string>;\n}\n\nexport const AsStringAttribute:\nFunctionalComponent<IAsStringAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value}\n monospace\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { UnstructuredName } from '@peculiar/asn1-pkcs9';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IUnstructuredNameAttributeProps {\n attribute: Attribute<UnstructuredName>;\n}\n\nexport const UnstructuredNameAttribute:\nFunctionalComponent<IUnstructuredNameAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value.utf8String}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ChallengePassword } from '@peculiar/asn1-pkcs9';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IChallengePasswordAttributeProps {\n attribute: Attribute<ChallengePassword>;\n}\n\nexport const ChallengePasswordAttribute:\nFunctionalComponent<IChallengePasswordAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value.toString()}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { Name } from '@peculiar/asn1-x509';\nimport {\n TypeRelationship,\n ActivityDescription,\n WebGDPR,\n InsuranceValue,\n ValuationRanking,\n} from '@peculiar/asn1-ntqwac';\nimport {\n UnstructuredName,\n ChallengePassword,\n} from '@peculiar/asn1-pkcs9';\nimport type { Attribute, TAttributeValue } from '../../../crypto/attribute';\nimport { RowTitle } from '../row';\nimport { NameAttribute } from './name_attribute';\nimport { ActivityDescriptionAttribute } from './activity_description_attribute';\nimport { WebGdprAttribute } from './web_gdpr_attribute';\nimport { InsuranceValueAttribute } from './insurance_value_attribute';\nimport { TypeRelationshipAttribute } from './type_relationship_attribute';\nimport { ValuationRankingAttribute } from './valuation_ranking_attribute';\nimport { BasicAttribute } from './basic_attribute';\nimport { AsStringAttribute } from './as_string_attribute';\nimport { UnstructuredNameAttribute } from './unstructured_name_attribute';\nimport { ChallengePasswordAttribute } from './challenge_password_attribute';\n\ninterface IAttributesPtops extends\n IGeneralNameOptions,\n ILeiOptions,\n IAuthorityKeyIdentifierOptions,\n ISubjectKeyIdentifierOptions {\n attributes: Attribute<TAttributeValue>[];\n}\n\nexport const Attributes: FunctionalComponent<IAttributesPtops> = (props) => {\n const { attributes } = props;\n\n if (!attributes || !attributes.length) {\n return null;\n }\n\n return ([\n <RowTitle\n value=\"Attributes\"\n />,\n attributes.map((attribute) => {\n try {\n if (attribute.value instanceof Name) {\n return (\n <NameAttribute\n attribute={attribute as unknown as Attribute<Name>}\n />\n );\n }\n\n if (attribute.value instanceof ActivityDescription) {\n return (\n <ActivityDescriptionAttribute\n attribute={attribute as unknown as Attribute<ActivityDescription>}\n />\n );\n }\n\n if (attribute.value instanceof WebGDPR) {\n return (\n <WebGdprAttribute\n attribute={attribute as unknown as Attribute<WebGDPR>}\n />\n );\n }\n\n if (attribute.value instanceof InsuranceValue) {\n return (\n <InsuranceValueAttribute\n attribute={attribute as unknown as Attribute<InsuranceValue>}\n />\n );\n }\n\n if (attribute.value instanceof TypeRelationship) {\n return (\n <TypeRelationshipAttribute\n attribute={attribute as unknown as Attribute<TypeRelationship>}\n />\n );\n }\n\n if (attribute.value instanceof ValuationRanking) {\n return (\n <ValuationRankingAttribute\n attribute={attribute as unknown as Attribute<ValuationRanking>}\n />\n );\n }\n\n if (attribute.value instanceof UnstructuredName) {\n return (\n <UnstructuredNameAttribute\n attribute={attribute as unknown as Attribute<UnstructuredName>}\n />\n );\n }\n\n if (attribute.value instanceof ChallengePassword) {\n return (\n <ChallengePasswordAttribute\n attribute={attribute as unknown as Attribute<ChallengePassword>}\n />\n );\n }\n\n if (typeof attribute.value === 'string') {\n return (\n <AsStringAttribute\n attribute={attribute as unknown as Attribute<string>}\n />\n );\n }\n\n return (\n <BasicAttribute\n attribute={attribute}\n />\n );\n } catch {\n console.error('Error render attribute:', attribute.asn.type);\n\n return null;\n }\n }),\n ]);\n};\n"],"version":3}
|
|
1
|
+
{"file":"index2.js","mappings":";;;;;;;AAAA;;;;;;AAMG;AAWI,MAAM,cAAc,GAA8C,CAAC,KAAK,EAAE,QAAQ,KAAI;AAC3F,IAAA,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK;AAE3B,IAAA,QAAQ;AACN,QAAA,CAAA,CAAC,QAAQ,EACP,EAAA,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EACzC,CAAA;QACF,QAAQ;AACR,QAAA,CAAA,CAAA,IAAA,EAAA,IAAA;AACE,YAAA,CAAA,CAAA,IAAA,EAAA,EAAI,OAAO,EAAE,CAAC,EAAE,KAAK,EAAC,SAAS,EAAA;AAC7B,gBAAA,CAAA,CAAA,MAAA,EAAA,IAAA,CAAQ,CACL,CACF;AACN,KAAA;AACH,CAAC;;AChCD;;;;;;AAMG;AAWH;AACO,MAAM,QAAQ,GAAwC,CAAC,KAAK,KAAW;AAC5E,IAAA,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK;IAEtB,IAAI,CAAC,IAAI,EAAE;AACT,QAAA,OAAO,IAAI;;IAGb,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,yBAAyB,MACxC,yBAAyB,CAAC,GAAG,CAAC,CAAC,qBAAqB,MAClD,CAAC,CAAA,QAAQ,EACP,EAAA,IAAI,EAAE,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,IAAI,EACpE,KAAK,EAAE,qBAAqB,CAAC,KAAK,CAAC,QAAQ,EAAE,GAC7C,CACH,CAAC,CACH,CAAC;AACJ,CAAC;;ACjCD;;;;;;AAMG;AAYI,MAAM,aAAa,GACiB,CAAC,KAAK,KAAI;AACnD,IAAA,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK;AAE3B,IAAA,QACE,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YAAY,iBAAiB,EAAE;oBAChD,QACE,EAAC,0BAA0B,EAAA,EACzB,SAAS,EAAE,SAAoD,EAC/D,CAAA;;AAIN,gBAAA,IAAI,SAAS,CAAC,KAAK,YAAY,6BAA6B,EAAE;oBAC5D,QACE,EAAC,sCAAsC,EAAA,EACrC,SAAS,EAAE,SAAgE,EAC3E,CAAA;;AAIN,gBAAA,IAAI,OAAO,SAAS,CAAC,KAAK,KAAK,QAAQ,EAAE;oBACvC,QACE,EAAC,iBAAiB,EAAA,EAChB,SAAS,EAAE,SAAyC,EACpD,CAAA;;gBAIN,QACE,EAAC,cAAc,EAAA,EACb,SAAS,EAAE,SAAS,EACpB,CAAA;;AAEJ,YAAA,OAAA,EAAA,EAAM;gBACN,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;AAE5D,gBAAA,OAAO,IAAI;;AAEf,SAAC,CAAC;AACH,KAAA;AACH;;;;","names":["Convert","Name"],"sources":["src/components/certificate-details-parts/attributes/basic_attribute.tsx","src/components/certificate-details-parts/attributes/name_part.tsx","src/components/certificate-details-parts/attributes/name_attribute.tsx","src/components/certificate-details-parts/attributes/activity_description_attribute.tsx","src/components/certificate-details-parts/attributes/web_gdpr_attribute.tsx","src/components/certificate-details-parts/attributes/insurance_value_attribute.tsx","src/components/certificate-details-parts/attributes/type_relationship_attribute.tsx","src/components/certificate-details-parts/attributes/valuation_ranking_attribute.tsx","src/components/certificate-details-parts/attributes/as_string_attribute.tsx","src/components/certificate-details-parts/attributes/unstructured_name_attribute.tsx","src/components/certificate-details-parts/attributes/challenge_password_attribute.tsx","src/components/certificate-details-parts/attributes/extension_request_attribute.tsx","src/components/certificate-details-parts/attributes/private_key_possession_statement_attribute.tsx","src/components/certificate-details-parts/attributes/index.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { Attribute, TAttributeValue } from '../../../crypto/attribute';\nimport { getStringByOID } from '../../../utils';\nimport { RowValue } from '../row';\n\ninterface IBasicAttributeProps {\n attribute: Attribute<TAttributeValue>;\n}\n\nexport const BasicAttribute: FunctionalComponent<IBasicAttributeProps> = (props, children) => {\n const { attribute } = props;\n\n return ([\n <RowValue\n name=\"Name\"\n value={getStringByOID(attribute.asn.type)}\n />,\n children,\n <tr>\n <td colSpan={2} class=\"divider\">\n <span />\n </td>\n </tr>,\n ]);\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { Name } from '@peculiar/asn1-x509';\nimport { OIDs } from '../../../constants/oids';\nimport { RowValue } from '../row';\n\ninterface INamePartProps {\n name: Name;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const NamePart: FunctionalComponent<INamePartProps> = (props): any[] => {\n const { name } = props;\n\n if (!name) {\n return null;\n }\n\n return name.map((relativeDistinguishedName) => (\n relativeDistinguishedName.map((attributeTypeAndValue) => (\n <RowValue\n name={OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type}\n value={attributeTypeAndValue.value.toString()}\n />\n ))\n ));\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { Name } from '@peculiar/asn1-x509';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { BasicAttribute } from './basic_attribute';\nimport { NamePart } from './name_part';\n\ninterface INameAttributeProps {\n attribute: Attribute<Name>;\n}\n\nexport const NameAttribute:\nFunctionalComponent<INameAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <NamePart\n name={attribute.value}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ActivityDescription } from '@peculiar/asn1-ntqwac';\nimport { Attribute } from '../../../crypto/attribute';\nimport { camelCaseToWords } from '../../../utils';\nimport { GeneralNamePart } from '../extensions/general_name_part';\nimport { RowValue, TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IActivityDescriptionAttributeProps {\n attribute: Attribute<ActivityDescription>;\n}\n\nexport const ActivityDescriptionAttribute:\nFunctionalComponent<IActivityDescriptionAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name={camelCaseToWords('codeAuthority')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.codeAuthority}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('codeId')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.codeId}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('shortName')}\n value={attribute.value.shortName}\n />\n <RowValue\n name={camelCaseToWords('shortDescription')}\n value={attribute.value.shortDescription}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { WebGDPR } from '@peculiar/asn1-ntqwac';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { camelCaseToWords } from '../../../utils';\nimport { GeneralNamePart } from '../extensions/general_name_part';\nimport { RowValue, TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IWebGdprAttributeProps {\n attribute: Attribute<WebGDPR>;\n}\n\nexport const WebGdprAttribute:\nFunctionalComponent<IWebGdprAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name={camelCaseToWords('assessmentAuthority')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentAuthority}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('assessmentLocation')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentLocation}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('assessmentRef')}\n value=\"\"\n />\n <TableRowTable>\n <GeneralNamePart\n generalName={attribute.value.assessmentRef}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n </TableRowTable>\n\n <RowValue\n name={camelCaseToWords('dataStorageTerritory')}\n value={attribute.value.dataStorageTerritory}\n />\n <RowValue\n name={camelCaseToWords('description')}\n value={attribute.value.description}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { InsuranceValue } from '@peculiar/asn1-ntqwac';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IInsuranceValueAttributeProps {\n attribute: Attribute<InsuranceValue>;\n}\n\nexport const InsuranceValueAttribute:\nFunctionalComponent<IInsuranceValueAttributeProps> = (props) => {\n const { attribute } = props;\n const value = `${attribute.value.base} * 10^${attribute.value.degree} ${attribute.value.location}`;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={value}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { TypeRelationship } from '@peculiar/asn1-ntqwac';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { l10n } from '../../../utils';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface ITypeRelationshipAttributeProps {\n attribute: Attribute<TypeRelationship>;\n}\n\nexport const TypeRelationshipAttribute:\nFunctionalComponent<ITypeRelationshipAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n {Object.keys(attribute.value).map((keyName) => (\n <RowValue\n name={keyName}\n value={attribute.value[keyName].toNumber() ? l10n.getString('yes') : l10n.getString('no')}\n />\n ))}\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ValuationRanking } from '@peculiar/asn1-ntqwac';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IValuationRankingAttributeProps {\n attribute: Attribute<ValuationRanking>;\n}\n\nconst getValueRank = (value: number): string => {\n let ratio = 1;\n\n if (value / 100 > 1) {\n ratio = 100;\n } else if (value / 10 > 1) {\n ratio = 10;\n }\n\n return `${value}/${5 * ratio}`;\n};\n\nexport const ValuationRankingAttribute:\nFunctionalComponent<IValuationRankingAttributeProps> = (props) => {\n const { attribute } = props;\n const values = Object.keys(attribute.value).map((keyName) => ([\n getValueRank(attribute.value[keyName]),\n <br />,\n ]));\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={values as unknown as string[]}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IAsStringAttributeProps {\n attribute: Attribute<string>;\n}\n\nexport const AsStringAttribute:\nFunctionalComponent<IAsStringAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value}\n monospace\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { UnstructuredName } from '@peculiar/asn1-pkcs9';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IUnstructuredNameAttributeProps {\n attribute: Attribute<UnstructuredName>;\n}\n\nexport const UnstructuredNameAttribute:\nFunctionalComponent<IUnstructuredNameAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value.utf8String}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport type { ChallengePassword } from '@peculiar/asn1-pkcs9';\nimport type { Attribute } from '../../../crypto/attribute';\nimport { RowValue } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IChallengePasswordAttributeProps {\n attribute: Attribute<ChallengePassword>;\n}\n\nexport const ChallengePasswordAttribute:\nFunctionalComponent<IChallengePasswordAttributeProps> = (props) => {\n const { attribute } = props;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Value\"\n value={attribute.value.toString()}\n />\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { ExtensionRequest } from '@peculiar/asn1-pkcs9';\nimport { AsnConvert } from '@peculiar/asn1-schema';\nimport { Extension, TExtensionValue } from '../../../crypto/extension';\nimport { Attribute } from '../../../crypto/attribute';\nimport { Extensions } from '../../certificate-details-parts';\nimport { TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\n\ninterface IExtensionRequestAttributeProps {\n attribute: Attribute<ExtensionRequest>;\n}\n\nexport const ExtensionRequestAttribute:\nFunctionalComponent<IExtensionRequestAttributeProps> = (props) => {\n const { attribute } = props;\n let extensions: Extension<TExtensionValue>[];\n\n if (attribute.value) {\n extensions = attribute.value.map((e) => new Extension(AsnConvert.serialize(e)));\n }\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <TableRowTable>\n <Extensions\n extensions={extensions}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n getLEILink={() => ''}\n />\n </TableRowTable>\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { AsnConvert } from '@peculiar/asn1-schema';\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { PrivateKeyPossessionStatement } from '@peculiar/asn1-private-key-stmt';\nimport { Convert } from 'pvtsutils';\nimport { Attribute } from '../../../crypto/attribute';\nimport { RowValue, TableRowTable } from '../row';\nimport { BasicAttribute } from './basic_attribute';\nimport { NamePart } from './name_part';\n\ninterface IPrivateKeyPossessionStatementAttributeProps {\n attribute: Attribute<PrivateKeyPossessionStatement>;\n}\n\nexport const PrivateKeyPossessionStatementAttribute:\nFunctionalComponent<IPrivateKeyPossessionStatementAttributeProps> = (props) => {\n const { attribute } = props;\n const certificateRaw = attribute.value.cert\n ? AsnConvert.serialize(attribute.value.cert)\n : null;\n\n return (\n <BasicAttribute\n attribute={attribute}\n >\n <RowValue\n name=\"Serial Number\"\n value={Convert.ToHex(attribute.value.signer.serialNumber)}\n monospace\n />\n <RowValue\n name=\"Issuer\"\n value=\"\"\n />\n <TableRowTable>\n <NamePart\n name={attribute.value.signer.issuer}\n />\n </TableRowTable>\n {certificateRaw && [\n <RowValue\n name=\"Certificate\"\n value=\"\"\n />,\n <TableRowTable>\n <peculiar-certificate-viewer\n certificate={Convert.ToBase64(certificateRaw)}\n />\n </TableRowTable>,\n ]}\n </BasicAttribute>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { Name } from '@peculiar/asn1-x509';\nimport {\n TypeRelationship,\n ActivityDescription,\n WebGDPR,\n InsuranceValue,\n ValuationRanking,\n} from '@peculiar/asn1-ntqwac';\nimport {\n UnstructuredName,\n ChallengePassword,\n ExtensionRequest,\n} from '@peculiar/asn1-pkcs9';\nimport { PrivateKeyPossessionStatement } from '@peculiar/asn1-private-key-stmt';\nimport type { Attribute, TAttributeValue } from '../../../crypto/attribute';\nimport { RowTitle } from '../row';\nimport { NameAttribute } from './name_attribute';\nimport { ActivityDescriptionAttribute } from './activity_description_attribute';\nimport { WebGdprAttribute } from './web_gdpr_attribute';\nimport { InsuranceValueAttribute } from './insurance_value_attribute';\nimport { TypeRelationshipAttribute } from './type_relationship_attribute';\nimport { ValuationRankingAttribute } from './valuation_ranking_attribute';\nimport { BasicAttribute } from './basic_attribute';\nimport { AsStringAttribute } from './as_string_attribute';\nimport { UnstructuredNameAttribute } from './unstructured_name_attribute';\nimport { ChallengePasswordAttribute } from './challenge_password_attribute';\nimport { ExtensionRequestAttribute } from './extension_request_attribute';\nimport { PrivateKeyPossessionStatementAttribute } from './private_key_possession_statement_attribute';\n\ninterface IAttributesPtops extends\n IGeneralNameOptions,\n ILeiOptions,\n IAuthorityKeyIdentifierOptions,\n ISubjectKeyIdentifierOptions {\n attributes: Attribute<TAttributeValue>[];\n}\n\nexport const Attributes: FunctionalComponent<IAttributesPtops> = (props) => {\n const { attributes } = props;\n\n if (!attributes || !attributes.length) {\n return null;\n }\n\n return ([\n <RowTitle\n value=\"Attributes\"\n />,\n attributes.map((attribute) => {\n try {\n if (attribute.value instanceof Name) {\n return (\n <NameAttribute\n attribute={attribute as unknown as Attribute<Name>}\n />\n );\n }\n\n if (attribute.value instanceof ExtensionRequest) {\n return (\n <ExtensionRequestAttribute\n attribute={attribute as unknown as Attribute<ExtensionRequest>}\n />\n );\n }\n\n if (attribute.value instanceof ActivityDescription) {\n return (\n <ActivityDescriptionAttribute\n attribute={attribute as unknown as Attribute<ActivityDescription>}\n />\n );\n }\n\n if (attribute.value instanceof WebGDPR) {\n return (\n <WebGdprAttribute\n attribute={attribute as unknown as Attribute<WebGDPR>}\n />\n );\n }\n\n if (attribute.value instanceof InsuranceValue) {\n return (\n <InsuranceValueAttribute\n attribute={attribute as unknown as Attribute<InsuranceValue>}\n />\n );\n }\n\n if (attribute.value instanceof TypeRelationship) {\n return (\n <TypeRelationshipAttribute\n attribute={attribute as unknown as Attribute<TypeRelationship>}\n />\n );\n }\n\n if (attribute.value instanceof ValuationRanking) {\n return (\n <ValuationRankingAttribute\n attribute={attribute as unknown as Attribute<ValuationRanking>}\n />\n );\n }\n\n if (attribute.value instanceof UnstructuredName) {\n return (\n <UnstructuredNameAttribute\n attribute={attribute as unknown as Attribute<UnstructuredName>}\n />\n );\n }\n\n if (attribute.value instanceof ChallengePassword) {\n return (\n <ChallengePasswordAttribute\n attribute={attribute as unknown as Attribute<ChallengePassword>}\n />\n );\n }\n\n if (attribute.value instanceof PrivateKeyPossessionStatement) {\n return (\n <PrivateKeyPossessionStatementAttribute\n attribute={attribute as unknown as Attribute<PrivateKeyPossessionStatement>}\n />\n );\n }\n\n if (typeof attribute.value === 'string') {\n return (\n <AsStringAttribute\n attribute={attribute as unknown as Attribute<string>}\n />\n );\n }\n\n return (\n <BasicAttribute\n attribute={attribute}\n />\n );\n } catch {\n console.error('Error render attribute:', attribute.asn.type);\n\n return null;\n }\n }),\n ]);\n};\n"],"version":3}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
+
import { $ as OIDs, a6 as OctetString, ac as ByteStream, ad as SignedCertificateTimestamp, A as AsnData, ae as Extension$1, j as AsnParser, af as CabforganizationIdentifier, ag as NonStandardKeyDescription, ah as BaseCRLNumber, ai as CRLNumber, aj as SubjectInfoAccessSyntax, ak as TNAuthorizationList, al as LogotypeExtn, am as BiometricSyntax, an as EntrustVersionInfo, ao as PrivateKeyUsagePeriod, ap as ArchiveRevInfo, aq as Timestamp, ar as LeiRole, as as LeiChoice, at as CaVersion, au as NetscapeCertType, av as NetscapeComment, aw as EnrollCertTypeChoice, ax as CertificateTemplate, ay as QCStatements, az as SubjectKeyIdentifier, aA as SubjectDirectoryAttributes, aB as SubjectAlternativeName, aC as PolicyMappings, aD as PolicyConstraints, aE as NameConstraints, aF as KeyUsage, aG as IssueAlternativeName, a2 as InvalidityDate, aH as InhibitAnyPolicy, aI as ExtendedKeyUsage, a1 as CRLReason, aJ as IssuingDistributionPoint, aK as CRLDistributionPoints, aL as CertificatePolicies, a3 as CertificateIssuer, aM as BasicConstraints, aN as AuthorityKeyIdentifier, aO as AuthorityInfoAccessSyntax, f as buildExports, aP as id_cabforganizationIdentifier, aQ as id_ce_keyDescription, aR as id_ce_deltaCRLIndicator, aS as id_ce_cRLNumber, aT as id_pe_subjectInfoAccess, aU as id_pe_TNAuthList, aV as id_pe_biometricInfo, aW as id_entrust_entrustVersInfo, aX as id_ce_privateKeyUsagePeriod, aY as id_adbe_archiveRevInfo, aZ as id_adbe_timestamp, a_ as id_role, a$ as id_lei, b0 as id_caVersion, b1 as id_netscapeCertType, b2 as id_netscapeComment, b3 as id_enrollCertType, b4 as id_certificateTemplate, b5 as id_pe_qcStatements, b6 as id_ce_subjectKeyIdentifier, b7 as id_ce_subjectDirectoryAttributes, b8 as id_ce_subjectAltName, b9 as id_ce_policyMappings, ba as id_ce_policyConstraints, bb as id_ce_nameConstraints, bc as id_ce_keyUsage, bd as id_ce_issuerAltName, be as id_ce_invalidityDate, bf as id_ce_inhibitAnyPolicy, bg as id_ce_extKeyUsage, bh as id_ce_cRLReasons, bi as id_ce_issuingDistributionPoint, bj as id_ce_cRLDistributionPoints, bk as id_ce_certificatePolicies, bl as id_ce_certificateIssuer, bm as id_ce_basicConstraints, bn as id_ce_authorityKeyIdentifier, bo as id_pe_authorityInfoAccess, L as Link, l as l10n, _ as dateShort, ab as Name$1, bp as OtherName, bq as DisplayText, br as UserNotice, bs as EDIPartyName, bt as __decorate, bu as AsnProp, bv as AsnPropTypes, bw as AsnType, bx as AsnTypeTypes, by as AsnArray, bz as id_qcs_pkixQCSyntax_v2, bA as SemanticsInformation, bB as AsnIntegerArrayBufferConverter, bC as AttestationApplicationId, bD as RootOfTrust, bE as IntegerSet, a as DownloadIcon } from './download.js';
|
|
4
5
|
import { h } from '@stencil/core/internal/client';
|
|
5
|
-
import { _ as OIDs, L as Link, l as l10n, Z as dateShort, f as buildExports, aa as Name$1, ab as OtherName, m as AsnParser, ac as DisplayText, ad as UserNotice, ae as EDIPartyName, af as __decorate, ag as AsnProp, ah as AsnPropTypes, ai as AsnType, aj as AsnTypeTypes, ak as AsnArray, al as id_qcs_pkixQCSyntax_v2, am as SemanticsInformation, an as AsnIntegerArrayBufferConverter, ao as AttestationApplicationId, ap as RootOfTrust, aq as IntegerSet, ar as KeyUsage, as as BasicConstraints, at as ExtendedKeyUsage, au as SubjectKeyIdentifier, av as AuthorityKeyIdentifier, aw as CRLDistributionPoints, ax as AuthorityInfoAccessSyntax, ay as SubjectInfoAccessSyntax, az as SubjectAlternativeName, aA as CertificatePolicies, aB as CertificateTransparency, aC as NameConstraints, aD as CertificateTemplate, aE as EnrollCertTypeChoice, aF as CaVersion, aG as QCStatements, aH as NetscapeComment, aI as NetscapeCertType, aJ as LeiRole, aK as LeiChoice, aL as Timestamp, aM as ArchiveRevInfo, a0 as CRLReason, aN as SubjectDirectoryAttributes, aO as PrivateKeyUsagePeriod, aP as EntrustVersionInfo, aQ as BiometricSyntax, aR as LogotypeExtn, aS as TNAuthorizationList, aT as PolicyConstraints, aU as PolicyMappings, aV as CRLNumber, aW as IssuingDistributionPoint, aX as NonStandardKeyDescription, aY as CabforganizationIdentifier, a as DownloadIcon } from './download.js';
|
|
6
6
|
import { T as Typography, B as Button } from './button.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -32,6 +32,104 @@ function camelCaseToWords(value) {
|
|
|
32
32
|
return result.charAt(0).toUpperCase() + result.slice(1);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
const id_certificateTransparency = "1.3.6.1.4.1.11129.2.4.2";
|
|
36
|
+
class CertificateTransparency extends OctetString {
|
|
37
|
+
constructor() {
|
|
38
|
+
super(...arguments);
|
|
39
|
+
this.items = [];
|
|
40
|
+
}
|
|
41
|
+
fromASN(asn) {
|
|
42
|
+
super.fromASN(asn);
|
|
43
|
+
const stream = new ByteStream(this.buffer);
|
|
44
|
+
const len = stream.readNumber(2);
|
|
45
|
+
this.items = [];
|
|
46
|
+
while (stream.position < len) {
|
|
47
|
+
this.items.push(new SignedCertificateTimestamp(stream));
|
|
48
|
+
}
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
toJSON() {
|
|
52
|
+
return this.items.map((o) => o.toJSON());
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const id_pe_logotype = "1.3.6.1.5.5.7.1.12";
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @license
|
|
60
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the MIT license found in the
|
|
63
|
+
* LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/
|
|
65
|
+
const extensionParsers = {
|
|
66
|
+
[id_pe_authorityInfoAccess]: AuthorityInfoAccessSyntax,
|
|
67
|
+
[id_ce_authorityKeyIdentifier]: AuthorityKeyIdentifier,
|
|
68
|
+
[id_ce_basicConstraints]: BasicConstraints,
|
|
69
|
+
[id_ce_certificateIssuer]: CertificateIssuer,
|
|
70
|
+
[id_ce_certificatePolicies]: CertificatePolicies,
|
|
71
|
+
[id_ce_cRLDistributionPoints]: CRLDistributionPoints,
|
|
72
|
+
'2.5.29.46': CRLDistributionPoints,
|
|
73
|
+
[id_ce_issuingDistributionPoint]: IssuingDistributionPoint,
|
|
74
|
+
[id_ce_cRLReasons]: CRLReason,
|
|
75
|
+
[id_ce_extKeyUsage]: ExtendedKeyUsage,
|
|
76
|
+
[id_ce_inhibitAnyPolicy]: InhibitAnyPolicy,
|
|
77
|
+
[id_ce_invalidityDate]: InvalidityDate,
|
|
78
|
+
[id_ce_issuerAltName]: IssueAlternativeName,
|
|
79
|
+
[id_ce_keyUsage]: KeyUsage,
|
|
80
|
+
[id_ce_nameConstraints]: NameConstraints,
|
|
81
|
+
[id_ce_policyConstraints]: PolicyConstraints,
|
|
82
|
+
[id_ce_policyMappings]: PolicyMappings,
|
|
83
|
+
[id_ce_subjectAltName]: SubjectAlternativeName,
|
|
84
|
+
[id_ce_subjectDirectoryAttributes]: SubjectDirectoryAttributes,
|
|
85
|
+
[id_ce_subjectKeyIdentifier]: SubjectKeyIdentifier,
|
|
86
|
+
[id_pe_qcStatements]: QCStatements,
|
|
87
|
+
[id_certificateTemplate]: CertificateTemplate,
|
|
88
|
+
[id_enrollCertType]: EnrollCertTypeChoice,
|
|
89
|
+
[id_netscapeComment]: NetscapeComment,
|
|
90
|
+
[id_netscapeCertType]: NetscapeCertType,
|
|
91
|
+
[id_caVersion]: CaVersion,
|
|
92
|
+
[id_certificateTransparency]: CertificateTransparency,
|
|
93
|
+
[id_lei]: LeiChoice,
|
|
94
|
+
[id_role]: LeiRole,
|
|
95
|
+
[id_adbe_timestamp]: Timestamp,
|
|
96
|
+
[id_adbe_archiveRevInfo]: ArchiveRevInfo,
|
|
97
|
+
[id_ce_privateKeyUsagePeriod]: PrivateKeyUsagePeriod,
|
|
98
|
+
[id_entrust_entrustVersInfo]: EntrustVersionInfo,
|
|
99
|
+
'2.16.724.1.2.2.4.1': BiometricSyntax,
|
|
100
|
+
[id_pe_biometricInfo]: BiometricSyntax,
|
|
101
|
+
[id_pe_logotype]: LogotypeExtn,
|
|
102
|
+
[id_pe_TNAuthList]: TNAuthorizationList,
|
|
103
|
+
[id_pe_subjectInfoAccess]: SubjectInfoAccessSyntax,
|
|
104
|
+
[id_ce_cRLNumber]: CRLNumber,
|
|
105
|
+
[id_ce_deltaCRLIndicator]: BaseCRLNumber,
|
|
106
|
+
[id_ce_keyDescription]: NonStandardKeyDescription,
|
|
107
|
+
[id_cabforganizationIdentifier]: CabforganizationIdentifier,
|
|
108
|
+
};
|
|
109
|
+
class Extension extends AsnData {
|
|
110
|
+
getAsnExtnValue() {
|
|
111
|
+
return this.asn.extnValue.buffer;
|
|
112
|
+
}
|
|
113
|
+
constructor(raw) {
|
|
114
|
+
super(raw, Extension$1);
|
|
115
|
+
const asnExtnValue = this.getAsnExtnValue();
|
|
116
|
+
try {
|
|
117
|
+
const target = extensionParsers[this.asn.extnID];
|
|
118
|
+
if (target) {
|
|
119
|
+
this.value = AsnParser.parse(asnExtnValue, target);
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
console.warn(`Didn't detect parser for "${this.asn.extnID}" extension.`);
|
|
123
|
+
this.value = buildExports.Convert.ToHex(asnExtnValue);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
catch (error) {
|
|
127
|
+
console.error(`Error parse "${this.asn.extnID}" extension:`, error.message);
|
|
128
|
+
this.value = buildExports.Convert.ToHex(asnExtnValue);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
35
133
|
/**
|
|
36
134
|
* @license
|
|
37
135
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -1315,7 +1413,7 @@ const Miscellaneous = (props) => {
|
|
|
1315
1413
|
];
|
|
1316
1414
|
};
|
|
1317
1415
|
|
|
1318
|
-
export { BasicInformation as B,
|
|
1416
|
+
export { BasicInformation as B, Extension as E, GeneralNamePart as G, Miscellaneous as M, RowTitle as R, Signature as S, Thumbprints as T, RowValue as a, getDNSNameLink as b, getLEILink as c, TableRowTable as d, getStringByOID as e, Extensions as f, getIPAddressLink as g, camelCaseToWords as h };
|
|
1319
1417
|
//# sourceMappingURL=miscellaneous.js.map
|
|
1320
1418
|
|
|
1321
1419
|
//# sourceMappingURL=miscellaneous.js.map
|