@peculiar/certificates-viewer 3.4.0 → 3.5.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/dist/cjs/{certification_request-b5fe8a57.js → certification_request-ea440617.js} +4 -4
- package/dist/cjs/{crl-a1ac7534.js → crl-fd60d923.js} +1 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +17 -7
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +3 -3
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +3 -3
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +2 -2
- package/dist/cjs/{public_key-3d4ae164.js → public_key-14290c77.js} +1 -1
- package/dist/cjs/{x509_certificate-29a3636a.js → x509_certificate-262bac06.js} +1 -1
- package/dist/collection/components/crl-viewer/crl-viewer.js +1 -1
- package/dist/collection/components/crl-viewer/revoked_certificates.js +15 -4
- package/dist/esm/{certification_request-35ade000.js → certification_request-0ecd0af1.js} +1 -1
- package/dist/esm/{crl-42d5e233.js → crl-c09357a9.js} +1 -1
- package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +17 -7
- package/dist/esm/peculiar-certificate-decoder.entry.js +3 -3
- package/dist/esm/peculiar-certificate-viewer.entry.js +3 -3
- package/dist/esm/peculiar-certificates-viewer.entry.js +2 -2
- package/dist/esm/{public_key-b2dba162.js → public_key-e6d12f27.js} +1 -1
- package/dist/esm/{x509_certificate-2503dcc1.js → x509_certificate-59d7a03c.js} +1 -1
- package/dist/peculiar/{p-54171e39.js → p-1b11aa24.js} +3 -3
- package/dist/peculiar/{p-cb9b9f9c.entry.js → p-1d6d0160.entry.js} +2 -2
- package/dist/peculiar/{p-3d0fdbd5.entry.js → p-37c38f22.entry.js} +1 -1
- package/dist/peculiar/{p-a5d07697.js → p-3a4556ef.js} +1 -1
- package/dist/peculiar/{p-6cd6e6da.js → p-7321a8d6.js} +2 -2
- package/dist/peculiar/p-7a31bffb.entry.js +26 -0
- package/dist/peculiar/{p-b7045733.js → p-c9f01b83.js} +1 -1
- package/dist/peculiar/{p-7a0fb5a8.entry.js → p-e7d81a43.entry.js} +1 -1
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/crl-viewer/revoked_certificates.d.ts +1 -1
- package/package.json +2 -2
- package/dist/peculiar/p-1a8379f0.entry.js +0 -26
|
@@ -5448,15 +5448,15 @@ GeneralNames = GeneralNames_1 = __decorate([
|
|
|
5448
5448
|
|
|
5449
5449
|
var CertificateIssuer_1;
|
|
5450
5450
|
const id_ce_certificateIssuer = `${id_ce}.29`;
|
|
5451
|
-
|
|
5451
|
+
exports.CertificateIssuer = CertificateIssuer_1 = class CertificateIssuer extends GeneralNames {
|
|
5452
5452
|
constructor(items) {
|
|
5453
5453
|
super(items);
|
|
5454
5454
|
Object.setPrototypeOf(this, CertificateIssuer_1.prototype);
|
|
5455
5455
|
}
|
|
5456
5456
|
};
|
|
5457
|
-
CertificateIssuer = CertificateIssuer_1 = __decorate([
|
|
5457
|
+
exports.CertificateIssuer = CertificateIssuer_1 = __decorate([
|
|
5458
5458
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
5459
|
-
], CertificateIssuer);
|
|
5459
|
+
], exports.CertificateIssuer);
|
|
5460
5460
|
|
|
5461
5461
|
var CertificatePolicies_1;
|
|
5462
5462
|
const id_ce_certificatePolicies = `${id_ce}.32`;
|
|
@@ -10082,7 +10082,7 @@ class Extension extends AsnData {
|
|
|
10082
10082
|
this.value = AsnParser.parse(asnExtnValue, BasicConstraints);
|
|
10083
10083
|
break;
|
|
10084
10084
|
case id_ce_certificateIssuer:
|
|
10085
|
-
this.value = AsnParser.parse(asnExtnValue, CertificateIssuer);
|
|
10085
|
+
this.value = AsnParser.parse(asnExtnValue, exports.CertificateIssuer);
|
|
10086
10086
|
break;
|
|
10087
10087
|
case id_ce_certificatePolicies:
|
|
10088
10088
|
this.value = AsnParser.parse(asnExtnValue, exports.CertificatePolicies);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const certification_request = require('./certification_request-
|
|
6
|
+
const certification_request = require('./certification_request-ea440617.js');
|
|
7
7
|
const download = require('./download-a97f4cb2.js');
|
|
8
8
|
const l10n = require('./l10n-17c96aba.js');
|
|
9
9
|
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-064e95c7.js');
|
|
9
|
-
const certification_request = require('./certification_request-
|
|
9
|
+
const certification_request = require('./certification_request-ea440617.js');
|
|
10
10
|
const download = require('./download-a97f4cb2.js');
|
|
11
11
|
const l10n = require('./l10n-17c96aba.js');
|
|
12
|
-
const crl = require('./crl-
|
|
13
|
-
const public_key = require('./public_key-
|
|
12
|
+
const crl = require('./crl-fd60d923.js');
|
|
13
|
+
const public_key = require('./public_key-14290c77.js');
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @license
|
|
@@ -389,8 +389,11 @@ AttributeCertificateViewer.style = certificateViewerCss$2;
|
|
|
389
389
|
* This source code is licensed under the MIT license found in the
|
|
390
390
|
* LICENSE file in the root directory of this source tree.
|
|
391
391
|
*/
|
|
392
|
+
const TableRowTable = (_, children) => (index.h("tr", null,
|
|
393
|
+
index.h("td", { colSpan: 2 },
|
|
394
|
+
index.h("table", null, children))));
|
|
392
395
|
const RevokedCertificates = (props) => {
|
|
393
|
-
const { revokedCertificates, } = props;
|
|
396
|
+
const { revokedCertificates, getDNSNameLink, getIPAddressLink, } = props;
|
|
394
397
|
if (!revokedCertificates || !revokedCertificates.length) {
|
|
395
398
|
return null;
|
|
396
399
|
}
|
|
@@ -401,15 +404,22 @@ const RevokedCertificates = (props) => {
|
|
|
401
404
|
index.h(public_key.RowValue, { name: l10n.l10n.getString('revocationDate'), value: l10n.dateShort(certificate.revocationDate.getTime()) }),
|
|
402
405
|
(certificate.crlEntryExtensions && certificate.crlEntryExtensions.length && ([
|
|
403
406
|
index.h(public_key.RowValue, { name: `${l10n.l10n.getString('crlEntryExtensions')}:`, value: "" }),
|
|
404
|
-
certificate.crlEntryExtensions.map((extension) => {
|
|
407
|
+
index.h(TableRowTable, null, certificate.crlEntryExtensions.map((extension) => {
|
|
405
408
|
if (extension.value instanceof certification_request.CRLReason) {
|
|
406
409
|
return (index.h(public_key.RowValue, { name: public_key.getStringByOID(extension.asn.extnID), value: extension.value.toJSON() || extension.value.reason }));
|
|
407
410
|
}
|
|
408
411
|
if (extension.value instanceof certification_request.InvalidityDate) {
|
|
409
412
|
return (index.h(public_key.RowValue, { name: public_key.getStringByOID(extension.asn.extnID), value: extension.value.value.getTime() }));
|
|
410
413
|
}
|
|
414
|
+
if (extension.value instanceof certification_request.CertificateIssuer && extension.value.length) {
|
|
415
|
+
return ([
|
|
416
|
+
index.h(public_key.RowValue, { name: `${public_key.getStringByOID(extension.asn.extnID)}:`, value: "" }),
|
|
417
|
+
extension.value.map((gn) => (index.h(TableRowTable, null,
|
|
418
|
+
index.h(public_key.GeneralNamePart, { generalName: gn, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink })))),
|
|
419
|
+
]);
|
|
420
|
+
}
|
|
411
421
|
return (index.h(public_key.RowValue, { name: public_key.getStringByOID(extension.asn.extnID), value: download.build.Convert.ToHex(extension.asn.extnValue), monospace: true }));
|
|
412
|
-
}),
|
|
422
|
+
})),
|
|
413
423
|
])),
|
|
414
424
|
index.h("tr", null,
|
|
415
425
|
index.h("td", { colSpan: 2, class: "divider" },
|
|
@@ -493,7 +503,7 @@ const CrlViewer = class {
|
|
|
493
503
|
if (!this.certificateDecoded) {
|
|
494
504
|
return this.renderEmptyState();
|
|
495
505
|
}
|
|
496
|
-
return (index.h(index.Host, { "data-view": this.view }, index.h("table", null, index.h(public_key.BasicInformation, Object.assign({}, this.certificateDecoded)), index.h(public_key.IssuerName, { name: this.certificateDecoded.issuer, issuerDnLink: this.getIssuerDnLink() }), index.h(public_key.Signature, { signature: this.certificateDecoded.signature }), index.h(public_key.Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }), index.h(public_key.Extensions, { extensions: this.certificateDecoded.extensions, getLEILink: public_key.getLEILink, getDNSNameLink: public_key.getDNSNameLink, getIPAddressLink: public_key.getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink }), index.h(RevokedCertificates, { revokedCertificates: this.certificateDecoded.revokedCertificates }), this.download && (index.h(public_key.Miscellaneous, { certificate: this.certificateDecoded })))));
|
|
506
|
+
return (index.h(index.Host, { "data-view": this.view }, index.h("table", null, index.h(public_key.BasicInformation, Object.assign({}, this.certificateDecoded)), index.h(public_key.IssuerName, { name: this.certificateDecoded.issuer, issuerDnLink: this.getIssuerDnLink() }), index.h(public_key.Signature, { signature: this.certificateDecoded.signature }), index.h(public_key.Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }), index.h(public_key.Extensions, { extensions: this.certificateDecoded.extensions, getLEILink: public_key.getLEILink, getDNSNameLink: public_key.getDNSNameLink, getIPAddressLink: public_key.getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink }), index.h(RevokedCertificates, { revokedCertificates: this.certificateDecoded.revokedCertificates, getDNSNameLink: public_key.getDNSNameLink, getIPAddressLink: public_key.getIPAddressLink }), this.download && (index.h(public_key.Miscellaneous, { certificate: this.certificateDecoded })))));
|
|
497
507
|
}
|
|
498
508
|
static get watchers() { return {
|
|
499
509
|
"certificate": ["watchCertificateAndDecode"]
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-064e95c7.js');
|
|
9
|
-
const certification_request = require('./certification_request-
|
|
9
|
+
const certification_request = require('./certification_request-ea440617.js');
|
|
10
10
|
require('./l10n-17c96aba.js');
|
|
11
11
|
require('./download-a97f4cb2.js');
|
|
12
|
-
const x509_certificate = require('./x509_certificate-
|
|
13
|
-
const crl = require('./crl-
|
|
12
|
+
const x509_certificate = require('./x509_certificate-262bac06.js');
|
|
13
|
+
const crl = require('./crl-fd60d923.js');
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @license
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-064e95c7.js');
|
|
9
|
-
const x509_certificate = require('./x509_certificate-
|
|
10
|
-
require('./certification_request-
|
|
9
|
+
const x509_certificate = require('./x509_certificate-262bac06.js');
|
|
10
|
+
require('./certification_request-ea440617.js');
|
|
11
11
|
require('./download-a97f4cb2.js');
|
|
12
12
|
require('./l10n-17c96aba.js');
|
|
13
|
-
const public_key = require('./public_key-
|
|
13
|
+
const public_key = require('./public_key-14290c77.js');
|
|
14
14
|
|
|
15
15
|
const certificateViewerCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";
|
|
16
16
|
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-064e95c7.js');
|
|
9
|
-
const x509_certificate = require('./x509_certificate-
|
|
10
|
-
const certification_request = require('./certification_request-
|
|
9
|
+
const x509_certificate = require('./x509_certificate-262bac06.js');
|
|
10
|
+
const certification_request = require('./certification_request-ea440617.js');
|
|
11
11
|
require('./download-a97f4cb2.js');
|
|
12
12
|
const l10n = require('./l10n-17c96aba.js');
|
|
13
13
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const index = require('./index-064e95c7.js');
|
|
7
7
|
const download = require('./download-a97f4cb2.js');
|
|
8
8
|
const l10n = require('./l10n-17c96aba.js');
|
|
9
|
-
const certification_request = require('./certification_request-
|
|
9
|
+
const certification_request = require('./certification_request-ea440617.js');
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const certification_request = require('./certification_request-
|
|
6
|
+
const certification_request = require('./certification_request-ea440617.js');
|
|
7
7
|
const download = require('./download-a97f4cb2.js');
|
|
8
8
|
const l10n = require('./l10n-17c96aba.js');
|
|
9
9
|
|
|
@@ -99,7 +99,7 @@ export class CrlViewer {
|
|
|
99
99
|
h(Signature, { signature: this.certificateDecoded.signature }),
|
|
100
100
|
h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }),
|
|
101
101
|
h(Extensions, { extensions: this.certificateDecoded.extensions, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink }),
|
|
102
|
-
h(RevokedCertificates, { revokedCertificates: this.certificateDecoded.revokedCertificates }),
|
|
102
|
+
h(RevokedCertificates, { revokedCertificates: this.certificateDecoded.revokedCertificates, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink }),
|
|
103
103
|
this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
|
|
104
104
|
}
|
|
105
105
|
static get is() { return "peculiar-crl-viewer"; }
|
|
@@ -9,13 +9,17 @@
|
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
-
import { CRLReason, InvalidityDate } from '@peculiar/asn1-x509';
|
|
12
|
+
import { CRLReason, InvalidityDate, CertificateIssuer } from '@peculiar/asn1-x509';
|
|
13
13
|
import { Convert } from 'pvtsutils';
|
|
14
14
|
import { dateShort, l10n } from '../../utils';
|
|
15
15
|
import { getStringByOID } from '../certificate-viewer/get_string_by_oid';
|
|
16
|
+
import { GeneralNamePart } from '../certificate-viewer/extensions/general_name_part';
|
|
16
17
|
import { RowTitle, RowValue } from '../certificate-viewer/row';
|
|
18
|
+
const TableRowTable = (_, children) => (h("tr", null,
|
|
19
|
+
h("td", { colSpan: 2 },
|
|
20
|
+
h("table", null, children))));
|
|
17
21
|
export const RevokedCertificates = (props) => {
|
|
18
|
-
const { revokedCertificates, } = props;
|
|
22
|
+
const { revokedCertificates, getDNSNameLink, getIPAddressLink, } = props;
|
|
19
23
|
if (!revokedCertificates || !revokedCertificates.length) {
|
|
20
24
|
return null;
|
|
21
25
|
}
|
|
@@ -26,15 +30,22 @@ export const RevokedCertificates = (props) => {
|
|
|
26
30
|
h(RowValue, { name: l10n.getString('revocationDate'), value: dateShort(certificate.revocationDate.getTime()) }),
|
|
27
31
|
(certificate.crlEntryExtensions && certificate.crlEntryExtensions.length && ([
|
|
28
32
|
h(RowValue, { name: `${l10n.getString('crlEntryExtensions')}:`, value: "" }),
|
|
29
|
-
certificate.crlEntryExtensions.map((extension) => {
|
|
33
|
+
h(TableRowTable, null, certificate.crlEntryExtensions.map((extension) => {
|
|
30
34
|
if (extension.value instanceof CRLReason) {
|
|
31
35
|
return (h(RowValue, { name: getStringByOID(extension.asn.extnID), value: extension.value.toJSON() || extension.value.reason }));
|
|
32
36
|
}
|
|
33
37
|
if (extension.value instanceof InvalidityDate) {
|
|
34
38
|
return (h(RowValue, { name: getStringByOID(extension.asn.extnID), value: extension.value.value.getTime() }));
|
|
35
39
|
}
|
|
40
|
+
if (extension.value instanceof CertificateIssuer && extension.value.length) {
|
|
41
|
+
return ([
|
|
42
|
+
h(RowValue, { name: `${getStringByOID(extension.asn.extnID)}:`, value: "" }),
|
|
43
|
+
extension.value.map((gn) => (h(TableRowTable, null,
|
|
44
|
+
h(GeneralNamePart, { generalName: gn, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink })))),
|
|
45
|
+
]);
|
|
46
|
+
}
|
|
36
47
|
return (h(RowValue, { name: getStringByOID(extension.asn.extnID), value: Convert.ToHex(extension.asn.extnValue), monospace: true }));
|
|
37
|
-
}),
|
|
48
|
+
})),
|
|
38
49
|
])),
|
|
39
50
|
h("tr", null,
|
|
40
51
|
h("td", { colSpan: 2, class: "divider" },
|
|
@@ -11911,4 +11911,4 @@ __decorate([
|
|
|
11911
11911
|
AsnProp({ type: AsnPropTypes.BitString })
|
|
11912
11912
|
], CertificationRequest.prototype, "signature", void 0);
|
|
11913
11913
|
|
|
11914
|
-
export {
|
|
11914
|
+
export { DisplayText as $, AsnData as A, id_DomainNameTechnicalOperator as B, Certificate as C, DomainNameTechnicalOperator as D, Extension as E, id_DomainNameOwner as F, DomainNameOwner as G, id_DomainNameLegalRepresentative as H, InsuranceValue as I, DomainNameLegalRepresentative as J, id_DomainNameBeneficiary as K, DomainNameBeneficiary as L, AttributeCertificate as M, Name as N, CertificationRequest as O, CertificateList as P, OIDs as Q, RSAPublicKey as R, Name$1 as S, TypeRelationship as T, UnstructuredName as U, ValuationRanking as V, WebGDPR as W, CRLReason as X, InvalidityDate as Y, CertificateIssuer as Z, OtherName as _, isX509Pem as a, UserNotice as a0, EDIPartyName as a1, AsnIntegerArrayBufferConverter as a2, KeyUsage as a3, BasicConstraints as a4, ExtendedKeyUsage as a5, SubjectKeyIdentifier as a6, AuthorityKeyIdentifier as a7, CRLDistributionPoints as a8, AuthorityInfoAccessSyntax as a9, SubjectInfoAccessSyntax as aa, SubjectAlternativeName as ab, CertificatePolicies as ac, CertificateTransparency as ad, NameConstraints as ae, CertificateTemplate as af, EnrollCertTypeChoice as ag, CaVersion as ah, QCStatements as ai, NetscapeComment as aj, NetscapeCertType as ak, LeiRole as al, LeiChoice as am, Timestamp as an, ArchiveRevInfo as ao, SubjectDirectoryAttributes as ap, PrivateKeyUsagePeriod as aq, EntrustVersionInfo as ar, BiometricSyntax as as, LogotypeExtn as at, TNAuthorizationList as au, PolicyConstraints as av, PolicyMappings as aw, CRLNumber as ax, IssuingDistributionPoint as ay, isPkcs10Pem as b, isX509AttributePem as c, isX509CRLPem as d, certificateRawToBuffer as e, AsnConvert as f, id_ecPublicKey as g, ECParameters as h, isPem as i, id_rsaEncryption as j, hexFormat as k, base64Format as l, getCertificateThumbprint as m, Attribute$1 as n, id_pkcs9_at_extensionRequest as o, AsnParser as p, ExtensionRequest as q, id_pkcs9_at_unstructuredName as r, id_pkcs9_at_challengePassword as s, ChallengePassword as t, id_ValuationRanking as u, id_InsuranceValue as v, id_WebGDPR as w, id_ActivityDescription as x, ActivityDescription as y, id_TypeRelationship as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { A as AsnData, n as Attribute$1, o as id_pkcs9_at_extensionRequest, p as AsnParser, q as ExtensionRequest, E as Extension, f as AsnConvert, r as id_pkcs9_at_unstructuredName, U as UnstructuredName, s as id_pkcs9_at_challengePassword, t as ChallengePassword, u as id_ValuationRanking, V as ValuationRanking, v as id_InsuranceValue, I as InsuranceValue, w as id_WebGDPR, W as WebGDPR, x as id_ActivityDescription, y as ActivityDescription, z as id_TypeRelationship, T as TypeRelationship, B as id_DomainNameTechnicalOperator, D as DomainNameTechnicalOperator, F as id_DomainNameOwner, G as DomainNameOwner, H as id_DomainNameLegalRepresentative, J as DomainNameLegalRepresentative, K as id_DomainNameBeneficiary, L as DomainNameBeneficiary, e as certificateRawToBuffer, M as AttributeCertificate, m as getCertificateThumbprint, k as hexFormat, l as base64Format, O as CertificationRequest, N as Name, g as id_ecPublicKey, h as ECParameters, j as id_rsaEncryption, R as RSAPublicKey, P as CertificateList } from './certification_request-
|
|
4
|
+
import { A as AsnData, n as Attribute$1, o as id_pkcs9_at_extensionRequest, p as AsnParser, q as ExtensionRequest, E as Extension, f as AsnConvert, r as id_pkcs9_at_unstructuredName, U as UnstructuredName, s as id_pkcs9_at_challengePassword, t as ChallengePassword, u as id_ValuationRanking, V as ValuationRanking, v as id_InsuranceValue, I as InsuranceValue, w as id_WebGDPR, W as WebGDPR, x as id_ActivityDescription, y as ActivityDescription, z as id_TypeRelationship, T as TypeRelationship, B as id_DomainNameTechnicalOperator, D as DomainNameTechnicalOperator, F as id_DomainNameOwner, G as DomainNameOwner, H as id_DomainNameLegalRepresentative, J as DomainNameLegalRepresentative, K as id_DomainNameBeneficiary, L as DomainNameBeneficiary, e as certificateRawToBuffer, M as AttributeCertificate, m as getCertificateThumbprint, k as hexFormat, l as base64Format, O as CertificationRequest, N as Name, g as id_ecPublicKey, h as ECParameters, j as id_rsaEncryption, R as RSAPublicKey, P as CertificateList } from './certification_request-0ecd0af1.js';
|
|
5
5
|
import { b as build, D as Download } from './download-67ac9120.js';
|
|
6
6
|
import { d as dateDiff } from './l10n-a68d5748.js';
|
|
7
7
|
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { h, r as registerInstance, H as Host } from './index-bbd484d9.js';
|
|
5
|
-
import { Q as OIDs, S as Name, y as ActivityDescription, W as WebGDPR, I as InsuranceValue, T as TypeRelationship, V as ValuationRanking, U as UnstructuredName, t as ChallengePassword, X as CRLReason, Y as InvalidityDate } from './certification_request-
|
|
5
|
+
import { Q as OIDs, S as Name, y as ActivityDescription, W as WebGDPR, I as InsuranceValue, T as TypeRelationship, V as ValuationRanking, U as UnstructuredName, t as ChallengePassword, X as CRLReason, Y as InvalidityDate, Z as CertificateIssuer } from './certification_request-0ecd0af1.js';
|
|
6
6
|
import { b as build } from './download-67ac9120.js';
|
|
7
7
|
import { l as l10n, a as dateShort } from './l10n-a68d5748.js';
|
|
8
|
-
import { X as X509AttributeCertificate, a as CRL, C as CSR } from './crl-
|
|
9
|
-
import { g as getStringByOID, R as RowValue, G as GeneralNamePart, a as RowTitle, B as BasicInformation, S as Signature, T as Thumbprints, b as getLEILink, c as getDNSNameLink, d as getIPAddressLink, E as Extensions, M as Miscellaneous, I as IssuerName, e as SubjectName, P as PublicKey } from './public_key-
|
|
8
|
+
import { X as X509AttributeCertificate, a as CRL, C as CSR } from './crl-c09357a9.js';
|
|
9
|
+
import { g as getStringByOID, R as RowValue, G as GeneralNamePart, a as RowTitle, B as BasicInformation, S as Signature, T as Thumbprints, b as getLEILink, c as getDNSNameLink, d as getIPAddressLink, E as Extensions, M as Miscellaneous, I as IssuerName, e as SubjectName, P as PublicKey } from './public_key-e6d12f27.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
@@ -385,8 +385,11 @@ AttributeCertificateViewer.style = certificateViewerCss$2;
|
|
|
385
385
|
* This source code is licensed under the MIT license found in the
|
|
386
386
|
* LICENSE file in the root directory of this source tree.
|
|
387
387
|
*/
|
|
388
|
+
const TableRowTable = (_, children) => (h("tr", null,
|
|
389
|
+
h("td", { colSpan: 2 },
|
|
390
|
+
h("table", null, children))));
|
|
388
391
|
const RevokedCertificates = (props) => {
|
|
389
|
-
const { revokedCertificates, } = props;
|
|
392
|
+
const { revokedCertificates, getDNSNameLink, getIPAddressLink, } = props;
|
|
390
393
|
if (!revokedCertificates || !revokedCertificates.length) {
|
|
391
394
|
return null;
|
|
392
395
|
}
|
|
@@ -397,15 +400,22 @@ const RevokedCertificates = (props) => {
|
|
|
397
400
|
h(RowValue, { name: l10n.getString('revocationDate'), value: dateShort(certificate.revocationDate.getTime()) }),
|
|
398
401
|
(certificate.crlEntryExtensions && certificate.crlEntryExtensions.length && ([
|
|
399
402
|
h(RowValue, { name: `${l10n.getString('crlEntryExtensions')}:`, value: "" }),
|
|
400
|
-
certificate.crlEntryExtensions.map((extension) => {
|
|
403
|
+
h(TableRowTable, null, certificate.crlEntryExtensions.map((extension) => {
|
|
401
404
|
if (extension.value instanceof CRLReason) {
|
|
402
405
|
return (h(RowValue, { name: getStringByOID(extension.asn.extnID), value: extension.value.toJSON() || extension.value.reason }));
|
|
403
406
|
}
|
|
404
407
|
if (extension.value instanceof InvalidityDate) {
|
|
405
408
|
return (h(RowValue, { name: getStringByOID(extension.asn.extnID), value: extension.value.value.getTime() }));
|
|
406
409
|
}
|
|
410
|
+
if (extension.value instanceof CertificateIssuer && extension.value.length) {
|
|
411
|
+
return ([
|
|
412
|
+
h(RowValue, { name: `${getStringByOID(extension.asn.extnID)}:`, value: "" }),
|
|
413
|
+
extension.value.map((gn) => (h(TableRowTable, null,
|
|
414
|
+
h(GeneralNamePart, { generalName: gn, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink })))),
|
|
415
|
+
]);
|
|
416
|
+
}
|
|
407
417
|
return (h(RowValue, { name: getStringByOID(extension.asn.extnID), value: build.Convert.ToHex(extension.asn.extnValue), monospace: true }));
|
|
408
|
-
}),
|
|
418
|
+
})),
|
|
409
419
|
])),
|
|
410
420
|
h("tr", null,
|
|
411
421
|
h("td", { colSpan: 2, class: "divider" },
|
|
@@ -489,7 +499,7 @@ const CrlViewer = class {
|
|
|
489
499
|
if (!this.certificateDecoded) {
|
|
490
500
|
return this.renderEmptyState();
|
|
491
501
|
}
|
|
492
|
-
return (h(Host, { "data-view": this.view }, h("table", null, h(BasicInformation, Object.assign({}, this.certificateDecoded)), h(IssuerName, { name: this.certificateDecoded.issuer, issuerDnLink: this.getIssuerDnLink() }), h(Signature, { signature: this.certificateDecoded.signature }), h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }), h(Extensions, { extensions: this.certificateDecoded.extensions, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink }), h(RevokedCertificates, { revokedCertificates: this.certificateDecoded.revokedCertificates }), this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
|
|
502
|
+
return (h(Host, { "data-view": this.view }, h("table", null, h(BasicInformation, Object.assign({}, this.certificateDecoded)), h(IssuerName, { name: this.certificateDecoded.issuer, issuerDnLink: this.getIssuerDnLink() }), h(Signature, { signature: this.certificateDecoded.signature }), h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }), h(Extensions, { extensions: this.certificateDecoded.extensions, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink }), h(RevokedCertificates, { revokedCertificates: this.certificateDecoded.revokedCertificates, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink }), this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
|
|
493
503
|
}
|
|
494
504
|
static get watchers() { return {
|
|
495
505
|
"certificate": ["watchCertificateAndDecode"]
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-bbd484d9.js';
|
|
5
|
-
import { i as isPem, a as isX509Pem, b as isPkcs10Pem, c as isX509AttributePem, d as isX509CRLPem } from './certification_request-
|
|
5
|
+
import { i as isPem, a as isX509Pem, b as isPkcs10Pem, c as isX509AttributePem, d as isX509CRLPem } from './certification_request-0ecd0af1.js';
|
|
6
6
|
import './l10n-a68d5748.js';
|
|
7
7
|
import './download-67ac9120.js';
|
|
8
|
-
import { X as X509Certificate } from './x509_certificate-
|
|
9
|
-
import { X as X509AttributeCertificate, C as CSR, a as CRL } from './crl-
|
|
8
|
+
import { X as X509Certificate } from './x509_certificate-59d7a03c.js';
|
|
9
|
+
import { X as X509AttributeCertificate, C as CSR, a as CRL } from './crl-c09357a9.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, h, H as Host } from './index-bbd484d9.js';
|
|
5
|
-
import { X as X509Certificate } from './x509_certificate-
|
|
6
|
-
import './certification_request-
|
|
5
|
+
import { X as X509Certificate } from './x509_certificate-59d7a03c.js';
|
|
6
|
+
import './certification_request-0ecd0af1.js';
|
|
7
7
|
import './download-67ac9120.js';
|
|
8
8
|
import './l10n-a68d5748.js';
|
|
9
|
-
import { B as BasicInformation, e as SubjectName, I as IssuerName, P as PublicKey, S as Signature, T as Thumbprints, E as Extensions, b as getLEILink, c as getDNSNameLink, d as getIPAddressLink, M as Miscellaneous } from './public_key-
|
|
9
|
+
import { B as BasicInformation, e as SubjectName, I as IssuerName, P as PublicKey, S as Signature, T as Thumbprints, E as Extensions, b as getLEILink, c as getDNSNameLink, d as getIPAddressLink, M as Miscellaneous } from './public_key-e6d12f27.js';
|
|
10
10
|
|
|
11
11
|
const certificateViewerCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";
|
|
12
12
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-bbd484d9.js';
|
|
5
|
-
import { X as X509Certificate } from './x509_certificate-
|
|
6
|
-
import { Q as OIDs } from './certification_request-
|
|
5
|
+
import { X as X509Certificate } from './x509_certificate-59d7a03c.js';
|
|
6
|
+
import { Q as OIDs } from './certification_request-0ecd0af1.js';
|
|
7
7
|
import './download-67ac9120.js';
|
|
8
8
|
import { l as l10n } from './l10n-a68d5748.js';
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { h } from './index-bbd484d9.js';
|
|
5
5
|
import { b as build } from './download-67ac9120.js';
|
|
6
6
|
import { l as l10n, a as dateShort } from './l10n-a68d5748.js';
|
|
7
|
-
import { Q as OIDs, S as Name,
|
|
7
|
+
import { Q as OIDs, S as Name, _ as OtherName, p as AsnParser, $ as DisplayText, a0 as UserNotice, a1 as EDIPartyName, a2 as AsnIntegerArrayBufferConverter, a3 as KeyUsage, a4 as BasicConstraints, a5 as ExtendedKeyUsage, a6 as SubjectKeyIdentifier, a7 as AuthorityKeyIdentifier, a8 as CRLDistributionPoints, a9 as AuthorityInfoAccessSyntax, aa as SubjectInfoAccessSyntax, ab as SubjectAlternativeName, ac as CertificatePolicies, ad as CertificateTransparency, ae as NameConstraints, af as CertificateTemplate, ag as EnrollCertTypeChoice, ah as CaVersion, ai as QCStatements, aj as NetscapeComment, ak as NetscapeCertType, al as LeiRole, am as LeiChoice, an as Timestamp, ao as ArchiveRevInfo, X as CRLReason, ap as SubjectDirectoryAttributes, aq as PrivateKeyUsagePeriod, ar as EntrustVersionInfo, as as BiometricSyntax, at as LogotypeExtn, au as TNAuthorizationList, av as PolicyConstraints, aw as PolicyMappings, ax as CRLNumber, ay as IssuingDistributionPoint } from './certification_request-0ecd0af1.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { A as AsnData, e as certificateRawToBuffer, C as Certificate, N as Name, E as Extension, f as AsnConvert, g as id_ecPublicKey, h as ECParameters, j as id_rsaEncryption, R as RSAPublicKey, k as hexFormat, l as base64Format, m as getCertificateThumbprint } from './certification_request-
|
|
4
|
+
import { A as AsnData, e as certificateRawToBuffer, C as Certificate, N as Name, E as Extension, f as AsnConvert, g as id_ecPublicKey, h as ECParameters, j as id_rsaEncryption, R as RSAPublicKey, k as hexFormat, l as base64Format, m as getCertificateThumbprint } from './certification_request-0ecd0af1.js';
|
|
5
5
|
import { b as build, D as Download } from './download-67ac9120.js';
|
|
6
6
|
import { d as dateDiff } from './l10n-a68d5748.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{h as e}from"./p-f7683ba5.js";import{b as a}from"./p-cff9655c.js";import{l as n,a as c}from"./p-fec9d812.js";import{Q as t,S as o,
|
|
4
|
+
import{h as e}from"./p-f7683ba5.js";import{b as a}from"./p-cff9655c.js";import{l as n,a as c}from"./p-fec9d812.js";import{Q as t,S as o,_ as s,p as f,$ as i,a0 as d,a1 as b,a2 as r,a3 as l,a4 as u,a5 as m,a6 as v,a7 as x,a8 as g,a9 as p,aa as y,ab as C,ac as h,ad as N,ae as S,af as A,ag as D,ah as I,ai as G,aj as j,ak as T,al as O,am as k,an as $,ao as P,X as L,ap as V,aq as R,ar as U,as as E,at as K,au as H,av as X,aw as M,ax as Y,ay as _}from"./p-3a4556ef.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -23,7 +23,7 @@ import{h as e}from"./p-f7683ba5.js";import{b as a}from"./p-cff9655c.js";import{l
|
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
25
|
*/
|
|
26
|
-
const B=a=>{const{value:n}=a;return n?e("tr",{class:"title"},e("td",{colSpan:2},e("peculiar-typography",{type:"h6"},n))):null},w=a=>{const{name:n,value:c,monospace:t,collapse:o,href:s,extraValue:f}=a;if(!n)return null;if(null==c)return null;let i;i=o?e("peculiar-text-hider",null,c):c;const d=!!c.toString();return e("tr",null,e("td",{colSpan:d?1:2},e("peculiar-typography",{color:"grey_5"},n,d?":":"")),d&&e("td",{class:{monospace:t}},function(e){return 0===e.indexOf("http")}(c.toString())||s?e("peculiar-link",{href:s||c.toString()},c):e("peculiar-typography",{monospace:t},i,f)))},W=c=>{const{signature:t}=c;return t?[e(B,{value:n.getString("signature")}),e(w,{name:n.getString("algorithm"),value:q(t.algorithm)}),e(w,{name:n.getString("value"),value:a.Convert.ToHex(t.value),monospace:!0,collapse:!0})]:null},z={otherName:"Other Name",rfc822Name:"RFC 822 Name",dNSName:"DNS Name",x400Address:"X400 Address",directoryName:"Directory Name",ediPartyName:"Edi Party Name ",uniformResourceIdentifier:"URI",iPAddress:"IP Address",registeredID:"Registered ID"},F=n=>{const{generalName:c,getDNSNameLink:r,getIPAddressLink:l}=n;return c?Object.keys(c).map((n=>{const u=c[n];if(u instanceof o)return[e(w,{name:z[n]||n,value:""}),u.map((a=>a.map((a=>e(w,{name:t[a.type]||a.type,value:a.value.toString()})))))];if(u instanceof s){try{const a=f.parse(u.value,i);return e(w,{name:t[u.typeId]||u.typeId,value:a.toString()})}catch(e){}try{const a=f.parse(u.value,d);if(a.explicitText)return e(w,{name:t[u.typeId]||u.typeId,value:a.explicitText.toString()})}catch(e){}return e(w,{name:t[u.typeId]||u.typeId,value:a.Convert.ToHex(u.value),monospace:!0})}return a.BufferSourceConverter.isBufferSource(u)?e(w,{name:z[n]||n,value:a.Convert.ToString(u)}):e(w,u instanceof b?{name:z[n]||n,value:a.Convert.ToString(u.partyName)}:"dNSName"===n?{name:z[n]||n,value:u,href:r(u)}:"iPAddress"===n?{name:z[n]||n,value:u,href:l(u)}:{name:z[n]||n,value:u})})):null},Q=a=>{const{thumbprints:c}=a;if(!c)return null;const t=Object.keys(c);return t.length?[e(B,{value:n.getString("fingerprints")}),t.map((a=>e(w,{name:a,value:c[a],monospace:!0})))]:null},Z=(a,c)=>{const{extension:t}=a;return[e(w,{name:"Name",value:q(t.asn.extnID)}),e(w,{name:"Critical",value:n.getString(t.asn.critical?"yes":"no")}),c,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},J=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Usage",value:n.value.toJSON().join(", ")}))},ee=a=>{const{extension:c}=a;return e(Z,{extension:c},e(w,{name:"Certificate Authority",value:n.getString(c.value.cA?"yes":"no")}),e(w,{name:"Path Length Constraint",value:c.value.pathLenConstraint}))},ae=a=>{const{extension:n}=a;return e(Z,{extension:n},n.value.map(((a,n)=>e(w,{name:`Purpose #${n+1}`,value:q(a)}))))},ne=n=>{const{extension:c,getSubjectKeyIdChildrenLink:t,getSubjectKeyIdSiblingsLink:o}=n,s=a.Convert.ToHex(c.value.buffer),f=t(s),i=o(s);return e(Z,{extension:c},e(w,{name:"Key ID",value:s,monospace:!0,extraValue:[f&&e("span",null," [",e("peculiar-link",{href:f},"children"),"]"),i&&e("span",null," [",e("peculiar-link",{href:i},"siblings"),"]")]}))},ce=n=>{const{extension:c,getAuthKeyIdParentLink:t,getAuthKeyIdSiblingsLink:o}=n,s=a.Convert.ToHex(c.value.keyIdentifier.buffer),f=t(s),i=o(s);return e(Z,{extension:c},e(w,{name:"Key ID",value:s,monospace:!0,extraValue:[f&&e("span",null," [",e("peculiar-link",{href:f},"parents"),"]"),i&&e("span",null," [",e("peculiar-link",{href:i},"siblings"),"]")]}))},te=a=>{const{extension:n}=a;return e(Z,{extension:n},n.value.map((n=>{var c,t;return[null===(c=n.distributionPoint)||void 0===c?void 0:c.fullName.map((n=>e(F,Object.assign({generalName:n},a)))),null===(t=n.cRLIssuer)||void 0===t?void 0:t.map((n=>e(F,Object.assign({generalName:n},a))))]})))},oe=a=>{const{extension:n}=a;return e(Z,{extension:n},n.value.map(((n,c)=>[e(w,{name:`Description #${c+1}`,value:""}),e(w,{name:"Method",value:q(n.accessMethod)}),e(F,Object.assign({generalName:n.accessLocation},a))])))},se=a=>{const{extension:n}=a;return e(Z,{extension:n},n.value.map((n=>e(F,Object.assign({generalName:n},a)))))},fe=a=>{const{extension:n}=a;return e(Z,{extension:n},n.value.map(((a,n)=>{var c;return[e(w,{name:`Policy #${n+1}`,value:""}),e(w,{name:"ID",value:q(a.policyIdentifier)}),null===(c=a.policyQualifiers)||void 0===c?void 0:c.map(((a,c)=>{const t=[e(w,{name:`Qualifier #${n+1}.${c+1}`,value:""}),e(w,{name:"ID",value:q(a.policyQualifierId)})];if("1.3.6.1.5.5.7.2.1"===a.policyQualifierId){const n=f.parse(a.qualifier,i);t.push(e(w,{name:"Value",value:n.toString()}))}if("1.3.6.1.5.5.7.2.2"===a.policyQualifierId){const n=f.parse(a.qualifier,d);n.explicitText&&t.push(e(w,{name:"Value",value:n.explicitText.toString()}))}return t}))]})))},ie={"9606c02c690033aa1d145f59c6e2648d0549f0df96aab8db915a70d8ecf390a5":"Akamai CT","39376f545f7b4607f59742d768cd5d2437bf3473b6534a4834bcf72e681c83c9":"Alpha CT",a577ac9ced7548dd8f025b67a241089df86e0f476ec203c2ecbedb185f282638:"CNNIC CT",cdb5179b7fc1c046feea31136a3f8f002e6182faf8896fecc8b2f5b5ab604900:"Certly.IO","1fbc36e002ede97f40199e86b3573b8a4217d80187746ad0da03a06054d20df4":"Cloudflare “Nimbus2017”",db74afeecb29ecb1feca3e716d2ce5b9aabb36f7847183c75d9d4f37b61fbf64:"Cloudflare “Nimbus2018”","747eda8331ad331091219cce254f4270c2bffd5e422008c6373579e6107bcc56":"Cloudflare “Nimbus2019”","5ea773f9df56c0e7b536487dd049e0327a919a0c84a112128418759681714558":"Cloudflare “Nimbus2020”","4494652eb0eeceafc44007d8a8fe28c0dae682bed8cb31b53fd33396b5b681a8":"Cloudflare “Nimbus2021”","41c8cab1df22464a10c6a13a0942875e4e318b1b03ebeb4bc768f090629606f6":"Cloudflare “Nimbus2022”","7a328c54d8b72db620ea38e0521ee98416703213854d3bd22bc13a57a352eb52":"Cloudflare “Nimbus2023”","6ff141b5647e4222f7ef052cefae7c21fd608e27d2af5a6e9f4b8a37d6633ee5":"DigiCert Nessie2018",fe446108b1d01ab78a62ccfeab6ab2b2babff3abdad80a4d8b30df2d0008830c:"DigiCert Nessie2019",c652a0ec48ceb3fcab170992c43a87413309e80065a26252401ba3362a17c565:"DigiCert Nessie2020",eec095ee8d72640f92e3c3b91bc712a3696a097b4b6a1a1438e647b2cbedc5f9:"DigiCert Nessie2021","51a3b0f5fd01799c566db837788f0ca47acc1b27cbf79e88429a0dfed48b05e5":"DigiCert Nessie2022",b3737707e18450f86386d605a9dc11094a792db1670c0b87dcf0030e7936a59a:"DigiCert Nessie2023","5614069a2fd7c2ecd3f5e1bd44b23ec74676b9bc99115cc0ef949855d689d0dd":"DigiCert Server","8775bfe7597cf88c43995fbdf36eff568d475636ff4ab560c1b4eaff5ea0830f":"DigiCert Server 2",c1164ae0a772d2d4392dc80ac10770d4f0c49bde991a4840c1fa075164f63360:"DigiCert Yeti2018",e2694bae26e8e94009e8861bb63b83d43ee7fe7488fba48f2893019dddf1dbfe:"DigiCert Yeti2019",f095a459f200d18240102d2f93888ead4bfe1d47e399e1d034a6b0a8aa8eb273:"DigiCert Yeti2020","5cdc4392fee6ab4544b15e9ad456e61037fbd5fa47dca17394b25ee6f6c70eca":"DigiCert Yeti2021","2245450759552456963fa12ff1f76d86e0232663adc04b7f5dc6835c6ee20f02":"DigiCert Yeti2022","35cf191bbfb16c57bf0fad4c6d42cbbbb627202651ea3fe12aefa803c33bd64c":"DigiCert Yeti2023","717ea7420975be84a2723553f1777c26dd51af4e102144094d9019b462fb6668":"GDCA 1","14308d90ccd030135005c01ca526d81e84e87624e39b6248e08f724aea3bb42a":"GDCA 2",c9cf890a21109c666cc17a3ed065c930d0e0135a9feba85af14210b8072421aa:"GDCA CT #1","924a30f909336ff435d6993a10ac75a2c641728e7fc2d659ae6188ffad40ce01":"GDCA CT #2",fad4c97cc49ee2f8ac85c5ea5cea09d0220dbbf4e49c6b50662ff868f86b8c28:"Google “Argon2017”",a4501269055a15545e6211ab37bc103f62ae5576a45e4b1714453e1b22106a25:"Google “Argon2018”","63f2dbcde83bcc2ccf0b728427576b33a48d61778fbd75a638b1c768544bd88d":"Google “Argon2019”",b21e05cc8ba2cd8a204e8766f92bb98a2520676bdafa70e7b249532def8b905e:"Google “Argon2020”",f65c942fd1773022145418083094568ee34d131933bfdf0c2f200bcc4ef164e3:"Google “Argon2021”","2979bef09e393921f056739f63a577e5be577d9c600af8f94d5d265c255dc784":"Google “Argon2022”","68f698f81f6482be3a8ceeb9281d4cfc71515d6793d444d10a67acbb4f4ffbc4":"Google “Aviator”",c3bf03a7e1ca8841c607bae3ff4270fca5ec45b186ebbe4e2cf3fc778630f5f6:"Google “Crucible”","1d024b8eb1498b344dfd87ea3efc0996f7506f235d1d497061a4773c439c25fb":"Google “Daedalus”","293c519654c83965baaa50fc5807d4b76fbf587a2972dca4c30cf4e54547f478":"Google “Icarus”",a4b90990b418581487bb13a2cc67700a3c359804f91bdfb8e377cd0ec80ddc10:"Google “Pilot”",ee4bbdb775ce60bae142691fabe19e66a30f7e5fb072d88300c47b897aa8fdcb:"Google “Rocketeer”",bbd9dfbc1f8a71b593942397aa927b473857950aab52e81a909664368e1ed185:"Google “Skydiver”","52eb4b225ec896974850675f23e43bc1d021e3214ce52ecd5fa87c203cdfca03":"Google “Solera2018”","0b760e9a8b9a682f88985b15e947501a56446bba8830785c3842994386450c00":"Google “Solera2019”","1fc72ce5a1b799f400c359bff96ca3913548e8644220610952e9ba1774f7bac7":"Google “Solera2020”",a3c99845e80ab7ce00157b3742df0207dd272b2b602ecf98ee2c12db9c5ae7e7:"Google “Solera2021”","697aafca1a6b536fae21205046debad7e0eaea13d2432e6e9d8fb379f2b9aaf3":"Google “Solera2022”",a899d8780c9290aaf462f31880ccfbd52451e970d0fbf591ef75b0d99b645681:"Google “Submariner”",b0cc83e5a5f97d6baf7c09cc284904872ac7e88b132c6350b7c6fd26e16c6c77:"Google “Testtube”",b10cd559a6d67846811f7df9a51532739ac48d703bea0323da5d38755bc0ad4e:"Google “Xenon2018”","084114980071532c16190460bcfc47fdc2653afa292c72b37ff863ae29ccc9f0":"Google “Xenon2019”","07b75c1be57d68fff1b0c61d2315c7bae6577c5794b76aeebc613a1a69d3a21c":"Google “Xenon2020”","7d3ef2f88fff88556824c2c0ca9e5289792bc50e78097f2e6a9768997e22f0d7":"Google “Xenon2021”","46a555eb75fa912030b5a28969f4f37d112c4174befd49b885abf2fc70fe6d47":"Google “Xenon2022”","7461b4a09cfb3d41d75159575b2e7649a445a8d27709b0cc564a6482b7eb41a3":"Izenpe","8941449c70742e06b9fc9ce7b116ba0024aa36d59af44f0204404f00f7ea8566":"Izenpe “Argi”","296afa2d568bca0d2ea844956ae9721fc35fa355ecda99693aafd458a71aefdd":"Let“s Encrypt ”Clicky”","537b69a3564335a9c04904e39593b2c298eb8d7a6e83023635c627248cd6b440":"Nordu “flimsy”",aae70b7f3cb8d566c86c2f16979c9f445f69ab0eb4535589b2f77a030104f3cd:"Nordu “plausible”",e0127629e90496564e3d0147984498aa48f8adb16600eb7902a1ef9909906273:"PuChuangSiDa CT",cf55e28923497c340d5206d05353aeb25834b52f1f8dc9526809f212efdd7ca6:"SHECA CT 1","32dc59c2d4c41968d56e14bc61ac8f0e45db39faf3c155aa4252f5001fa0c623":"SHECA CT 2",db76fdadac65e7d09508886e2159bd8b90352f5fead3e3dc5e22eb350acc7b98:"Sectigo (Comodo) “Dodo” CT","6f5376ac31f03119d89900a45115ff77151c11d902c10029068db2089a37d913":"Sectigo (Comodo) “Mammoth” CT","5581d4c2169036014aea0b9b573c53f0c0e43878702508172fa3aa1d0713d30c":"Sectigo (Comodo) “Sabre” CT","34bb6ad6c3df9c03eea8a499ff7891486c9d5e5cac92d01f7bfd1bce19db48ef":"StartCom",ddeb1d2b7a0d4fa6208b81ad8168707e2e8e9d01d55c888d3d11c4cdb6ecbecc:"Symantec",a7ce4a4e6207e0addee5fdaa4b1f86768767b5d002a55d47310e7e670a95eab2:"Symantec Deneb","15970488d7b997a05beb52512adee8d2e8b4a3165264121a9fabfbd5f85ad93f":"Symantec “Sirius”",bc78e1dfc5f63c684649334da10fa15f0979692009c081b4f3f6917f3ed9b8a5:"Symantec “Vega”",b0b784bc81c0ddc47544e883f05985bb9077d134d8ab88b2b2e533980b8e508b:"Up In The Air “Behind the Sofa”",ac3b9aed7fa9674757159e6d7d575672f9d98100941e9bdeffeca1313b75782d:"Venafi","03019df3fd85a69a8ebd1facc6da9ba73e469774fe77f579fc5a08b8328c1d6b":"Venafi Gen2 CT","41b2dc2e89e63ce4af1ba7bb29bf68c6dee6f9f1cc047e30dffae3b3ba259263":"WoSign","63d0006026dde10bb0601f452446965ee2b6ea2cd4fbc95ac866a550af9075b7":"WoSign 2","9e4ff73dc3ce220b69217c899e468076abf8d78636d5ccfc85a31a75628ba88b":"WoSign CT #1"},de=a=>{const{extension:n}=a;return e(Z,{extension:n},n.value.toJSON().map(((a,n)=>[e(w,{name:`SCT #${n+1}`,value:""}),e(w,{name:"Version",value:a.version+1}),e(w,{name:"Log Operator",value:ie[a.logId]||a.logId}),e(w,{name:"Log Key ID",value:a.logId,monospace:!0}),e(w,{name:"Timestamp",value:c(a.timestamp)}),e(w,{name:"Signature Algorithm",value:`${a.hashAlgorithm} ${a.signatureAlgorithm}`.toUpperCase()}),e(w,{name:"Signature",value:a.signature,monospace:!0})])))},be=a=>{var n,c;const{extension:t}=a;return e(Z,{extension:t},null===(n=t.value.excludedSubtrees)||void 0===n?void 0:n.map((n=>e(F,Object.assign({generalName:n.base},a)))),null===(c=t.value.permittedSubtrees)||void 0===c?void 0:c.map((n=>e(F,Object.assign({generalName:n.base},a)))))},re=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Template ID",value:n.value.templateID}),e(w,{name:"Template Major Version",value:n.value.templateMajorVersion}),e(w,{name:"Template Minor Version",value:n.value.templateMinorVersion}))},le=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Name",value:n.value.toString()}))},ue=a=>{const{extension:n}=a,c=n.value.getVersion();return e(Z,{extension:n},e(w,{name:"Certificate Index",value:c.certificateIndex}),e(w,{name:"Key Index",value:c.keyIndex}))},me=n=>{const{extension:c}=n;return e(Z,{extension:c},c.value.map(((n,c)=>[e(w,{name:`Statement #${c+1}`,value:""}),e(w,{name:"ID",value:q(n.statementId)}),e(w,{name:"Info",value:n.statementInfo.byteLength?a.Convert.ToHex(n.statementInfo):null,monospace:!0})])))},ve=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Comment",value:n.value.value}))},xe=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Type",value:n.value.toJSON().join(", ")}))},ge=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Role",value:n.value.text}))},pe=a=>{const{extension:n,getLEILink:c}=a;return e(Z,{extension:n},e(w,{name:"Identifier",value:n.value.text,href:c(n.value.text)}))},ye=a=>{const{extension:c}=a;return e(Z,{extension:c},e(w,{name:"Version",value:c.value.version}),e(F,Object.assign({generalName:c.value.location},a)),e(w,{name:"Requires Auth",value:n.getString(c.value.requiresAuth?"yes":"no")}))},Ce=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Version",value:n.value.version}))},he=a=>{const{extension:n}=a;return e(Z,{extension:n},e(w,{name:"Reason",value:n.value.toJSON()}))};
|
|
26
|
+
const B=a=>{const{value:n}=a;return n?e("tr",{class:"title"},e("td",{colSpan:2},e("peculiar-typography",{type:"h6"},n))):null},w=a=>{const{name:n,value:c,monospace:t,collapse:o,href:s,extraValue:f}=a;if(!n)return null;if(null==c)return null;let i;i=o?e("peculiar-text-hider",null,c):c;const d=!!c.toString();return e("tr",null,e("td",{colSpan:d?1:2},e("peculiar-typography",{color:"grey_5"},n,d?":":"")),d&&e("td",{class:{monospace:t}},function(e){return 0===e.indexOf("http")}(c.toString())||s?e("peculiar-link",{href:s||c.toString()},c):e("peculiar-typography",{monospace:t},i,f)))},W=c=>{const{signature:t}=c;return t?[e(B,{value:n.getString("signature")}),e(w,{name:n.getString("algorithm"),value:q(t.algorithm)}),e(w,{name:n.getString("value"),value:a.Convert.ToHex(t.value),monospace:!0,collapse:!0})]:null},z={otherName:"Other Name",rfc822Name:"RFC 822 Name",dNSName:"DNS Name",x400Address:"X400 Address",directoryName:"Directory Name",ediPartyName:"Edi Party Name ",uniformResourceIdentifier:"URI",iPAddress:"IP Address",registeredID:"Registered ID"},F=n=>{const{generalName:c,getDNSNameLink:r,getIPAddressLink:l}=n;return c?Object.keys(c).map((n=>{const u=c[n];if(u instanceof o)return[e(w,{name:z[n]||n,value:""}),u.map((a=>a.map((a=>e(w,{name:t[a.type]||a.type,value:a.value.toString()})))))];if(u instanceof s){try{const a=f.parse(u.value,i);return e(w,{name:t[u.typeId]||u.typeId,value:a.toString()})}catch(e){}try{const a=f.parse(u.value,d);if(a.explicitText)return e(w,{name:t[u.typeId]||u.typeId,value:a.explicitText.toString()})}catch(e){}return e(w,{name:t[u.typeId]||u.typeId,value:a.Convert.ToHex(u.value),monospace:!0})}return a.BufferSourceConverter.isBufferSource(u)?e(w,{name:z[n]||n,value:a.Convert.ToString(u)}):e(w,u instanceof b?{name:z[n]||n,value:a.Convert.ToString(u.partyName)}:"dNSName"===n?{name:z[n]||n,value:u,href:r(u)}:"iPAddress"===n?{name:z[n]||n,value:u,href:l(u)}:{name:z[n]||n,value:u})})):null},Q=a=>{const{thumbprints:c}=a;if(!c)return null;const t=Object.keys(c);return t.length?[e(B,{value:n.getString("fingerprints")}),t.map((a=>e(w,{name:a,value:c[a],monospace:!0})))]:null},J=(a,c)=>{const{extension:t}=a;return[e(w,{name:"Name",value:q(t.asn.extnID)}),e(w,{name:"Critical",value:n.getString(t.asn.critical?"yes":"no")}),c,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},Z=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Usage",value:n.value.toJSON().join(", ")}))},ee=a=>{const{extension:c}=a;return e(J,{extension:c},e(w,{name:"Certificate Authority",value:n.getString(c.value.cA?"yes":"no")}),e(w,{name:"Path Length Constraint",value:c.value.pathLenConstraint}))},ae=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map(((a,n)=>e(w,{name:`Purpose #${n+1}`,value:q(a)}))))},ne=n=>{const{extension:c,getSubjectKeyIdChildrenLink:t,getSubjectKeyIdSiblingsLink:o}=n,s=a.Convert.ToHex(c.value.buffer),f=t(s),i=o(s);return e(J,{extension:c},e(w,{name:"Key ID",value:s,monospace:!0,extraValue:[f&&e("span",null," [",e("peculiar-link",{href:f},"children"),"]"),i&&e("span",null," [",e("peculiar-link",{href:i},"siblings"),"]")]}))},ce=n=>{const{extension:c,getAuthKeyIdParentLink:t,getAuthKeyIdSiblingsLink:o}=n,s=a.Convert.ToHex(c.value.keyIdentifier.buffer),f=t(s),i=o(s);return e(J,{extension:c},e(w,{name:"Key ID",value:s,monospace:!0,extraValue:[f&&e("span",null," [",e("peculiar-link",{href:f},"parents"),"]"),i&&e("span",null," [",e("peculiar-link",{href:i},"siblings"),"]")]}))},te=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map((n=>{var c,t;return[null===(c=n.distributionPoint)||void 0===c?void 0:c.fullName.map((n=>e(F,Object.assign({generalName:n},a)))),null===(t=n.cRLIssuer)||void 0===t?void 0:t.map((n=>e(F,Object.assign({generalName:n},a))))]})))},oe=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map(((n,c)=>[e(w,{name:`Description #${c+1}`,value:""}),e(w,{name:"Method",value:q(n.accessMethod)}),e(F,Object.assign({generalName:n.accessLocation},a))])))},se=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map((n=>e(F,Object.assign({generalName:n},a)))))},fe=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map(((a,n)=>{var c;return[e(w,{name:`Policy #${n+1}`,value:""}),e(w,{name:"ID",value:q(a.policyIdentifier)}),null===(c=a.policyQualifiers)||void 0===c?void 0:c.map(((a,c)=>{const t=[e(w,{name:`Qualifier #${n+1}.${c+1}`,value:""}),e(w,{name:"ID",value:q(a.policyQualifierId)})];if("1.3.6.1.5.5.7.2.1"===a.policyQualifierId){const n=f.parse(a.qualifier,i);t.push(e(w,{name:"Value",value:n.toString()}))}if("1.3.6.1.5.5.7.2.2"===a.policyQualifierId){const n=f.parse(a.qualifier,d);n.explicitText&&t.push(e(w,{name:"Value",value:n.explicitText.toString()}))}return t}))]})))},ie={"9606c02c690033aa1d145f59c6e2648d0549f0df96aab8db915a70d8ecf390a5":"Akamai CT","39376f545f7b4607f59742d768cd5d2437bf3473b6534a4834bcf72e681c83c9":"Alpha CT",a577ac9ced7548dd8f025b67a241089df86e0f476ec203c2ecbedb185f282638:"CNNIC CT",cdb5179b7fc1c046feea31136a3f8f002e6182faf8896fecc8b2f5b5ab604900:"Certly.IO","1fbc36e002ede97f40199e86b3573b8a4217d80187746ad0da03a06054d20df4":"Cloudflare “Nimbus2017”",db74afeecb29ecb1feca3e716d2ce5b9aabb36f7847183c75d9d4f37b61fbf64:"Cloudflare “Nimbus2018”","747eda8331ad331091219cce254f4270c2bffd5e422008c6373579e6107bcc56":"Cloudflare “Nimbus2019”","5ea773f9df56c0e7b536487dd049e0327a919a0c84a112128418759681714558":"Cloudflare “Nimbus2020”","4494652eb0eeceafc44007d8a8fe28c0dae682bed8cb31b53fd33396b5b681a8":"Cloudflare “Nimbus2021”","41c8cab1df22464a10c6a13a0942875e4e318b1b03ebeb4bc768f090629606f6":"Cloudflare “Nimbus2022”","7a328c54d8b72db620ea38e0521ee98416703213854d3bd22bc13a57a352eb52":"Cloudflare “Nimbus2023”","6ff141b5647e4222f7ef052cefae7c21fd608e27d2af5a6e9f4b8a37d6633ee5":"DigiCert Nessie2018",fe446108b1d01ab78a62ccfeab6ab2b2babff3abdad80a4d8b30df2d0008830c:"DigiCert Nessie2019",c652a0ec48ceb3fcab170992c43a87413309e80065a26252401ba3362a17c565:"DigiCert Nessie2020",eec095ee8d72640f92e3c3b91bc712a3696a097b4b6a1a1438e647b2cbedc5f9:"DigiCert Nessie2021","51a3b0f5fd01799c566db837788f0ca47acc1b27cbf79e88429a0dfed48b05e5":"DigiCert Nessie2022",b3737707e18450f86386d605a9dc11094a792db1670c0b87dcf0030e7936a59a:"DigiCert Nessie2023","5614069a2fd7c2ecd3f5e1bd44b23ec74676b9bc99115cc0ef949855d689d0dd":"DigiCert Server","8775bfe7597cf88c43995fbdf36eff568d475636ff4ab560c1b4eaff5ea0830f":"DigiCert Server 2",c1164ae0a772d2d4392dc80ac10770d4f0c49bde991a4840c1fa075164f63360:"DigiCert Yeti2018",e2694bae26e8e94009e8861bb63b83d43ee7fe7488fba48f2893019dddf1dbfe:"DigiCert Yeti2019",f095a459f200d18240102d2f93888ead4bfe1d47e399e1d034a6b0a8aa8eb273:"DigiCert Yeti2020","5cdc4392fee6ab4544b15e9ad456e61037fbd5fa47dca17394b25ee6f6c70eca":"DigiCert Yeti2021","2245450759552456963fa12ff1f76d86e0232663adc04b7f5dc6835c6ee20f02":"DigiCert Yeti2022","35cf191bbfb16c57bf0fad4c6d42cbbbb627202651ea3fe12aefa803c33bd64c":"DigiCert Yeti2023","717ea7420975be84a2723553f1777c26dd51af4e102144094d9019b462fb6668":"GDCA 1","14308d90ccd030135005c01ca526d81e84e87624e39b6248e08f724aea3bb42a":"GDCA 2",c9cf890a21109c666cc17a3ed065c930d0e0135a9feba85af14210b8072421aa:"GDCA CT #1","924a30f909336ff435d6993a10ac75a2c641728e7fc2d659ae6188ffad40ce01":"GDCA CT #2",fad4c97cc49ee2f8ac85c5ea5cea09d0220dbbf4e49c6b50662ff868f86b8c28:"Google “Argon2017”",a4501269055a15545e6211ab37bc103f62ae5576a45e4b1714453e1b22106a25:"Google “Argon2018”","63f2dbcde83bcc2ccf0b728427576b33a48d61778fbd75a638b1c768544bd88d":"Google “Argon2019”",b21e05cc8ba2cd8a204e8766f92bb98a2520676bdafa70e7b249532def8b905e:"Google “Argon2020”",f65c942fd1773022145418083094568ee34d131933bfdf0c2f200bcc4ef164e3:"Google “Argon2021”","2979bef09e393921f056739f63a577e5be577d9c600af8f94d5d265c255dc784":"Google “Argon2022”","68f698f81f6482be3a8ceeb9281d4cfc71515d6793d444d10a67acbb4f4ffbc4":"Google “Aviator”",c3bf03a7e1ca8841c607bae3ff4270fca5ec45b186ebbe4e2cf3fc778630f5f6:"Google “Crucible”","1d024b8eb1498b344dfd87ea3efc0996f7506f235d1d497061a4773c439c25fb":"Google “Daedalus”","293c519654c83965baaa50fc5807d4b76fbf587a2972dca4c30cf4e54547f478":"Google “Icarus”",a4b90990b418581487bb13a2cc67700a3c359804f91bdfb8e377cd0ec80ddc10:"Google “Pilot”",ee4bbdb775ce60bae142691fabe19e66a30f7e5fb072d88300c47b897aa8fdcb:"Google “Rocketeer”",bbd9dfbc1f8a71b593942397aa927b473857950aab52e81a909664368e1ed185:"Google “Skydiver”","52eb4b225ec896974850675f23e43bc1d021e3214ce52ecd5fa87c203cdfca03":"Google “Solera2018”","0b760e9a8b9a682f88985b15e947501a56446bba8830785c3842994386450c00":"Google “Solera2019”","1fc72ce5a1b799f400c359bff96ca3913548e8644220610952e9ba1774f7bac7":"Google “Solera2020”",a3c99845e80ab7ce00157b3742df0207dd272b2b602ecf98ee2c12db9c5ae7e7:"Google “Solera2021”","697aafca1a6b536fae21205046debad7e0eaea13d2432e6e9d8fb379f2b9aaf3":"Google “Solera2022”",a899d8780c9290aaf462f31880ccfbd52451e970d0fbf591ef75b0d99b645681:"Google “Submariner”",b0cc83e5a5f97d6baf7c09cc284904872ac7e88b132c6350b7c6fd26e16c6c77:"Google “Testtube”",b10cd559a6d67846811f7df9a51532739ac48d703bea0323da5d38755bc0ad4e:"Google “Xenon2018”","084114980071532c16190460bcfc47fdc2653afa292c72b37ff863ae29ccc9f0":"Google “Xenon2019”","07b75c1be57d68fff1b0c61d2315c7bae6577c5794b76aeebc613a1a69d3a21c":"Google “Xenon2020”","7d3ef2f88fff88556824c2c0ca9e5289792bc50e78097f2e6a9768997e22f0d7":"Google “Xenon2021”","46a555eb75fa912030b5a28969f4f37d112c4174befd49b885abf2fc70fe6d47":"Google “Xenon2022”","7461b4a09cfb3d41d75159575b2e7649a445a8d27709b0cc564a6482b7eb41a3":"Izenpe","8941449c70742e06b9fc9ce7b116ba0024aa36d59af44f0204404f00f7ea8566":"Izenpe “Argi”","296afa2d568bca0d2ea844956ae9721fc35fa355ecda99693aafd458a71aefdd":"Let“s Encrypt ”Clicky”","537b69a3564335a9c04904e39593b2c298eb8d7a6e83023635c627248cd6b440":"Nordu “flimsy”",aae70b7f3cb8d566c86c2f16979c9f445f69ab0eb4535589b2f77a030104f3cd:"Nordu “plausible”",e0127629e90496564e3d0147984498aa48f8adb16600eb7902a1ef9909906273:"PuChuangSiDa CT",cf55e28923497c340d5206d05353aeb25834b52f1f8dc9526809f212efdd7ca6:"SHECA CT 1","32dc59c2d4c41968d56e14bc61ac8f0e45db39faf3c155aa4252f5001fa0c623":"SHECA CT 2",db76fdadac65e7d09508886e2159bd8b90352f5fead3e3dc5e22eb350acc7b98:"Sectigo (Comodo) “Dodo” CT","6f5376ac31f03119d89900a45115ff77151c11d902c10029068db2089a37d913":"Sectigo (Comodo) “Mammoth” CT","5581d4c2169036014aea0b9b573c53f0c0e43878702508172fa3aa1d0713d30c":"Sectigo (Comodo) “Sabre” CT","34bb6ad6c3df9c03eea8a499ff7891486c9d5e5cac92d01f7bfd1bce19db48ef":"StartCom",ddeb1d2b7a0d4fa6208b81ad8168707e2e8e9d01d55c888d3d11c4cdb6ecbecc:"Symantec",a7ce4a4e6207e0addee5fdaa4b1f86768767b5d002a55d47310e7e670a95eab2:"Symantec Deneb","15970488d7b997a05beb52512adee8d2e8b4a3165264121a9fabfbd5f85ad93f":"Symantec “Sirius”",bc78e1dfc5f63c684649334da10fa15f0979692009c081b4f3f6917f3ed9b8a5:"Symantec “Vega”",b0b784bc81c0ddc47544e883f05985bb9077d134d8ab88b2b2e533980b8e508b:"Up In The Air “Behind the Sofa”",ac3b9aed7fa9674757159e6d7d575672f9d98100941e9bdeffeca1313b75782d:"Venafi","03019df3fd85a69a8ebd1facc6da9ba73e469774fe77f579fc5a08b8328c1d6b":"Venafi Gen2 CT","41b2dc2e89e63ce4af1ba7bb29bf68c6dee6f9f1cc047e30dffae3b3ba259263":"WoSign","63d0006026dde10bb0601f452446965ee2b6ea2cd4fbc95ac866a550af9075b7":"WoSign 2","9e4ff73dc3ce220b69217c899e468076abf8d78636d5ccfc85a31a75628ba88b":"WoSign CT #1"},de=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.toJSON().map(((a,n)=>[e(w,{name:`SCT #${n+1}`,value:""}),e(w,{name:"Version",value:a.version+1}),e(w,{name:"Log Operator",value:ie[a.logId]||a.logId}),e(w,{name:"Log Key ID",value:a.logId,monospace:!0}),e(w,{name:"Timestamp",value:c(a.timestamp)}),e(w,{name:"Signature Algorithm",value:`${a.hashAlgorithm} ${a.signatureAlgorithm}`.toUpperCase()}),e(w,{name:"Signature",value:a.signature,monospace:!0})])))},be=a=>{var n,c;const{extension:t}=a;return e(J,{extension:t},null===(n=t.value.excludedSubtrees)||void 0===n?void 0:n.map((n=>e(F,Object.assign({generalName:n.base},a)))),null===(c=t.value.permittedSubtrees)||void 0===c?void 0:c.map((n=>e(F,Object.assign({generalName:n.base},a)))))},re=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Template ID",value:n.value.templateID}),e(w,{name:"Template Major Version",value:n.value.templateMajorVersion}),e(w,{name:"Template Minor Version",value:n.value.templateMinorVersion}))},le=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Name",value:n.value.toString()}))},ue=a=>{const{extension:n}=a,c=n.value.getVersion();return e(J,{extension:n},e(w,{name:"Certificate Index",value:c.certificateIndex}),e(w,{name:"Key Index",value:c.keyIndex}))},me=n=>{const{extension:c}=n;return e(J,{extension:c},c.value.map(((n,c)=>[e(w,{name:`Statement #${c+1}`,value:""}),e(w,{name:"ID",value:q(n.statementId)}),e(w,{name:"Info",value:n.statementInfo.byteLength?a.Convert.ToHex(n.statementInfo):null,monospace:!0})])))},ve=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Comment",value:n.value.value}))},xe=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Type",value:n.value.toJSON().join(", ")}))},ge=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Role",value:n.value.text}))},pe=a=>{const{extension:n,getLEILink:c}=a;return e(J,{extension:n},e(w,{name:"Identifier",value:n.value.text,href:c(n.value.text)}))},ye=a=>{const{extension:c}=a;return e(J,{extension:c},e(w,{name:"Version",value:c.value.version}),e(F,Object.assign({generalName:c.value.location},a)),e(w,{name:"Requires Auth",value:n.getString(c.value.requiresAuth?"yes":"no")}))},Ce=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Version",value:n.value.version}))},he=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Reason",value:n.value.toJSON()}))};
|
|
27
27
|
/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -38,7 +38,7 @@ function Ne(e){return a.Convert.ToString(e.values[0])}
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const Se=a=>{const{extension:n}=a;return e(
|
|
41
|
+
*/const Se=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map(((a,n)=>[e(w,{name:`Attribute #${n+1}`,value:""}),e(w,{name:"Type",value:q(a.type)}),e(w,{name:"Value",value:Ne(a)})])))},Ae=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Value",value:n.value,monospace:!0}))},De=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Not Before",value:c(n.value.notBefore)}),e(w,{name:"Not After",value:c(n.value.notAfter)}))},Ie=a=>{const{extension:n}=a;return e(J,{extension:n},e(w,{name:"Version",value:n.value.entrustVers}),e(w,{name:"Info Flags",value:n.value.entrustInfoFlags.toJSON().join(", ")}))},Ge=n=>{const{extension:c}=n;return e(J,{extension:c},c.value.map(((n,c)=>[e(w,{name:`Biometric #${c+1}`,value:""}),e(w,{name:"OID",value:q(n.typeOfBiometricData.biometricDataOid)}),e(w,{name:"Type",value:n.typeOfBiometricData.predefinedBiometricType}),e(w,{name:"Algorithm",value:q(n.hashAlgorithm.algorithm)}),e(w,{name:"Hash",value:a.Convert.ToHex(n.biometricDataHash.buffer),monospace:!0}),e(w,{name:"Source Uri",value:n.sourceDataUri})])))},je=n=>{const{extension:c}=n,t=n=>n?n.map((n=>{const{imageDetails:c}=n;return[e(w,{name:"Image Type",value:c.mediaType}),e(w,{name:"Image Hash",value:a.Convert.ToHex(c.logotypeHash[0].hashValue),monospace:!0}),e(w,{name:"Image URL",value:c.logotypeURI[0],monospace:!0,collapse:!0}),e(w,{name:"Image Hash Algorithm",value:q(c.logotypeHash[0].hashAlg.algorithm)})]})):null,o=n=>n?n.map((n=>{const{audioDetails:c}=n;return[e(w,{name:"Audio Type",value:c.mediaType}),e(w,{name:"Audio Hash",value:a.Convert.ToHex(c.logotypeHash[0].hashValue),monospace:!0}),e(w,{name:"Audio URL",value:c.logotypeURI[0],monospace:!0,collapse:!0}),e(w,{name:"Audio Hash Algorithm",value:q(c.logotypeHash[0].hashAlg.algorithm)})]})):null,s=(a,n)=>{if(!n||!n.direct)return null;const{image:c,audio:s}=n.direct;return[e(w,{name:"Type",value:a}),t(c),o(s),e("tr",null,e("td",null),e("td",null))]};return e(J,{extension:c},s("Subject",c.value.subjectLogo),s("Issuer",c.value.issuerLogo))},Te=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map(((a,n)=>[e(w,{name:`Entry #${n+1}`,value:""}),e(w,{name:"SPC",value:a.spc}),e(w,{name:"Range",value:a.range?`start=${a.range.start} count==${a.range.count}`:null}),e(w,{name:"One",value:a.one})])))},Oe=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.requireExplicitPolicy&&e(w,{name:"Require Explicit Policy",value:r.toASN(n.value.requireExplicitPolicy).valueBlock.toString()}),n.value.inhibitPolicyMapping&&e(w,{name:"Inhibit Policy Mapping",value:r.toASN(n.value.inhibitPolicyMapping).valueBlock.toString()}))},ke=a=>{const{extension:n}=a;return e(J,{extension:n},n.value.map(((a,n)=>[e(w,{name:`Policy #${n+1}`,value:""}),e(w,{name:"Issuer Domain",value:q(a.issuerDomainPolicy)}),e(w,{name:"Subject Domain",value:q(a.subjectDomainPolicy)})])))},$e=a=>{const{extension:c}=a;return e(J,{extension:c},e(w,{name:n.getString("value"),value:c.value.value}))},Pe=a=>{var c;const{extension:t}=a;return e(J,{extension:t},null===(c=t.value.distributionPoint)||void 0===c?void 0:c.fullName.map((n=>e(F,Object.assign({generalName:n},a)))),t.value.onlySomeReasons&&e(w,{name:n.getString("onlyReasons"),value:t.value.onlySomeReasons.toJSON().join(", ")}),t.value.indirectCRL&&e(w,{name:n.getString("indirectCRL"),value:n.getString("yes")}),t.value.onlyContainsUserCerts&&e(w,{name:n.getString("onlyUserCertificates"),value:n.getString("yes")}),t.value.onlyContainsAttributeCerts&&e(w,{name:n.getString("onlyAttributeCertificates"),value:n.getString("yes")}),t.value.onlyContainsCACerts&&e(w,{name:n.getString("onlyCACertificates"),value:n.getString("yes")}))},Le=a=>{const{extensions:n,title:c}=a;return n&&n.length?[e(B,{value:c||"Extensions"}),n.map((n=>{try{return n.value instanceof l?e(Z,{extension:n}):n.value instanceof u?e(ee,{extension:n}):n.value instanceof m?e(ae,{extension:n}):n.value instanceof v?e(ne,Object.assign({extension:n},a)):n.value instanceof x?e(ce,Object.assign({extension:n},a)):n.value instanceof g?e(te,Object.assign({extension:n},a)):n.value instanceof p||n.value instanceof y?e(oe,Object.assign({extension:n},a)):n.value instanceof C?e(se,Object.assign({extension:n},a)):n.value instanceof h?e(fe,{extension:n}):n.value instanceof N?e(de,{extension:n}):n.value instanceof S?e(be,Object.assign({extension:n},a)):n.value instanceof A?e(re,{extension:n}):n.value instanceof D?e(le,{extension:n}):n.value instanceof I?e(ue,{extension:n}):n.value instanceof G?e(me,{extension:n}):n.value instanceof j?e(ve,{extension:n}):n.value instanceof T?e(xe,{extension:n}):n.value instanceof O?e(ge,{extension:n}):n.value instanceof k?e(pe,Object.assign({extension:n},a)):n.value instanceof $?e(ye,Object.assign({extension:n},a)):n.value instanceof P?e(Ce,{extension:n}):n.value instanceof L?e(he,{extension:n}):n.value instanceof V?e(Se,{extension:n}):n.value instanceof R?e(De,{extension:n}):n.value instanceof U?e(Ie,{extension:n}):n.value instanceof E?e(Ge,{extension:n}):n.value instanceof K?e(je,{extension:n}):n.value instanceof H?e(Te,{extension:n}):n.value instanceof X?e(Oe,{extension:n}):n.value instanceof M?e(ke,{extension:n}):n.value instanceof Y?e($e,{extension:n}):n.value instanceof _?e(Pe,Object.assign({extension:n},a)):e("string"==typeof n.value?Ae:J,{extension:n})}catch(e){return console.error("Error render extension:",n.asn.extnID),null}}))]:null},Ve=a=>{const{serialNumber:t,version:o,validity:s,notBefore:f,notAfter:i,lastUpdate:d,nextUpdate:b,type:r}=a;return[e(B,{value:n.getString("basicInformation")}),e(w,{name:n.getString("type"),value:r}),e(w,{name:n.getString("serialNumber"),value:t,monospace:!0}),e(w,{name:n.getString("version"),value:o}),e(w,{name:n.getString("validity"),value:s}),e(w,{name:n.getString("issued"),value:f?c(f):void 0}),e(w,{name:n.getString("expired"),value:i?c(i):void 0}),e(w,{name:n.getString("lastUpdate"),value:d?c(d):void 0}),e(w,{name:n.getString("nextUpdate"),value:b?c(b):void 0})]},Re=a=>{const{certificate:c}=a;return[e(B,{value:n.getString("miscellaneous")}),e("tr",null,e("td",{class:"vertical_align_middle"},e("peculiar-typography",{color:"grey_5"},n.getString("download"),":")),e("td",null,e("peculiar-button-split",{onClick:()=>c.downloadAsPEM(),actions:[{text:n.getString("download.der"),onClick:()=>c.downloadAsDER()}]},n.getString("download.pem"))))]},Ue=e=>`https://search.gleif.org/#/record/${e}`,Ee=e=>`https://search.censys.io/search?resource=hosts&q=dns.names%3A${e}`,Ke=e=>`https://search.censys.io/search?resource=hosts&q=ip%3A${e}`
|
|
42
42
|
/**
|
|
43
43
|
* @license
|
|
44
44
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,c as i,h as e,H as s}from"./p-f7683ba5.js";import{i as o,a as r,b as a,c,d as n}from"./p-
|
|
4
|
+
import{r as t,c as i,h as e,H as s}from"./p-f7683ba5.js";import{i as o,a as r,b as a,c,d as n}from"./p-3a4556ef.js";import"./p-fec9d812.js";import"./p-cff9655c.js";import{X as l}from"./p-c9f01b83.js";import{X as p,C as h,a as f}from"./p-7321a8d6.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/function
|
|
11
|
+
*/function d(t){return new Promise(((i,e)=>{const s=new FileReader;s.onload=()=>i({value:s.result,fileName:t.name,fileSize:t.size,sourceMime:t.type}),s.onerror=()=>e(s.error),s.readAsBinaryString(t)}))}const u=class{constructor(e){t(this,e),this.successParse=i(this,"successParse",7),this.clearCertificate=i(this,"clearCertificate",7),this.onClickDecode=()=>{const{value:t}=this.inputPaste;t&&this.decode(t)},this.onClickExample=()=>{this.decode(this.certificateExample)},this.onClickClear=()=>{this.clearValue()},this.onChangeInputFile=async t=>{const i=t.target;if(i.files){const t=await d(i.files[0]);"string"==typeof t.value&&this.decode(t.value),i.value=""}},this.onDropFile=async t=>{t.stopPropagation(),t.preventDefault();const i=t.dataTransfer;if(i.files){const t=await d(i.files[0]);"string"==typeof t.value&&this.decode(t.value)}}}componentDidLoad(){this.defaultCertificate&&setTimeout((()=>this.decode(this.defaultCertificate)),100)}clearValue(){this.inputPaste.value="",this.certificateDecoded=null,this.clearCertificate.emit()}setValue(t){this.certificateDecoded=t,this.inputPaste.value=t.exportAsPemFormatted(),this.successParse.emit(t.exportAsBase64())}decode(t){const i=o(t),e=r(t),s=a(t),d=c(t),u=n(t);let b,w;if(i&&!(e||d||s||u))return this.clearValue(),void alert("Unsupported file type. Please try to use Certificate/AttributeCertificate/CertificateRequest/CRL.");try{e&&(b=new l(t)),d&&(b=new p(t)),s&&(b=new h(t)),u&&(b=new f(t))}catch(t){w=t}if(!b)try{b=new l(t)}catch(t){w=t}if(!b)try{b=new p(t)}catch(t){w=t}if(!b)try{b=new h(t)}catch(t){w=t}if(!b)try{b=new f(t)}catch(t){w=t}b?this.setValue(b):(this.clearValue(),console.log(w),alert("Error decoding file. Please try to use Certificate/AttributeCertificate/CertificateRequest/CRL."))}render(){return e(s,null,e("textarea",{placeholder:"Certificate DER or PEM",class:"textarea",ref:t=>{this.inputPaste=t},onDrop:this.onDropFile}),e("div",{class:"controls"},e("peculiar-button",{fill:"fill",class:"button",onClick:this.onClickDecode},"Decode"),e("peculiar-button",{class:"button"},"Choose file",e("input",{type:"file",class:"input_file",accept:"application/pkix-cert,application/x-x509-ca-cert,application/x-x509-user-cert,application/pkcs10,application/pkix-crl,.csr,.req,.crl",onChange:this.onChangeInputFile,value:""})),e("peculiar-button",{class:"button",onClick:this.onClickClear},"Clear"),this.certificateExample&&e("peculiar-button",{class:"button",onClick:this.onClickExample},"Example")),this.certificateDecoded instanceof l&&e("peculiar-certificate-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}),this.certificateDecoded instanceof p&&e("peculiar-attribute-certificate-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}),this.certificateDecoded instanceof h&&e("peculiar-csr-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}),this.certificateDecoded instanceof f&&e("peculiar-crl-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}))}};u.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:block;width:100%;font-size:0}.textarea{min-height:300px;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:14px;font-family:monospace;resize:vertical;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);font-size:14px;font-size:var(--pv-font-size-h7)}.controls{margin-top:10px}.button{position:relative}.button:not(:first-child){margin-left:10px}.viewer{margin-top:64px}.input_file{opacity:0;width:100%;height:100%;top:0;left:0;display:block;position:absolute}";export{u as peculiar_certificate_decoder}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as i,H as e}from"./p-f7683ba5.js";import{X as a}from"./p-
|
|
4
|
+
import{r as t,h as i,H as e}from"./p-f7683ba5.js";import{X as a}from"./p-c9f01b83.js";import"./p-3a4556ef.js";import"./p-cff9655c.js";import"./p-fec9d812.js";import{B as r,e as d,I as s,P as o,S as n,T as l,E as p,b as h,c,d as b,M as g}from"./p-1b11aa24.js";const x=class{constructor(i){t(this,i),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>{var i;return null===(i=this.authKeyIdParentLink)||void 0===i?void 0:i.replace("{{authKeyId}}",t)},this.getAuthKeyIdSiblingsLink=t=>{var i;return null===(i=this.authKeyIdSiblingsLink)||void 0===i?void 0:i.replace("{{authKeyId}}",t)},this.getSubjectKeyIdChildrenLink=t=>{var i;return null===(i=this.subjectKeyIdChildrenLink)||void 0===i?void 0:i.replace("{{subjectKeyId}}",t)},this.getSubjectKeyIdSiblingsLink=t=>{var i;return null===(i=this.subjectKeyIdSiblingsLink)||void 0===i?void 0:i.replace("{{subjectKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof a)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new a(t)}this.certificateDecoded.parseExtensions(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}watchCertificateAndDecode(t,i){"string"!=typeof t||"string"!=typeof i?t instanceof a&&i instanceof a&&t.serialNumber!==i.serialNumber&&this.decodeCertificate(t):t!==i&&this.decodeCertificate(t)}getIssuerDnLink(){return this.issuerDnLink}renderErrorState(){return i("div",{class:"status_wrapper"},i("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate."))}renderEmptyState(){return i("div",{class:"status_wrapper"},i("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?i(e,{"data-view":this.view},i("table",null,i(r,Object.assign({},this.certificateDecoded)),i(d,{name:this.certificateDecoded.subject}),i(s,{name:this.certificateDecoded.issuer,issuerDnLink:this.getIssuerDnLink()}),i(o,{publicKey:this.certificateDecoded.publicKey}),i(n,{signature:this.certificateDecoded.signature}),i(l,{thumbprints:this.certificateDecoded.thumbprints}),i(p,{extensions:this.certificateDecoded.extensions,getLEILink:h,getDNSNameLink:c,getIPAddressLink:b,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&i(g,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};x.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";export{x as peculiar_certificate_viewer}
|
|
@@ -84,4 +84,4 @@ class vn extends gn{constructor(e){super(e,Zi);const i=this.getAsnExtnValue();tr
|
|
|
84
84
|
*
|
|
85
85
|
* This source code is licensed under the MIT license found in the
|
|
86
86
|
* LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/class En{constructor(){this.providers=new Map;const t=window.crypto||window.msCrypto;void 0!==t&&this.set(En.DEFAULT,t)}static isCryptoKeyPair(t){return t&&t.privateKey&&t.publicKey}get(t=En.DEFAULT){const e=this.providers.get(t.toLowerCase());if(!e)throw new Error(`Cannot get Crypto by name '${t}'`);return e}set(t,e){if("string"==typeof t){if(!e)throw new TypeError("Argument 'value' is required");this.providers.set(t.toLowerCase(),e)}else this.providers.set(En.DEFAULT,t);return this}}En.DEFAULT="default";const wn=new En,Pn=/-----BEGIN [^-]+-----([A-Za-z0-9+/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+/=\s]+)====/,bn=t=>t.replace(/(.{32})/g,"$1\n").replace(/(.{4})/g,"$1 ").trim(),Dn=t=>t.replace(/(.{64})/g,"$1\n"),In=e=>{const i=(t=>{const e=Pn.exec(t);return e?e[1]||e[2]:t})(e);let s;return s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(i)?t.Convert.FromHex(i):(t=>{try{return window.atob(t),!0}catch(t){return!1}})(i)||r(i)?t.Convert.FromBase64(i):t.Convert.FromBinary(e),s},Bn=async(t,e)=>{const i=wn.get();if(i.subtle)return i.subtle.digest(t,e)};class Tn{constructor(t={}){this.acIssuer=new je,this.acSerial=0,this.attrs=[],Object.assign(this,t)}}var xn;Ee([Se({type:je})],Tn.prototype,"acIssuer",void 0),Ee([Se({type:Kt.Integer})],Tn.prototype,"acSerial",void 0),Ee([Se({type:Mi,repeated:"sequence"})],Tn.prototype,"attrs",void 0);let On=xn=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,xn.prototype)}};On=xn=Ee([fe({type:Mt.Sequence,itemType:Kt.ObjectIdentifier})],On);class Rn{constructor(t={}){this.permitUnSpecified=!0,Object.assign(this,t)}}Ee([Se({type:Kt.Integer,optional:!0})],Rn.prototype,"pathLenConstraint",void 0),Ee([Se({type:On,implicit:!0,context:0,optional:!0})],Rn.prototype,"permittedAttrs",void 0),Ee([Se({type:On,implicit:!0,context:1,optional:!0})],Rn.prototype,"excludedAttrs",void 0),Ee([Se({type:Kt.Boolean,defaultValue:!0})],Rn.prototype,"permitUnSpecified",void 0);class Nn{constructor(t={}){this.issuer=new We,this.serial=new ArrayBuffer(0),this.issuerUID=new ArrayBuffer(0),Object.assign(this,t)}}var kn;Ee([Se({type:We})],Nn.prototype,"issuer",void 0),Ee([Se({type:Kt.Integer,converter:Vt})],Nn.prototype,"serial",void 0),Ee([Se({type:Kt.BitString,optional:!0})],Nn.prototype,"issuerUID",void 0),function(t){t[t.publicKey=0]="publicKey",t[t.publicKeyCert=1]="publicKeyCert",t[t.otherObjectTypes=2]="otherObjectTypes"}(kn||(kn={}));class Mn{constructor(t={}){this.digestedObjectType=kn.publicKey,this.digestAlgorithm=new Qi,this.objectDigest=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.Enumerated})],Mn.prototype,"digestedObjectType",void 0),Ee([Se({type:Kt.ObjectIdentifier,optional:!0})],Mn.prototype,"otherObjectTypeID",void 0),Ee([Se({type:Qi})],Mn.prototype,"digestAlgorithm",void 0),Ee([Se({type:Kt.BitString})],Mn.prototype,"objectDigest",void 0);class Kn{constructor(t={}){Object.assign(this,t)}}Ee([Se({type:We,optional:!0})],Kn.prototype,"issuerName",void 0),Ee([Se({type:Nn,context:0,implicit:!0,optional:!0})],Kn.prototype,"baseCertificateID",void 0),Ee([Se({type:Mn,context:1,implicit:!0,optional:!0})],Kn.prototype,"objectDigestInfo",void 0);let jn=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:je,repeated:"sequence"})],jn.prototype,"v1Form",void 0),Ee([Se({type:Kn,context:0,implicit:!0})],jn.prototype,"v2Form",void 0),jn=Ee([fe({type:Mt.Choice})],jn);class Hn{constructor(t={}){this.notBeforeTime=new Date,this.notAfterTime=new Date,Object.assign(this,t)}}Ee([Se({type:Kt.GeneralizedTime})],Hn.prototype,"notBeforeTime",void 0),Ee([Se({type:Kt.GeneralizedTime})],Hn.prototype,"notAfterTime",void 0);class _n{constructor(t={}){Object.assign(this,t)}}var Un,Fn,Vn;Ee([Se({type:Nn,implicit:!0,context:0,optional:!0})],_n.prototype,"baseCertificateID",void 0),Ee([Se({type:We,implicit:!0,context:1,optional:!0})],_n.prototype,"entityName",void 0),Ee([Se({type:Mn,implicit:!0,context:2,optional:!0})],_n.prototype,"objectDigestInfo",void 0),function(t){t[t.v2=1]="v2"}(Un||(Un={}));class Ln{constructor(t={}){this.version=Un.v2,this.holder=new _n,this.issuer=new jn,this.signature=new Qi,this.serialNumber=new ArrayBuffer(0),this.attrCertValidityPeriod=new Hn,this.attributes=[],Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Ln.prototype,"version",void 0),Ee([Se({type:_n})],Ln.prototype,"holder",void 0),Ee([Se({type:jn})],Ln.prototype,"issuer",void 0),Ee([Se({type:Qi})],Ln.prototype,"signature",void 0),Ee([Se({type:Kt.Integer,converter:Vt})],Ln.prototype,"serialNumber",void 0),Ee([Se({type:Hn})],Ln.prototype,"attrCertValidityPeriod",void 0),Ee([Se({type:Mi,repeated:"sequence"})],Ln.prototype,"attributes",void 0),Ee([Se({type:Kt.BitString,optional:!0})],Ln.prototype,"issuerUniqueID",void 0),Ee([Se({type:Xi,optional:!0})],Ln.prototype,"extensions",void 0);class Gn{constructor(t={}){this.acinfo=new Ln,this.signatureAlgorithm=new Qi,this.signatureValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Ln})],Gn.prototype,"acinfo",void 0),Ee([Se({type:Qi})],Gn.prototype,"signatureAlgorithm",void 0),Ee([Se({type:Kt.BitString})],Gn.prototype,"signatureValue",void 0),function(t){t[t.unmarked=1]="unmarked",t[t.unclassified=2]="unclassified",t[t.restricted=4]="restricted",t[t.confidential=8]="confidential",t[t.secret=16]="secret",t[t.topSecret=32]="topSecret"}(Fn||(Fn={}));class $n extends jt{}class Qn{constructor(t={}){this.type="",this.value=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier,implicit:!0,context:0})],Qn.prototype,"type",void 0),Ee([Se({type:Kt.Any,implicit:!0,context:1})],Qn.prototype,"value",void 0);class Wn{constructor(t={}){this.policyId="",this.classList=new $n(Fn.unclassified),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Wn.prototype,"policyId",void 0),Ee([Se({type:$n,defaultValue:new $n(Fn.unclassified)})],Wn.prototype,"classList",void 0),Ee([Se({type:Qn,repeated:"set"})],Wn.prototype,"securityCategories",void 0);class qn{constructor(t={}){Object.assign(this,t)}}Ee([Se({type:Ht})],qn.prototype,"cotets",void 0),Ee([Se({type:Kt.ObjectIdentifier})],qn.prototype,"oid",void 0),Ee([Se({type:Kt.Utf8String})],qn.prototype,"string",void 0);class zn{constructor(t={}){this.values=[],Object.assign(this,t)}}Ee([Se({type:We,implicit:!0,context:0,optional:!0})],zn.prototype,"policyAuthority",void 0),Ee([Se({type:qn,repeated:"sequence"})],zn.prototype,"values",void 0);class Jn{constructor(t={}){this.targetCertificate=new Nn,Object.assign(this,t)}}Ee([Se({type:Nn})],Jn.prototype,"targetCertificate",void 0),Ee([Se({type:je,optional:!0})],Jn.prototype,"targetName",void 0),Ee([Se({type:Mn,optional:!0})],Jn.prototype,"certDigestInfo",void 0);let Zn=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:je,context:0,implicit:!0})],Zn.prototype,"targetName",void 0),Ee([Se({type:je,context:1,implicit:!0})],Zn.prototype,"targetGroup",void 0),Ee([Se({type:Jn,context:2,implicit:!0})],Zn.prototype,"targetCert",void 0),Zn=Ee([fe({type:Mt.Choice})],Zn);let Xn=Vn=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Vn.prototype)}};var Yn;Xn=Vn=Ee([fe({type:Mt.Sequence,itemType:Zn})],Xn);let to=Yn=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Yn.prototype)}};to=Yn=Ee([fe({type:Mt.Sequence,itemType:Xn})],to);class eo{constructor(t={}){Object.assign(this,t)}}Ee([Se({type:We,implicit:!0,context:0,optional:!0})],eo.prototype,"roleAuthority",void 0),Ee([Se({type:je,implicit:!0,context:1})],eo.prototype,"roleName",void 0);class io{constructor(t={}){this.service=new je,this.ident=new je,Object.assign(this,t)}}Ee([Se({type:je})],io.prototype,"service",void 0),Ee([Se({type:je})],io.prototype,"ident",void 0),Ee([Se({type:Ht,optional:!0})],io.prototype,"authInfo",void 0);const ro="0.4.0.9496.6";let so=class{constructor(t={}){this.codeAuthority=new je,this.codeId=new je,this.shortName="",this.shortDescription="",Object.assign(this,t)}};Ee([Se({type:je,context:0})],so.prototype,"codeAuthority",void 0),Ee([Se({type:je,context:1})],so.prototype,"codeId",void 0),Ee([Se({type:Kt.Utf8String,context:2})],so.prototype,"shortName",void 0),Ee([Se({type:Kt.Utf8String,context:3})],so.prototype,"shortDescription",void 0),so=Ee([fe({type:Mt.Sequence})],so);let no=class extends Ne{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};no=Ee([fe({type:Mt.Sequence})],no);const oo="0.4.0.9496.1";let ao=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};ao=Ee([fe({type:Mt.Sequence})],ao);const co="0.4.0.9496.2";let lo=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};lo=Ee([fe({type:Mt.Sequence})],lo);const uo="0.4.0.9496.3";let ho=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};ho=Ee([fe({type:Mt.Sequence})],ho);const po="0.4.0.9496.4";let yo=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};yo=Ee([fe({type:Mt.Sequence})],yo);const fo="0.4.0.9496.8";let So=class{constructor(t={}){this.location="",this.base=0,this.degree=0,Object.assign(this,t)}toString(){return`${this.base} x 10^${this.degree} ${this.location}`}};Ee([Se({type:Kt.PrintableString})],So.prototype,"location",void 0),Ee([Se({type:Kt.Integer})],So.prototype,"base",void 0),Ee([Se({type:Kt.Integer})],So.prototype,"degree",void 0),So=Ee([fe({type:Mt.Sequence})],So);const Co="0.4.0.9496.9";let Ao=class{constructor(t={}){this.stars5=0,this.stars4=0,this.stars3=0,this.stars2=0,this.stars1=0,Object.assign(this,t)}};Ee([Se({type:Kt.Integer})],Ao.prototype,"stars5",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars4",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars3",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars2",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars1",void 0),Ao=Ee([fe({type:Mt.Sequence})],Ao);const mo="0.4.0.9496.5";let go=class{constructor(t={}){this.DNBvsDNO=new jt(0),this.DNBvsDNT=new jt(0),this.DNOvsDNT=new jt(0),Object.assign(this,t)}};Ee([Se({type:jt,context:0})],go.prototype,"DNBvsDNO",void 0),Ee([Se({type:jt,context:1})],go.prototype,"DNBvsDNT",void 0),Ee([Se({type:jt,context:2})],go.prototype,"DNOvsDNT",void 0),go=Ee([fe({type:Mt.Sequence})],go);const vo="0.4.0.9496.7";let Eo=class{constructor(t={}){this.assessmentAuthority=new je,this.assessmentRef=new je,this.assessmentLocation=new je,this.dataStorageTerritory="",this.description="",Object.assign(this,t)}};Ee([Se({type:je,context:0})],Eo.prototype,"assessmentAuthority",void 0),Ee([Se({type:je,context:1})],Eo.prototype,"assessmentRef",void 0),Ee([Se({type:je,context:2})],Eo.prototype,"assessmentLocation",void 0),Ee([Se({type:Kt.PrintableString,context:3})],Eo.prototype,"dataStorageTerritory",void 0),Ee([Se({type:Kt.Utf8String,context:4})],Eo.prototype,"description",void 0),Eo=Ee([fe({type:Mt.Sequence})],Eo);class wo{constructor(t={}){this.attrType="",this.attrValues=[],Object.assign(this,t)}}var Po;Ee([Se({type:Kt.ObjectIdentifier})],wo.prototype,"attrType",void 0),Ee([Se({type:Kt.Any,repeated:"set"})],wo.prototype,"attrValues",void 0);class bo{constructor(t={}){this.otherCertFormat="",this.otherCert=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],bo.prototype,"otherCertFormat",void 0),Ee([Se({type:Kt.Any})],bo.prototype,"otherCert",void 0);let Do=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:er})],Do.prototype,"certificate",void 0),Ee([Se({type:Gn,context:2,implicit:!0})],Do.prototype,"v2AttrCert",void 0),Ee([Se({type:bo,context:3,implicit:!0})],Do.prototype,"other",void 0),Do=Ee([fe({type:Mt.Choice})],Do);let Io=Po=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Po.prototype)}};Io=Po=Ee([fe({type:Mt.Set,itemType:Do})],Io);class Bo{constructor(t={}){this.contentType="",this.content=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Bo.prototype,"contentType",void 0),Ee([Se({type:Kt.Any,context:0})],Bo.prototype,"content",void 0);let To=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Ht})],To.prototype,"single",void 0),Ee([Se({type:Kt.Any})],To.prototype,"any",void 0),To=Ee([fe({type:Mt.Choice})],To);class xo{constructor(t={}){this.eContentType="",Object.assign(this,t)}}var Oo;Ee([Se({type:Kt.ObjectIdentifier})],xo.prototype,"eContentType",void 0),Ee([Se({type:To,context:0,optional:!0})],xo.prototype,"eContent",void 0),function(t){t[t.v0=0]="v0",t[t.v1=1]="v1",t[t.v2=2]="v2",t[t.v3=3]="v3",t[t.v4=4]="v4",t[t.v5=5]="v5"}(Oo||(Oo={}));let Ro=class extends Qi{};Ro=Ee([fe({type:Mt.Sequence})],Ro);let No=class extends Qi{};No=Ee([fe({type:Mt.Sequence})],No);let ko=class extends Qi{};ko=Ee([fe({type:Mt.Sequence})],ko);let Mo=class extends Qi{};Mo=Ee([fe({type:Mt.Sequence})],Mo);let Ko=class extends Qi{};Ko=Ee([fe({type:Mt.Sequence})],Ko);let jo=class extends Qi{};jo=Ee([fe({type:Mt.Sequence})],jo);let Ho=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Ht,context:0,implicit:!0,optional:!0})],Ho.prototype,"value",void 0),Ee([Se({type:Ht,converter:Wt,context:0,implicit:!0,optional:!0,repeated:"sequence"})],Ho.prototype,"constructedValue",void 0),Ho=Ee([fe({type:Mt.Choice})],Ho);class _o{constructor(t={}){this.contentType="",this.contentEncryptionAlgorithm=new Mo,Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],_o.prototype,"contentType",void 0),Ee([Se({type:Mo})],_o.prototype,"contentEncryptionAlgorithm",void 0),Ee([Se({type:Ho,optional:!0})],_o.prototype,"encryptedContent",void 0);class Uo{constructor(t={}){this.issuer=new Ne,this.serialNumber=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Ne})],Uo.prototype,"issuer",void 0),Ee([Se({type:Kt.Integer,converter:Vt})],Uo.prototype,"serialNumber",void 0);class Fo{constructor(t={}){this.keyAttrId="",Object.assign(this,t)}}var Vo;Ee([Se({type:Kt.ObjectIdentifier})],Fo.prototype,"keyAttrId",void 0),Ee([Se({type:Kt.Any,optional:!0})],Fo.prototype,"keyAttr",void 0);class Lo{constructor(t={}){this.subjectKeyIdentifier=new Hi,Object.assign(this,t)}}Ee([Se({type:Hi})],Lo.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Kt.GeneralizedTime,optional:!0})],Lo.prototype,"date",void 0),Ee([Se({type:Fo,optional:!0})],Lo.prototype,"other",void 0);let Go=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Lo,context:0,implicit:!0,optional:!0})],Go.prototype,"rKeyId",void 0),Ee([Se({type:Uo,optional:!0})],Go.prototype,"issuerAndSerialNumber",void 0),Go=Ee([fe({type:Mt.Choice})],Go);class $o{constructor(t={}){this.rid=new Go,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Go})],$o.prototype,"rid",void 0),Ee([Se({type:Ht})],$o.prototype,"encryptedKey",void 0);let Qo=Vo=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Vo.prototype)}};Qo=Vo=Ee([fe({type:Mt.Sequence,itemType:$o})],Qo);class Wo{constructor(t={}){this.algorithm=new Qi,this.publicKey=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Qi})],Wo.prototype,"algorithm",void 0),Ee([Se({type:Kt.BitString})],Wo.prototype,"publicKey",void 0);let qo=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Hi,context:0,implicit:!0,optional:!0})],qo.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Wo,context:1,implicit:!0,optional:!0})],qo.prototype,"originatorKey",void 0),Ee([Se({type:Uo,optional:!0})],qo.prototype,"issuerAndSerialNumber",void 0),qo=Ee([fe({type:Mt.Choice})],qo);class zo{constructor(t={}){this.version=Oo.v3,this.originator=new qo,this.keyEncryptionAlgorithm=new ko,this.recipientEncryptedKeys=new Qo,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],zo.prototype,"version",void 0),Ee([Se({type:qo,context:0})],zo.prototype,"originator",void 0),Ee([Se({type:Ht,context:1,optional:!0})],zo.prototype,"ukm",void 0),Ee([Se({type:ko})],zo.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Qo})],zo.prototype,"recipientEncryptedKeys",void 0);let Jo=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Hi,context:0,implicit:!0})],Jo.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Uo})],Jo.prototype,"issuerAndSerialNumber",void 0),Jo=Ee([fe({type:Mt.Choice})],Jo);class Zo{constructor(t={}){this.version=Oo.v0,this.rid=new Jo,this.keyEncryptionAlgorithm=new ko,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Zo.prototype,"version",void 0),Ee([Se({type:Jo})],Zo.prototype,"rid",void 0),Ee([Se({type:ko})],Zo.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Ht})],Zo.prototype,"encryptedKey",void 0);class Xo{constructor(t={}){this.keyIdentifier=new Ht,Object.assign(this,t)}}Ee([Se({type:Ht})],Xo.prototype,"keyIdentifier",void 0),Ee([Se({type:Kt.GeneralizedTime,optional:!0})],Xo.prototype,"date",void 0),Ee([Se({type:Fo,optional:!0})],Xo.prototype,"other",void 0);class Yo{constructor(t={}){this.version=Oo.v4,this.kekid=new Xo,this.keyEncryptionAlgorithm=new ko,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Yo.prototype,"version",void 0),Ee([Se({type:Xo})],Yo.prototype,"kekid",void 0),Ee([Se({type:ko})],Yo.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Ht})],Yo.prototype,"encryptedKey",void 0);class ta{constructor(t={}){this.version=Oo.v0,this.keyEncryptionAlgorithm=new ko,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],ta.prototype,"version",void 0),Ee([Se({type:jo,context:0,optional:!0})],ta.prototype,"keyDerivationAlgorithm",void 0),Ee([Se({type:ko})],ta.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Ht})],ta.prototype,"encryptedKey",void 0);class ea{constructor(t={}){this.oriType="",this.oriValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],ea.prototype,"oriType",void 0),Ee([Se({type:Kt.Any})],ea.prototype,"oriValue",void 0);let ia=class{constructor(t={}){Object.assign(this,t)}};var ra;Ee([Se({type:Zo,optional:!0})],ia.prototype,"ktri",void 0),Ee([Se({type:zo,context:1,implicit:!0,optional:!0})],ia.prototype,"kari",void 0),Ee([Se({type:Yo,context:2,implicit:!0,optional:!0})],ia.prototype,"kekri",void 0),Ee([Se({type:ta,context:3,implicit:!0,optional:!0})],ia.prototype,"pwri",void 0),Ee([Se({type:ea,context:4,implicit:!0,optional:!0})],ia.prototype,"ori",void 0),ia=Ee([fe({type:Mt.Choice})],ia);let sa=ra=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ra.prototype)}};var na;sa=ra=Ee([fe({type:Mt.Set,itemType:ia})],sa);class oa{constructor(t={}){this.otherRevInfoFormat="",this.otherRevInfo=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],oa.prototype,"otherRevInfoFormat",void 0),Ee([Se({type:Kt.Any})],oa.prototype,"otherRevInfo",void 0);let aa=class{constructor(t={}){this.other=new oa,Object.assign(this,t)}};Ee([Se({type:oa,context:1,implicit:!0})],aa.prototype,"other",void 0),aa=Ee([fe({type:Mt.Choice})],aa);let ca=na=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,na.prototype)}};ca=na=Ee([fe({type:Mt.Set,itemType:aa})],ca);class la{constructor(t={}){Object.assign(this,t)}}var ua;Ee([Se({type:Io,context:0,implicit:!0,optional:!0})],la.prototype,"certs",void 0),Ee([Se({type:ca,context:1,implicit:!0,optional:!0})],la.prototype,"crls",void 0);let ha=ua=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ua.prototype)}};ha=ua=Ee([fe({type:Mt.Set,itemType:wo})],ha);class pa{constructor(t={}){this.version=Oo.v0,this.recipientInfos=new sa,this.encryptedContentInfo=new _o,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],pa.prototype,"version",void 0),Ee([Se({type:la,context:0,implicit:!0,optional:!0})],pa.prototype,"originatorInfo",void 0),Ee([Se({type:sa})],pa.prototype,"recipientInfos",void 0),Ee([Se({type:_o})],pa.prototype,"encryptedContentInfo",void 0),Ee([Se({type:ha,context:1,implicit:!0,optional:!0})],pa.prototype,"unprotectedAttrs",void 0);let da=class{constructor(t={}){Object.assign(this,t)}};var ya;Ee([Se({type:Hi,context:0,implicit:!0})],da.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Uo})],da.prototype,"issuerAndSerialNumber",void 0),da=Ee([fe({type:Mt.Choice})],da);class fa{constructor(t={}){this.version=Oo.v0,this.sid=new da,this.digestAlgorithm=new Ro,this.signatureAlgorithm=new No,this.signature=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],fa.prototype,"version",void 0),Ee([Se({type:da})],fa.prototype,"sid",void 0),Ee([Se({type:Ro})],fa.prototype,"digestAlgorithm",void 0),Ee([Se({type:wo,repeated:"set",context:0,implicit:!0,optional:!0})],fa.prototype,"signedAttrs",void 0),Ee([Se({type:No})],fa.prototype,"signatureAlgorithm",void 0),Ee([Se({type:Ht})],fa.prototype,"signature",void 0),Ee([Se({type:wo,repeated:"set",context:1,implicit:!0,optional:!0})],fa.prototype,"unsignedAttrs",void 0);let Sa=ya=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ya.prototype)}};var Ca;Sa=ya=Ee([fe({type:Mt.Set,itemType:fa})],Sa);let Aa=Ca=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ca.prototype)}};Aa=Ca=Ee([fe({type:Mt.Set,itemType:Ro})],Aa);class ma{constructor(t={}){this.version=Oo.v0,this.digestAlgorithms=new Aa,this.encapContentInfo=new xo,this.signerInfos=new Sa,Object.assign(this,t)}}var ga;Ee([Se({type:Kt.Integer})],ma.prototype,"version",void 0),Ee([Se({type:Aa})],ma.prototype,"digestAlgorithms",void 0),Ee([Se({type:xo})],ma.prototype,"encapContentInfo",void 0),Ee([Se({type:Io,context:0,implicit:!0,optional:!0})],ma.prototype,"certificates",void 0),Ee([Se({type:aa,context:1,implicit:!0,optional:!0})],ma.prototype,"crls",void 0),Ee([Se({type:Sa})],ma.prototype,"signerInfos",void 0);class va{constructor(t={}){this.attrId="",this.attrValues=[],Object.assign(t)}}Ee([Se({type:Kt.ObjectIdentifier})],va.prototype,"attrId",void 0),Ee([Se({type:Kt.Any,repeated:"set"})],va.prototype,"attrValues",void 0);let Ea=ga=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ga.prototype)}};var wa;Ea=ga=Ee([fe({type:Mt.Sequence,itemType:va})],Ea);let Pa=wa=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,wa.prototype)}};Pa=wa=Ee([fe({type:Mt.Sequence,itemType:Bo})],Pa);class ba{constructor(t={}){this.certId="",this.certValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],ba.prototype,"certId",void 0),Ee([Se({type:Kt.Any,context:0})],ba.prototype,"certValue",void 0);class Da{constructor(t={}){this.crlId="",this.crltValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Da.prototype,"crlId",void 0),Ee([Se({type:Kt.Any,context:0})],Da.prototype,"crltValue",void 0);class Ia extends Ht{}class Ba{constructor(t={}){this.encryptionAlgorithm=new Qi,this.encryptedData=new Ia,Object.assign(this,t)}}var Ta,xa;Ee([Se({type:Qi})],Ba.prototype,"encryptionAlgorithm",void 0),Ee([Se({type:Ia})],Ba.prototype,"encryptedData",void 0),function(t){t[t.v1=0]="v1"}(xa||(xa={}));class Oa extends Ht{}let Ra=Ta=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ta.prototype)}};Ra=Ta=Ee([fe({type:Mt.Sequence,itemType:Mi})],Ra);class Na{constructor(t={}){this.version=xa.v1,this.privateKeyAlgorithm=new Qi,this.privateKey=new Oa,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Na.prototype,"version",void 0),Ee([Se({type:Qi})],Na.prototype,"privateKeyAlgorithm",void 0),Ee([Se({type:Oa})],Na.prototype,"privateKey",void 0),Ee([Se({type:Ra,implicit:!0,context:0,optional:!0})],Na.prototype,"attributes",void 0);let ka=class extends Na{};ka=Ee([fe({type:Mt.Sequence})],ka);let Ma=class extends Ba{};Ma=Ee([fe({type:Mt.Sequence})],Ma);class Ka{constructor(t={}){this.secretTypeId="",this.secretValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Ka.prototype,"secretTypeId",void 0),Ee([Se({type:Kt.Any,context:0})],Ka.prototype,"secretValue",void 0);class ja{constructor(t={}){this.mac=new Tr,this.macSalt=new Ht,this.iterations=1,Object.assign(this,t)}}Ee([Se({type:Tr})],ja.prototype,"mac",void 0),Ee([Se({type:Ht})],ja.prototype,"macSalt",void 0),Ee([Se({type:Kt.Integer,defaultValue:1})],ja.prototype,"iterations",void 0);class Ha{constructor(t={}){this.version=3,this.authSafe=new Bo,this.macData=new ja,Object.assign(this,t)}}var _a;Ee([Se({type:Kt.Integer})],Ha.prototype,"version",void 0),Ee([Se({type:Bo})],Ha.prototype,"authSafe",void 0),Ee([Se({type:ja,optional:!0})],Ha.prototype,"macData",void 0);class Ua{constructor(t={}){this.bagId="",this.bagValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Ua.prototype,"bagId",void 0),Ee([Se({type:Kt.Any,context:0})],Ua.prototype,"bagValue",void 0),Ee([Se({type:va,repeated:"set",optional:!0})],Ua.prototype,"bagAttributes",void 0);let Fa=_a=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,_a.prototype)}};var Va,La,Ga;Fa=_a=Ee([fe({type:Mt.Sequence,itemType:Ua})],Fa);const $a="1.2.840.113549.1.9",Qa=`${$a}.2`,Wa=`${$a}.7`,qa=`${$a}.14`;let za=class extends Be{constructor(t={}){super(t)}toString(){return{}.toString(),this.ia5String||super.toString()}};Ee([Se({type:Kt.IA5String})],za.prototype,"ia5String",void 0),za=Ee([fe({type:Mt.Choice})],za);let Ja=class extends Bo{};Ja=Ee([fe({type:Mt.Sequence})],Ja);let Za=class extends Ha{};Za=Ee([fe({type:Mt.Sequence})],Za);let Xa=class extends Ba{};Xa=Ee([fe({type:Mt.Sequence})],Xa);let Ya=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.IA5String})],Ya.prototype,"value",void 0),Ya=Ee([fe({type:Mt.Choice})],Ya);let tc=class extends za{};tc=Ee([fe({type:Mt.Choice})],tc);let ec=class extends Be{};ec=Ee([fe({type:Mt.Choice})],ec);let ic=class{constructor(t=new Date){this.value=t}};Ee([Se({type:Kt.GeneralizedTime})],ic.prototype,"value",void 0),ic=Ee([fe({type:Mt.Choice})],ic);let rc=class extends Be{};rc=Ee([fe({type:Mt.Choice})],rc);let sc=class{constructor(t="M"){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.PrintableString})],sc.prototype,"value",void 0),sc=Ee([fe({type:Mt.Choice})],sc);let nc=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.PrintableString})],nc.prototype,"value",void 0),nc=Ee([fe({type:Mt.Choice})],nc);let oc=class extends nc{};oc=Ee([fe({type:Mt.Choice})],oc);let ac=class extends Be{};ac=Ee([fe({type:Mt.Choice})],ac);let cc=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.ObjectIdentifier})],cc.prototype,"value",void 0),cc=Ee([fe({type:Mt.Choice})],cc);let lc=class extends qi{};lc=Ee([fe({type:Mt.Choice})],lc);let uc=class{constructor(t=0){this.value=t}toString(){return this.value.toString()}};Ee([Se({type:Kt.Integer})],uc.prototype,"value",void 0),uc=Ee([fe({type:Mt.Choice})],uc);let hc=class extends fa{};hc=Ee([fe({type:Mt.Sequence})],hc);let pc=class extends Be{};pc=Ee([fe({type:Mt.Choice})],pc);let dc=Va=class extends Xi{constructor(t){super(t),Object.setPrototypeOf(this,Va.prototype)}};dc=Va=Ee([fe({type:Mt.Sequence})],dc);let yc=La=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,La.prototype)}};yc=La=Ee([fe({type:Mt.Set,itemType:wo})],yc);let fc=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.BmpString})],fc.prototype,"value",void 0),fc=Ee([fe({type:Mt.Choice})],fc);let Sc=class extends Qi{};Sc=Ee([fe({type:Mt.Sequence})],Sc);let Cc=Ga=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ga.prototype)}};var Ac;Cc=Ga=Ee([fe({type:Mt.Sequence,itemType:Sc})],Cc);let mc=Ac=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ac.prototype)}};mc=Ac=Ee([fe({type:Mt.Sequence,itemType:Mi})],mc);class gc{constructor(t={}){this.version=0,this.subject=new Ne,this.subjectPKInfo=new Wi,this.attributes=new mc,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],gc.prototype,"version",void 0),Ee([Se({type:Ne})],gc.prototype,"subject",void 0),Ee([Se({type:Wi})],gc.prototype,"subjectPKInfo",void 0),Ee([Se({type:mc,implicit:!0,context:0})],gc.prototype,"attributes",void 0);class vc{constructor(t={}){this.certificationRequestInfo=new gc,this.signatureAlgorithm=new Qi,this.signature=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:gc})],vc.prototype,"certificationRequestInfo",void 0),Ee([Se({type:Qi})],vc.prototype,"signatureAlgorithm",void 0),Ee([Se({type:Kt.BitString})],vc.prototype,"signature",void 0);export{Ye as $,gn as A,po as B,er as C,yo as D,vn as E,uo as F,ho as G,co as H,So as I,lo as J,oo as K,ao as L,Gn as M,Ur as N,vc as O,sr as P,Kr as Q,kr as R,Ne as S,go as T,tc as U,Ao as V,Eo as W,Si as X,gi as Y,Me as Z,Ze as _,s as a,Ke as a0,Vt as a1,bi as a2,$e as a3,Ai as a4,Hi as a5,Ge as a6,hi as a7,Ve as a8,$i as a9,ki as aa,ri as ab,Ls as ac,Bi as ad,rs as ae,ns as af,os as ag,Xr as ah,Ts as ai,Bs as aj,Ms as ak,ks as al,$s as am,Gs as an,ji as ao,_i as ap,Li as aq,$r as ar,nn as as,fn as at,Ti as au,Ri as av,si as aw,yi as ax,o as b,a as c,n as d,In as e,ve as f,nr as g,ar as h,r as i,hr as j,bn as k,Dn as l,Bn as m,Mi as n,qa as o,Ae as p,dc as q,Qa as r,Wa as s,pc as t,Co as u,fo as v,vo as w,ro as x,so as y,mo as z}
|
|
87
|
+
*/class En{constructor(){this.providers=new Map;const t=window.crypto||window.msCrypto;void 0!==t&&this.set(En.DEFAULT,t)}static isCryptoKeyPair(t){return t&&t.privateKey&&t.publicKey}get(t=En.DEFAULT){const e=this.providers.get(t.toLowerCase());if(!e)throw new Error(`Cannot get Crypto by name '${t}'`);return e}set(t,e){if("string"==typeof t){if(!e)throw new TypeError("Argument 'value' is required");this.providers.set(t.toLowerCase(),e)}else this.providers.set(En.DEFAULT,t);return this}}En.DEFAULT="default";const wn=new En,Pn=/-----BEGIN [^-]+-----([A-Za-z0-9+/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+/=\s]+)====/,bn=t=>t.replace(/(.{32})/g,"$1\n").replace(/(.{4})/g,"$1 ").trim(),Dn=t=>t.replace(/(.{64})/g,"$1\n"),In=e=>{const i=(t=>{const e=Pn.exec(t);return e?e[1]||e[2]:t})(e);let s;return s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(i)?t.Convert.FromHex(i):(t=>{try{return window.atob(t),!0}catch(t){return!1}})(i)||r(i)?t.Convert.FromBase64(i):t.Convert.FromBinary(e),s},Bn=async(t,e)=>{const i=wn.get();if(i.subtle)return i.subtle.digest(t,e)};class Tn{constructor(t={}){this.acIssuer=new je,this.acSerial=0,this.attrs=[],Object.assign(this,t)}}var xn;Ee([Se({type:je})],Tn.prototype,"acIssuer",void 0),Ee([Se({type:Kt.Integer})],Tn.prototype,"acSerial",void 0),Ee([Se({type:Mi,repeated:"sequence"})],Tn.prototype,"attrs",void 0);let On=xn=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,xn.prototype)}};On=xn=Ee([fe({type:Mt.Sequence,itemType:Kt.ObjectIdentifier})],On);class Rn{constructor(t={}){this.permitUnSpecified=!0,Object.assign(this,t)}}Ee([Se({type:Kt.Integer,optional:!0})],Rn.prototype,"pathLenConstraint",void 0),Ee([Se({type:On,implicit:!0,context:0,optional:!0})],Rn.prototype,"permittedAttrs",void 0),Ee([Se({type:On,implicit:!0,context:1,optional:!0})],Rn.prototype,"excludedAttrs",void 0),Ee([Se({type:Kt.Boolean,defaultValue:!0})],Rn.prototype,"permitUnSpecified",void 0);class Nn{constructor(t={}){this.issuer=new We,this.serial=new ArrayBuffer(0),this.issuerUID=new ArrayBuffer(0),Object.assign(this,t)}}var kn;Ee([Se({type:We})],Nn.prototype,"issuer",void 0),Ee([Se({type:Kt.Integer,converter:Vt})],Nn.prototype,"serial",void 0),Ee([Se({type:Kt.BitString,optional:!0})],Nn.prototype,"issuerUID",void 0),function(t){t[t.publicKey=0]="publicKey",t[t.publicKeyCert=1]="publicKeyCert",t[t.otherObjectTypes=2]="otherObjectTypes"}(kn||(kn={}));class Mn{constructor(t={}){this.digestedObjectType=kn.publicKey,this.digestAlgorithm=new Qi,this.objectDigest=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.Enumerated})],Mn.prototype,"digestedObjectType",void 0),Ee([Se({type:Kt.ObjectIdentifier,optional:!0})],Mn.prototype,"otherObjectTypeID",void 0),Ee([Se({type:Qi})],Mn.prototype,"digestAlgorithm",void 0),Ee([Se({type:Kt.BitString})],Mn.prototype,"objectDigest",void 0);class Kn{constructor(t={}){Object.assign(this,t)}}Ee([Se({type:We,optional:!0})],Kn.prototype,"issuerName",void 0),Ee([Se({type:Nn,context:0,implicit:!0,optional:!0})],Kn.prototype,"baseCertificateID",void 0),Ee([Se({type:Mn,context:1,implicit:!0,optional:!0})],Kn.prototype,"objectDigestInfo",void 0);let jn=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:je,repeated:"sequence"})],jn.prototype,"v1Form",void 0),Ee([Se({type:Kn,context:0,implicit:!0})],jn.prototype,"v2Form",void 0),jn=Ee([fe({type:Mt.Choice})],jn);class Hn{constructor(t={}){this.notBeforeTime=new Date,this.notAfterTime=new Date,Object.assign(this,t)}}Ee([Se({type:Kt.GeneralizedTime})],Hn.prototype,"notBeforeTime",void 0),Ee([Se({type:Kt.GeneralizedTime})],Hn.prototype,"notAfterTime",void 0);class _n{constructor(t={}){Object.assign(this,t)}}var Un,Fn,Vn;Ee([Se({type:Nn,implicit:!0,context:0,optional:!0})],_n.prototype,"baseCertificateID",void 0),Ee([Se({type:We,implicit:!0,context:1,optional:!0})],_n.prototype,"entityName",void 0),Ee([Se({type:Mn,implicit:!0,context:2,optional:!0})],_n.prototype,"objectDigestInfo",void 0),function(t){t[t.v2=1]="v2"}(Un||(Un={}));class Ln{constructor(t={}){this.version=Un.v2,this.holder=new _n,this.issuer=new jn,this.signature=new Qi,this.serialNumber=new ArrayBuffer(0),this.attrCertValidityPeriod=new Hn,this.attributes=[],Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Ln.prototype,"version",void 0),Ee([Se({type:_n})],Ln.prototype,"holder",void 0),Ee([Se({type:jn})],Ln.prototype,"issuer",void 0),Ee([Se({type:Qi})],Ln.prototype,"signature",void 0),Ee([Se({type:Kt.Integer,converter:Vt})],Ln.prototype,"serialNumber",void 0),Ee([Se({type:Hn})],Ln.prototype,"attrCertValidityPeriod",void 0),Ee([Se({type:Mi,repeated:"sequence"})],Ln.prototype,"attributes",void 0),Ee([Se({type:Kt.BitString,optional:!0})],Ln.prototype,"issuerUniqueID",void 0),Ee([Se({type:Xi,optional:!0})],Ln.prototype,"extensions",void 0);class Gn{constructor(t={}){this.acinfo=new Ln,this.signatureAlgorithm=new Qi,this.signatureValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Ln})],Gn.prototype,"acinfo",void 0),Ee([Se({type:Qi})],Gn.prototype,"signatureAlgorithm",void 0),Ee([Se({type:Kt.BitString})],Gn.prototype,"signatureValue",void 0),function(t){t[t.unmarked=1]="unmarked",t[t.unclassified=2]="unclassified",t[t.restricted=4]="restricted",t[t.confidential=8]="confidential",t[t.secret=16]="secret",t[t.topSecret=32]="topSecret"}(Fn||(Fn={}));class $n extends jt{}class Qn{constructor(t={}){this.type="",this.value=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier,implicit:!0,context:0})],Qn.prototype,"type",void 0),Ee([Se({type:Kt.Any,implicit:!0,context:1})],Qn.prototype,"value",void 0);class Wn{constructor(t={}){this.policyId="",this.classList=new $n(Fn.unclassified),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Wn.prototype,"policyId",void 0),Ee([Se({type:$n,defaultValue:new $n(Fn.unclassified)})],Wn.prototype,"classList",void 0),Ee([Se({type:Qn,repeated:"set"})],Wn.prototype,"securityCategories",void 0);class qn{constructor(t={}){Object.assign(this,t)}}Ee([Se({type:Ht})],qn.prototype,"cotets",void 0),Ee([Se({type:Kt.ObjectIdentifier})],qn.prototype,"oid",void 0),Ee([Se({type:Kt.Utf8String})],qn.prototype,"string",void 0);class zn{constructor(t={}){this.values=[],Object.assign(this,t)}}Ee([Se({type:We,implicit:!0,context:0,optional:!0})],zn.prototype,"policyAuthority",void 0),Ee([Se({type:qn,repeated:"sequence"})],zn.prototype,"values",void 0);class Jn{constructor(t={}){this.targetCertificate=new Nn,Object.assign(this,t)}}Ee([Se({type:Nn})],Jn.prototype,"targetCertificate",void 0),Ee([Se({type:je,optional:!0})],Jn.prototype,"targetName",void 0),Ee([Se({type:Mn,optional:!0})],Jn.prototype,"certDigestInfo",void 0);let Zn=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:je,context:0,implicit:!0})],Zn.prototype,"targetName",void 0),Ee([Se({type:je,context:1,implicit:!0})],Zn.prototype,"targetGroup",void 0),Ee([Se({type:Jn,context:2,implicit:!0})],Zn.prototype,"targetCert",void 0),Zn=Ee([fe({type:Mt.Choice})],Zn);let Xn=Vn=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Vn.prototype)}};var Yn;Xn=Vn=Ee([fe({type:Mt.Sequence,itemType:Zn})],Xn);let to=Yn=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Yn.prototype)}};to=Yn=Ee([fe({type:Mt.Sequence,itemType:Xn})],to);class eo{constructor(t={}){Object.assign(this,t)}}Ee([Se({type:We,implicit:!0,context:0,optional:!0})],eo.prototype,"roleAuthority",void 0),Ee([Se({type:je,implicit:!0,context:1})],eo.prototype,"roleName",void 0);class io{constructor(t={}){this.service=new je,this.ident=new je,Object.assign(this,t)}}Ee([Se({type:je})],io.prototype,"service",void 0),Ee([Se({type:je})],io.prototype,"ident",void 0),Ee([Se({type:Ht,optional:!0})],io.prototype,"authInfo",void 0);const ro="0.4.0.9496.6";let so=class{constructor(t={}){this.codeAuthority=new je,this.codeId=new je,this.shortName="",this.shortDescription="",Object.assign(this,t)}};Ee([Se({type:je,context:0})],so.prototype,"codeAuthority",void 0),Ee([Se({type:je,context:1})],so.prototype,"codeId",void 0),Ee([Se({type:Kt.Utf8String,context:2})],so.prototype,"shortName",void 0),Ee([Se({type:Kt.Utf8String,context:3})],so.prototype,"shortDescription",void 0),so=Ee([fe({type:Mt.Sequence})],so);let no=class extends Ne{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};no=Ee([fe({type:Mt.Sequence})],no);const oo="0.4.0.9496.1";let ao=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};ao=Ee([fe({type:Mt.Sequence})],ao);const co="0.4.0.9496.2";let lo=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};lo=Ee([fe({type:Mt.Sequence})],lo);const uo="0.4.0.9496.3";let ho=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};ho=Ee([fe({type:Mt.Sequence})],ho);const po="0.4.0.9496.4";let yo=class extends no{constructor(t){super(t),Object.setPrototypeOf(this,Ne.prototype)}};yo=Ee([fe({type:Mt.Sequence})],yo);const fo="0.4.0.9496.8";let So=class{constructor(t={}){this.location="",this.base=0,this.degree=0,Object.assign(this,t)}toString(){return`${this.base} x 10^${this.degree} ${this.location}`}};Ee([Se({type:Kt.PrintableString})],So.prototype,"location",void 0),Ee([Se({type:Kt.Integer})],So.prototype,"base",void 0),Ee([Se({type:Kt.Integer})],So.prototype,"degree",void 0),So=Ee([fe({type:Mt.Sequence})],So);const Co="0.4.0.9496.9";let Ao=class{constructor(t={}){this.stars5=0,this.stars4=0,this.stars3=0,this.stars2=0,this.stars1=0,Object.assign(this,t)}};Ee([Se({type:Kt.Integer})],Ao.prototype,"stars5",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars4",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars3",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars2",void 0),Ee([Se({type:Kt.Integer})],Ao.prototype,"stars1",void 0),Ao=Ee([fe({type:Mt.Sequence})],Ao);const mo="0.4.0.9496.5";let go=class{constructor(t={}){this.DNBvsDNO=new jt(0),this.DNBvsDNT=new jt(0),this.DNOvsDNT=new jt(0),Object.assign(this,t)}};Ee([Se({type:jt,context:0})],go.prototype,"DNBvsDNO",void 0),Ee([Se({type:jt,context:1})],go.prototype,"DNBvsDNT",void 0),Ee([Se({type:jt,context:2})],go.prototype,"DNOvsDNT",void 0),go=Ee([fe({type:Mt.Sequence})],go);const vo="0.4.0.9496.7";let Eo=class{constructor(t={}){this.assessmentAuthority=new je,this.assessmentRef=new je,this.assessmentLocation=new je,this.dataStorageTerritory="",this.description="",Object.assign(this,t)}};Ee([Se({type:je,context:0})],Eo.prototype,"assessmentAuthority",void 0),Ee([Se({type:je,context:1})],Eo.prototype,"assessmentRef",void 0),Ee([Se({type:je,context:2})],Eo.prototype,"assessmentLocation",void 0),Ee([Se({type:Kt.PrintableString,context:3})],Eo.prototype,"dataStorageTerritory",void 0),Ee([Se({type:Kt.Utf8String,context:4})],Eo.prototype,"description",void 0),Eo=Ee([fe({type:Mt.Sequence})],Eo);class wo{constructor(t={}){this.attrType="",this.attrValues=[],Object.assign(this,t)}}var Po;Ee([Se({type:Kt.ObjectIdentifier})],wo.prototype,"attrType",void 0),Ee([Se({type:Kt.Any,repeated:"set"})],wo.prototype,"attrValues",void 0);class bo{constructor(t={}){this.otherCertFormat="",this.otherCert=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],bo.prototype,"otherCertFormat",void 0),Ee([Se({type:Kt.Any})],bo.prototype,"otherCert",void 0);let Do=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:er})],Do.prototype,"certificate",void 0),Ee([Se({type:Gn,context:2,implicit:!0})],Do.prototype,"v2AttrCert",void 0),Ee([Se({type:bo,context:3,implicit:!0})],Do.prototype,"other",void 0),Do=Ee([fe({type:Mt.Choice})],Do);let Io=Po=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Po.prototype)}};Io=Po=Ee([fe({type:Mt.Set,itemType:Do})],Io);class Bo{constructor(t={}){this.contentType="",this.content=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Bo.prototype,"contentType",void 0),Ee([Se({type:Kt.Any,context:0})],Bo.prototype,"content",void 0);let To=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Ht})],To.prototype,"single",void 0),Ee([Se({type:Kt.Any})],To.prototype,"any",void 0),To=Ee([fe({type:Mt.Choice})],To);class xo{constructor(t={}){this.eContentType="",Object.assign(this,t)}}var Oo;Ee([Se({type:Kt.ObjectIdentifier})],xo.prototype,"eContentType",void 0),Ee([Se({type:To,context:0,optional:!0})],xo.prototype,"eContent",void 0),function(t){t[t.v0=0]="v0",t[t.v1=1]="v1",t[t.v2=2]="v2",t[t.v3=3]="v3",t[t.v4=4]="v4",t[t.v5=5]="v5"}(Oo||(Oo={}));let Ro=class extends Qi{};Ro=Ee([fe({type:Mt.Sequence})],Ro);let No=class extends Qi{};No=Ee([fe({type:Mt.Sequence})],No);let ko=class extends Qi{};ko=Ee([fe({type:Mt.Sequence})],ko);let Mo=class extends Qi{};Mo=Ee([fe({type:Mt.Sequence})],Mo);let Ko=class extends Qi{};Ko=Ee([fe({type:Mt.Sequence})],Ko);let jo=class extends Qi{};jo=Ee([fe({type:Mt.Sequence})],jo);let Ho=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Ht,context:0,implicit:!0,optional:!0})],Ho.prototype,"value",void 0),Ee([Se({type:Ht,converter:Wt,context:0,implicit:!0,optional:!0,repeated:"sequence"})],Ho.prototype,"constructedValue",void 0),Ho=Ee([fe({type:Mt.Choice})],Ho);class _o{constructor(t={}){this.contentType="",this.contentEncryptionAlgorithm=new Mo,Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],_o.prototype,"contentType",void 0),Ee([Se({type:Mo})],_o.prototype,"contentEncryptionAlgorithm",void 0),Ee([Se({type:Ho,optional:!0})],_o.prototype,"encryptedContent",void 0);class Uo{constructor(t={}){this.issuer=new Ne,this.serialNumber=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Ne})],Uo.prototype,"issuer",void 0),Ee([Se({type:Kt.Integer,converter:Vt})],Uo.prototype,"serialNumber",void 0);class Fo{constructor(t={}){this.keyAttrId="",Object.assign(this,t)}}var Vo;Ee([Se({type:Kt.ObjectIdentifier})],Fo.prototype,"keyAttrId",void 0),Ee([Se({type:Kt.Any,optional:!0})],Fo.prototype,"keyAttr",void 0);class Lo{constructor(t={}){this.subjectKeyIdentifier=new Hi,Object.assign(this,t)}}Ee([Se({type:Hi})],Lo.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Kt.GeneralizedTime,optional:!0})],Lo.prototype,"date",void 0),Ee([Se({type:Fo,optional:!0})],Lo.prototype,"other",void 0);let Go=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Lo,context:0,implicit:!0,optional:!0})],Go.prototype,"rKeyId",void 0),Ee([Se({type:Uo,optional:!0})],Go.prototype,"issuerAndSerialNumber",void 0),Go=Ee([fe({type:Mt.Choice})],Go);class $o{constructor(t={}){this.rid=new Go,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Go})],$o.prototype,"rid",void 0),Ee([Se({type:Ht})],$o.prototype,"encryptedKey",void 0);let Qo=Vo=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Vo.prototype)}};Qo=Vo=Ee([fe({type:Mt.Sequence,itemType:$o})],Qo);class Wo{constructor(t={}){this.algorithm=new Qi,this.publicKey=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Qi})],Wo.prototype,"algorithm",void 0),Ee([Se({type:Kt.BitString})],Wo.prototype,"publicKey",void 0);let qo=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Hi,context:0,implicit:!0,optional:!0})],qo.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Wo,context:1,implicit:!0,optional:!0})],qo.prototype,"originatorKey",void 0),Ee([Se({type:Uo,optional:!0})],qo.prototype,"issuerAndSerialNumber",void 0),qo=Ee([fe({type:Mt.Choice})],qo);class zo{constructor(t={}){this.version=Oo.v3,this.originator=new qo,this.keyEncryptionAlgorithm=new ko,this.recipientEncryptedKeys=new Qo,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],zo.prototype,"version",void 0),Ee([Se({type:qo,context:0})],zo.prototype,"originator",void 0),Ee([Se({type:Ht,context:1,optional:!0})],zo.prototype,"ukm",void 0),Ee([Se({type:ko})],zo.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Qo})],zo.prototype,"recipientEncryptedKeys",void 0);let Jo=class{constructor(t={}){Object.assign(this,t)}};Ee([Se({type:Hi,context:0,implicit:!0})],Jo.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Uo})],Jo.prototype,"issuerAndSerialNumber",void 0),Jo=Ee([fe({type:Mt.Choice})],Jo);class Zo{constructor(t={}){this.version=Oo.v0,this.rid=new Jo,this.keyEncryptionAlgorithm=new ko,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Zo.prototype,"version",void 0),Ee([Se({type:Jo})],Zo.prototype,"rid",void 0),Ee([Se({type:ko})],Zo.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Ht})],Zo.prototype,"encryptedKey",void 0);class Xo{constructor(t={}){this.keyIdentifier=new Ht,Object.assign(this,t)}}Ee([Se({type:Ht})],Xo.prototype,"keyIdentifier",void 0),Ee([Se({type:Kt.GeneralizedTime,optional:!0})],Xo.prototype,"date",void 0),Ee([Se({type:Fo,optional:!0})],Xo.prototype,"other",void 0);class Yo{constructor(t={}){this.version=Oo.v4,this.kekid=new Xo,this.keyEncryptionAlgorithm=new ko,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Yo.prototype,"version",void 0),Ee([Se({type:Xo})],Yo.prototype,"kekid",void 0),Ee([Se({type:ko})],Yo.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Ht})],Yo.prototype,"encryptedKey",void 0);class ta{constructor(t={}){this.version=Oo.v0,this.keyEncryptionAlgorithm=new ko,this.encryptedKey=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],ta.prototype,"version",void 0),Ee([Se({type:jo,context:0,optional:!0})],ta.prototype,"keyDerivationAlgorithm",void 0),Ee([Se({type:ko})],ta.prototype,"keyEncryptionAlgorithm",void 0),Ee([Se({type:Ht})],ta.prototype,"encryptedKey",void 0);class ea{constructor(t={}){this.oriType="",this.oriValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],ea.prototype,"oriType",void 0),Ee([Se({type:Kt.Any})],ea.prototype,"oriValue",void 0);let ia=class{constructor(t={}){Object.assign(this,t)}};var ra;Ee([Se({type:Zo,optional:!0})],ia.prototype,"ktri",void 0),Ee([Se({type:zo,context:1,implicit:!0,optional:!0})],ia.prototype,"kari",void 0),Ee([Se({type:Yo,context:2,implicit:!0,optional:!0})],ia.prototype,"kekri",void 0),Ee([Se({type:ta,context:3,implicit:!0,optional:!0})],ia.prototype,"pwri",void 0),Ee([Se({type:ea,context:4,implicit:!0,optional:!0})],ia.prototype,"ori",void 0),ia=Ee([fe({type:Mt.Choice})],ia);let sa=ra=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ra.prototype)}};var na;sa=ra=Ee([fe({type:Mt.Set,itemType:ia})],sa);class oa{constructor(t={}){this.otherRevInfoFormat="",this.otherRevInfo=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],oa.prototype,"otherRevInfoFormat",void 0),Ee([Se({type:Kt.Any})],oa.prototype,"otherRevInfo",void 0);let aa=class{constructor(t={}){this.other=new oa,Object.assign(this,t)}};Ee([Se({type:oa,context:1,implicit:!0})],aa.prototype,"other",void 0),aa=Ee([fe({type:Mt.Choice})],aa);let ca=na=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,na.prototype)}};ca=na=Ee([fe({type:Mt.Set,itemType:aa})],ca);class la{constructor(t={}){Object.assign(this,t)}}var ua;Ee([Se({type:Io,context:0,implicit:!0,optional:!0})],la.prototype,"certs",void 0),Ee([Se({type:ca,context:1,implicit:!0,optional:!0})],la.prototype,"crls",void 0);let ha=ua=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ua.prototype)}};ha=ua=Ee([fe({type:Mt.Set,itemType:wo})],ha);class pa{constructor(t={}){this.version=Oo.v0,this.recipientInfos=new sa,this.encryptedContentInfo=new _o,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],pa.prototype,"version",void 0),Ee([Se({type:la,context:0,implicit:!0,optional:!0})],pa.prototype,"originatorInfo",void 0),Ee([Se({type:sa})],pa.prototype,"recipientInfos",void 0),Ee([Se({type:_o})],pa.prototype,"encryptedContentInfo",void 0),Ee([Se({type:ha,context:1,implicit:!0,optional:!0})],pa.prototype,"unprotectedAttrs",void 0);let da=class{constructor(t={}){Object.assign(this,t)}};var ya;Ee([Se({type:Hi,context:0,implicit:!0})],da.prototype,"subjectKeyIdentifier",void 0),Ee([Se({type:Uo})],da.prototype,"issuerAndSerialNumber",void 0),da=Ee([fe({type:Mt.Choice})],da);class fa{constructor(t={}){this.version=Oo.v0,this.sid=new da,this.digestAlgorithm=new Ro,this.signatureAlgorithm=new No,this.signature=new Ht,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],fa.prototype,"version",void 0),Ee([Se({type:da})],fa.prototype,"sid",void 0),Ee([Se({type:Ro})],fa.prototype,"digestAlgorithm",void 0),Ee([Se({type:wo,repeated:"set",context:0,implicit:!0,optional:!0})],fa.prototype,"signedAttrs",void 0),Ee([Se({type:No})],fa.prototype,"signatureAlgorithm",void 0),Ee([Se({type:Ht})],fa.prototype,"signature",void 0),Ee([Se({type:wo,repeated:"set",context:1,implicit:!0,optional:!0})],fa.prototype,"unsignedAttrs",void 0);let Sa=ya=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ya.prototype)}};var Ca;Sa=ya=Ee([fe({type:Mt.Set,itemType:fa})],Sa);let Aa=Ca=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ca.prototype)}};Aa=Ca=Ee([fe({type:Mt.Set,itemType:Ro})],Aa);class ma{constructor(t={}){this.version=Oo.v0,this.digestAlgorithms=new Aa,this.encapContentInfo=new xo,this.signerInfos=new Sa,Object.assign(this,t)}}var ga;Ee([Se({type:Kt.Integer})],ma.prototype,"version",void 0),Ee([Se({type:Aa})],ma.prototype,"digestAlgorithms",void 0),Ee([Se({type:xo})],ma.prototype,"encapContentInfo",void 0),Ee([Se({type:Io,context:0,implicit:!0,optional:!0})],ma.prototype,"certificates",void 0),Ee([Se({type:aa,context:1,implicit:!0,optional:!0})],ma.prototype,"crls",void 0),Ee([Se({type:Sa})],ma.prototype,"signerInfos",void 0);class va{constructor(t={}){this.attrId="",this.attrValues=[],Object.assign(t)}}Ee([Se({type:Kt.ObjectIdentifier})],va.prototype,"attrId",void 0),Ee([Se({type:Kt.Any,repeated:"set"})],va.prototype,"attrValues",void 0);let Ea=ga=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,ga.prototype)}};var wa;Ea=ga=Ee([fe({type:Mt.Sequence,itemType:va})],Ea);let Pa=wa=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,wa.prototype)}};Pa=wa=Ee([fe({type:Mt.Sequence,itemType:Bo})],Pa);class ba{constructor(t={}){this.certId="",this.certValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],ba.prototype,"certId",void 0),Ee([Se({type:Kt.Any,context:0})],ba.prototype,"certValue",void 0);class Da{constructor(t={}){this.crlId="",this.crltValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Da.prototype,"crlId",void 0),Ee([Se({type:Kt.Any,context:0})],Da.prototype,"crltValue",void 0);class Ia extends Ht{}class Ba{constructor(t={}){this.encryptionAlgorithm=new Qi,this.encryptedData=new Ia,Object.assign(this,t)}}var Ta,xa;Ee([Se({type:Qi})],Ba.prototype,"encryptionAlgorithm",void 0),Ee([Se({type:Ia})],Ba.prototype,"encryptedData",void 0),function(t){t[t.v1=0]="v1"}(xa||(xa={}));class Oa extends Ht{}let Ra=Ta=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ta.prototype)}};Ra=Ta=Ee([fe({type:Mt.Sequence,itemType:Mi})],Ra);class Na{constructor(t={}){this.version=xa.v1,this.privateKeyAlgorithm=new Qi,this.privateKey=new Oa,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],Na.prototype,"version",void 0),Ee([Se({type:Qi})],Na.prototype,"privateKeyAlgorithm",void 0),Ee([Se({type:Oa})],Na.prototype,"privateKey",void 0),Ee([Se({type:Ra,implicit:!0,context:0,optional:!0})],Na.prototype,"attributes",void 0);let ka=class extends Na{};ka=Ee([fe({type:Mt.Sequence})],ka);let Ma=class extends Ba{};Ma=Ee([fe({type:Mt.Sequence})],Ma);class Ka{constructor(t={}){this.secretTypeId="",this.secretValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Ka.prototype,"secretTypeId",void 0),Ee([Se({type:Kt.Any,context:0})],Ka.prototype,"secretValue",void 0);class ja{constructor(t={}){this.mac=new Tr,this.macSalt=new Ht,this.iterations=1,Object.assign(this,t)}}Ee([Se({type:Tr})],ja.prototype,"mac",void 0),Ee([Se({type:Ht})],ja.prototype,"macSalt",void 0),Ee([Se({type:Kt.Integer,defaultValue:1})],ja.prototype,"iterations",void 0);class Ha{constructor(t={}){this.version=3,this.authSafe=new Bo,this.macData=new ja,Object.assign(this,t)}}var _a;Ee([Se({type:Kt.Integer})],Ha.prototype,"version",void 0),Ee([Se({type:Bo})],Ha.prototype,"authSafe",void 0),Ee([Se({type:ja,optional:!0})],Ha.prototype,"macData",void 0);class Ua{constructor(t={}){this.bagId="",this.bagValue=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:Kt.ObjectIdentifier})],Ua.prototype,"bagId",void 0),Ee([Se({type:Kt.Any,context:0})],Ua.prototype,"bagValue",void 0),Ee([Se({type:va,repeated:"set",optional:!0})],Ua.prototype,"bagAttributes",void 0);let Fa=_a=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,_a.prototype)}};var Va,La,Ga;Fa=_a=Ee([fe({type:Mt.Sequence,itemType:Ua})],Fa);const $a="1.2.840.113549.1.9",Qa=`${$a}.2`,Wa=`${$a}.7`,qa=`${$a}.14`;let za=class extends Be{constructor(t={}){super(t)}toString(){return{}.toString(),this.ia5String||super.toString()}};Ee([Se({type:Kt.IA5String})],za.prototype,"ia5String",void 0),za=Ee([fe({type:Mt.Choice})],za);let Ja=class extends Bo{};Ja=Ee([fe({type:Mt.Sequence})],Ja);let Za=class extends Ha{};Za=Ee([fe({type:Mt.Sequence})],Za);let Xa=class extends Ba{};Xa=Ee([fe({type:Mt.Sequence})],Xa);let Ya=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.IA5String})],Ya.prototype,"value",void 0),Ya=Ee([fe({type:Mt.Choice})],Ya);let tc=class extends za{};tc=Ee([fe({type:Mt.Choice})],tc);let ec=class extends Be{};ec=Ee([fe({type:Mt.Choice})],ec);let ic=class{constructor(t=new Date){this.value=t}};Ee([Se({type:Kt.GeneralizedTime})],ic.prototype,"value",void 0),ic=Ee([fe({type:Mt.Choice})],ic);let rc=class extends Be{};rc=Ee([fe({type:Mt.Choice})],rc);let sc=class{constructor(t="M"){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.PrintableString})],sc.prototype,"value",void 0),sc=Ee([fe({type:Mt.Choice})],sc);let nc=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.PrintableString})],nc.prototype,"value",void 0),nc=Ee([fe({type:Mt.Choice})],nc);let oc=class extends nc{};oc=Ee([fe({type:Mt.Choice})],oc);let ac=class extends Be{};ac=Ee([fe({type:Mt.Choice})],ac);let cc=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.ObjectIdentifier})],cc.prototype,"value",void 0),cc=Ee([fe({type:Mt.Choice})],cc);let lc=class extends qi{};lc=Ee([fe({type:Mt.Choice})],lc);let uc=class{constructor(t=0){this.value=t}toString(){return this.value.toString()}};Ee([Se({type:Kt.Integer})],uc.prototype,"value",void 0),uc=Ee([fe({type:Mt.Choice})],uc);let hc=class extends fa{};hc=Ee([fe({type:Mt.Sequence})],hc);let pc=class extends Be{};pc=Ee([fe({type:Mt.Choice})],pc);let dc=Va=class extends Xi{constructor(t){super(t),Object.setPrototypeOf(this,Va.prototype)}};dc=Va=Ee([fe({type:Mt.Sequence})],dc);let yc=La=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,La.prototype)}};yc=La=Ee([fe({type:Mt.Set,itemType:wo})],yc);let fc=class{constructor(t=""){this.value=t}toString(){return this.value}};Ee([Se({type:Kt.BmpString})],fc.prototype,"value",void 0),fc=Ee([fe({type:Mt.Choice})],fc);let Sc=class extends Qi{};Sc=Ee([fe({type:Mt.Sequence})],Sc);let Cc=Ga=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ga.prototype)}};var Ac;Cc=Ga=Ee([fe({type:Mt.Sequence,itemType:Sc})],Cc);let mc=Ac=class extends ge{constructor(t){super(t),Object.setPrototypeOf(this,Ac.prototype)}};mc=Ac=Ee([fe({type:Mt.Sequence,itemType:Mi})],mc);class gc{constructor(t={}){this.version=0,this.subject=new Ne,this.subjectPKInfo=new Wi,this.attributes=new mc,Object.assign(this,t)}}Ee([Se({type:Kt.Integer})],gc.prototype,"version",void 0),Ee([Se({type:Ne})],gc.prototype,"subject",void 0),Ee([Se({type:Wi})],gc.prototype,"subjectPKInfo",void 0),Ee([Se({type:mc,implicit:!0,context:0})],gc.prototype,"attributes",void 0);class vc{constructor(t={}){this.certificationRequestInfo=new gc,this.signatureAlgorithm=new Qi,this.signature=new ArrayBuffer(0),Object.assign(this,t)}}Ee([Se({type:gc})],vc.prototype,"certificationRequestInfo",void 0),Ee([Se({type:Qi})],vc.prototype,"signatureAlgorithm",void 0),Ee([Se({type:Kt.BitString})],vc.prototype,"signature",void 0);export{Ze as $,gn as A,po as B,er as C,yo as D,vn as E,uo as F,ho as G,co as H,So as I,lo as J,oo as K,ao as L,Gn as M,Ur as N,vc as O,sr as P,Kr as Q,kr as R,Ne as S,go as T,tc as U,Ao as V,Eo as W,Si as X,gi as Y,ze as Z,Me as _,s as a,Ye as a0,Ke as a1,Vt as a2,bi as a3,$e as a4,Ai as a5,Hi as a6,Ge as a7,hi as a8,Ve as a9,$i as aa,ki as ab,ri as ac,Ls as ad,Bi as ae,rs as af,ns as ag,os as ah,Xr as ai,Ts as aj,Bs as ak,Ms as al,ks as am,$s as an,Gs as ao,ji as ap,_i as aq,Li as ar,$r as as,nn as at,fn as au,Ti as av,Ri as aw,si as ax,yi as ay,o as b,a as c,n as d,In as e,ve as f,nr as g,ar as h,r as i,hr as j,bn as k,Dn as l,Bn as m,Mi as n,qa as o,Ae as p,dc as q,Qa as r,Wa as s,pc as t,Co as u,fo as v,vo as w,ro as x,so as y,mo as z}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{A as t,n as s,o as e,p as r,q as i,E as a,f as n,r as o,U as h,s as c,t as u,u as l,V as m,v as E,I as g,w as p,W as A,x as
|
|
4
|
+
import{A as t,n as s,o as e,p as r,q as i,E as a,f as n,r as o,U as h,s as c,t as u,u as l,V as m,v as E,I as g,w as p,W as A,x as f,y as d,z as b,T as w,B as x,D as C,F as T,G as R,H as I,J as v,K as k,L as N,e as F,M as y,m as B,k as D,l as P,O as H,N as L,g as S,h as j,j as U,R as X,P as q}from"./p-3a4556ef.js";import{b as G,D as K}from"./p-cff9655c.js";import{d as M}from"./p-fec9d812.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/class $ extends t{constructor(t){super(t,s);const F=this.getAsnExtnValue();switch(this.asn.type){case k:this.value=r.parse(F,N);break;case I:this.value=r.parse(F,v);break;case T:this.value=r.parse(F,R);break;case x:this.value=r.parse(F,C);break;case b:this.value=r.parse(F,w);break;case
|
|
11
|
+
*/class $ extends t{constructor(t){super(t,s);const F=this.getAsnExtnValue();switch(this.asn.type){case k:this.value=r.parse(F,N);break;case I:this.value=r.parse(F,v);break;case T:this.value=r.parse(F,R);break;case x:this.value=r.parse(F,C);break;case b:this.value=r.parse(F,w);break;case f:this.value=r.parse(F,d);break;case p:this.value=r.parse(F,A);break;case E:this.value=r.parse(F,g);break;case l:this.value=r.parse(F,m);break;case c:this.value=r.parse(F,u);break;case o:this.value=r.parse(F,h);break;case e:{const t=r.parse(F,i);this.value=t.map((t=>new a(n.serialize(t))));break}default:this.value=G.Convert.ToHex(F)}}getAsnExtnValue(){return this.asn.values[0]}}
|
|
12
12
|
/**
|
|
13
13
|
* @license
|
|
14
14
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import{h as t,r as e,H as i}from"./p-f7683ba5.js";import{Q as a,S as r,y as s,W as n,I as d,T as o,V as l,U as c,t as h,X as p,Y as b,Z as g}from"./p-3a4556ef.js";import{b as u}from"./p-cff9655c.js";import{l as m,a as x}from"./p-fec9d812.js";import{X as v,a as f,C as w}from"./p-7321a8d6.js";import{g as y,R as k,G as L,a as I,B as S,S as A,T as N,b as _,c as D,d as j,E as K,M as P,I as C,e as E,P as z}from"./p-1b11aa24.js";
|
|
5
|
+
/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const T=(e,i)=>{const{attribute:a}=e;return[t(k,{name:"Name",value:y(a.asn.type)}),i,t("tr",null,t("td",{colSpan:2,class:"divider"},t("span",{class:"bg_fill"})))]},H=e=>{const{name:i}=e;return i?i.map((e=>e.map((e=>t(k,{name:a[e.type]||e.type,value:e.value.toString()}))))):null},$=e=>{const{attribute:i}=e;return t(T,{attribute:i},t(H,{name:i.value}))},V=e=>{const{attribute:i}=e;return t(T,{attribute:i},t(k,{name:"Code Authority",value:""}),t(L,{generalName:i.value.codeAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Code Id",value:""}),t(L,{generalName:i.value.codeId,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Short Name",value:i.value.shortName}),t(k,{name:"Short Description",value:i.value.shortDescription}))},O=e=>{const{attribute:i}=e;return t(T,{attribute:i},t(k,{name:"Assessment Authority",value:""}),t(L,{generalName:i.value.assessmentAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Assessment Location",value:""}),t(L,{generalName:i.value.assessmentLocation,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Assessment Ref",value:""}),t(L,{generalName:i.value.assessmentRef,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(k,{name:"Data Storage Territory",value:i.value.dataStorageTerritory}),t(k,{name:"Description",value:i.value.description}))},q=e=>{const{attribute:i}=e;return t(T,{attribute:i},t(k,{name:"Value",value:`${i.value.base} * 10^${i.value.degree} ${i.value.location}`}))},R=e=>{const{attribute:i}=e;return t(T,{attribute:i},Object.keys(i.value).map((e=>t(k,{name:e,value:i.value[e].toNumber()?m.getString("yes"):m.getString("no")}))))},W=t=>{let e=1;return t/100>1?e=100:t/10>1&&(e=10),`${t}/${5*e}`},X=e=>{const{attribute:i}=e,a=Object.keys(i.value).map((e=>[W(i.value[e]),t("br",null)]));return t(T,{attribute:i},t(k,{name:"Value",value:a}))},B=e=>{const{attribute:i}=e;return t(T,{attribute:i},t(k,{name:"Value",value:i.value,monospace:!0}))},G=e=>{const{attribute:i}=e;return t(T,{attribute:i},t(k,{name:"Value",value:i.value.utf8String}))},M=e=>{const{attribute:i}=e;return t(T,{attribute:i},t(k,{name:"Value",value:i.value.toString()}))},Q=e=>{const{attributes:i}=e;return i&&i.length?[t(I,{value:"Attributes"}),i.map((e=>{try{return t(e.value instanceof r?$:e.value instanceof s?V:e.value instanceof n?O:e.value instanceof d?q:e.value instanceof o?R:e.value instanceof l?X:e.value instanceof c?G:e.value instanceof h?M:"string"==typeof e.value?B:T,{attribute:e})}catch(t){return console.error("Error render attribute:",e.asn.type),null}}))]:null},U=e=>{const{issuer:i}=e;return i?[t(I,{value:m.getString("issuer")}),i.map((e=>t(L,{generalName:e,getDNSNameLink:()=>"",getIPAddressLink:()=>""})))]:null},Y=e=>{const{holder:i}=e;if(!i)return null;const{baseCertificateID:a,objectDigestInfo:r}=i;return[t(I,{value:m.getString("holder")}),a&&[a.issuer.map((e=>t(L,{generalName:e,getDNSNameLink:()=>"",getIPAddressLink:()=>""}))),t("tr",null,t("td",null),t("td",null)),t(k,{name:m.getString("serialNumber"),value:u.Convert.ToHex(a.serial),monospace:!0}),t("tr",null,t("td",null),t("td",null))],r&&[t(k,{name:m.getString("digestInfo"),value:""}),t(k,{name:m.getString("algorithm"),value:y(r.digestAlgorithm.algorithm)}),t(k,{name:m.getString("value"),value:u.Convert.ToHex(r.objectDigest),monospace:!0}),t(k,{name:m.getString("type"),value:r.digestedObjectType})]]},Z=class{constructor(t){e(this,t),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>{var e;return null===(e=this.authKeyIdParentLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)},this.getAuthKeyIdSiblingsLink=t=>{var e;return null===(e=this.authKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)},this.getSubjectKeyIdChildrenLink=t=>{var e;return null===(e=this.subjectKeyIdChildrenLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)},this.getSubjectKeyIdSiblingsLink=t=>{var e;return null===(e=this.subjectKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof v)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new v(t)}this.certificateDecoded.parseExtensions(),this.certificateDecoded.parseAttributes(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}watchCertificateAndDecode(t,e){"string"!=typeof t||"string"!=typeof e?t instanceof v&&e instanceof v&&t.serialNumber!==e.serialNumber&&this.decodeCertificate(t):t!==e&&this.decodeCertificate(t)}renderErrorState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this attribute certificate."))}renderEmptyState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no attribute certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?t(i,null,t("table",null,t(S,Object.assign({},this.certificateDecoded)),t(U,{issuer:this.certificateDecoded.issuer}),t(Y,{holder:this.certificateDecoded.holder}),t(A,{signature:this.certificateDecoded.signature}),t(N,{thumbprints:this.certificateDecoded.thumbprints}),t(Q,{attributes:this.certificateDecoded.attributes,getLEILink:_,getDNSNameLink:D,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),t(K,{extensions:this.certificateDecoded.extensions,getLEILink:_,getDNSNameLink:D,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&t(P,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};
|
|
12
|
+
/**
|
|
13
|
+
* @license
|
|
14
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/Z.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";
|
|
19
|
+
/**
|
|
20
|
+
* @license
|
|
21
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/
|
|
26
|
+
const F=(e,i)=>t("tr",null,t("td",{colSpan:2},t("table",null,i))),J=e=>{const{revokedCertificates:i,getDNSNameLink:a,getIPAddressLink:r}=e;return i&&i.length?[t(I,{value:m.getString("revokedCertificates")}),i.map((e=>[t(k,{name:m.getString("serialNumber"),value:u.Convert.ToHex(e.userCertificate),monospace:!0}),t(k,{name:m.getString("revocationDate"),value:x(e.revocationDate.getTime())}),e.crlEntryExtensions&&e.crlEntryExtensions.length&&[t(k,{name:`${m.getString("crlEntryExtensions")}:`,value:""}),t(F,null,e.crlEntryExtensions.map((e=>e.value instanceof p?t(k,{name:y(e.asn.extnID),value:e.value.toJSON()||e.value.reason}):e.value instanceof b?t(k,{name:y(e.asn.extnID),value:e.value.value.getTime()}):e.value instanceof g&&e.value.length?[t(k,{name:`${y(e.asn.extnID)}:`,value:""}),e.value.map((e=>t(F,null,t(L,{generalName:e,getDNSNameLink:a,getIPAddressLink:r}))))]:t(k,{name:y(e.asn.extnID),value:u.Convert.ToHex(e.asn.extnValue),monospace:!0}))))],t("tr",null,t("td",{colSpan:2,class:"divider"},t("span",{class:"bg_fill"})))]))]:null},tt=class{constructor(t){e(this,t),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>{var e;return null===(e=this.authKeyIdParentLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)},this.getAuthKeyIdSiblingsLink=t=>{var e;return null===(e=this.authKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof f)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new f(t)}this.certificateDecoded.parseExtensions(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}getIssuerDnLink(){return this.issuerDnLink}watchCertificateAndDecode(t,e){"string"!=typeof t||"string"!=typeof e?t instanceof f&&e instanceof f&&t.commonName!==e.commonName&&this.decodeCertificate(t):t!==e&&this.decodeCertificate(t)}renderErrorState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate revocation list."))}renderEmptyState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate revocation list available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?t(i,{"data-view":this.view},t("table",null,t(S,Object.assign({},this.certificateDecoded)),t(C,{name:this.certificateDecoded.issuer,issuerDnLink:this.getIssuerDnLink()}),t(A,{signature:this.certificateDecoded.signature}),t(N,{thumbprints:this.certificateDecoded.thumbprints}),t(K,{extensions:this.certificateDecoded.extensions,getLEILink:_,getDNSNameLink:D,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink}),t(J,{revokedCertificates:this.certificateDecoded.revokedCertificates,getDNSNameLink:D,getIPAddressLink:j}),this.download&&t(P,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};tt.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";const et=class{constructor(t){e(this,t),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>t,this.getAuthKeyIdSiblingsLink=t=>t,this.getSubjectKeyIdChildrenLink=t=>{var e;return null===(e=this.subjectKeyIdChildrenLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)},this.getSubjectKeyIdSiblingsLink=t=>{var e;return null===(e=this.subjectKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof w)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new w(t)}this.certificateDecoded.parseAttributes(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}watchCertificateAndDecode(t,e){"string"!=typeof t||"string"!=typeof e?t instanceof w&&e instanceof w&&t.commonName!==e.commonName&&this.decodeCertificate(t):t!==e&&this.decodeCertificate(t)}renderErrorState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate request."))}renderEmptyState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate request available."))}getExtensionRequestAttribute(){if(this.certificateDecoded)return this.certificateDecoded.attributes.find((t=>"1.2.840.113549.1.9.14"===t.asn.type))}render(){if(this.certificateDecodeError)return this.renderErrorState();if(!this.certificateDecoded)return this.renderEmptyState();const e=this.getExtensionRequestAttribute();return t(i,{"data-view":this.view},t("table",null,t(S,Object.assign({},this.certificateDecoded)),t(E,{name:this.certificateDecoded.subject}),t(z,{publicKey:this.certificateDecoded.publicKey}),t(A,{signature:this.certificateDecoded.signature}),t(N,{thumbprints:this.certificateDecoded.thumbprints}),t(Q,{attributes:this.certificateDecoded.attributes,getLEILink:_,getDNSNameLink:D,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),t(K,{extensions:null==e?void 0:e.value,title:"Extension Request",getLEILink:_,getDNSNameLink:D,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&t(P,{certificate:this.certificateDecoded})))}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};et.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";export{Z as peculiar_attribute_certificate_viewer,tt as peculiar_crl_viewer,et as peculiar_csr_viewer}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{A as t,e as s,C as r,N as e,E as i,f as n,g as o,h as a,j as h,R as u,k as c,l as m,m as f}from"./p-
|
|
4
|
+
import{A as t,e as s,C as r,N as e,E as i,f as n,g as o,h as a,j as h,R as u,k as c,l as m,m as f}from"./p-3a4556ef.js";import{b as g,D as l}from"./p-cff9655c.js";import{d as p}from"./p-fec9d812.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,c as r,h as e,H as o}from"./p-f7683ba5.js";import{X as a}from"./p-b7045733.js";import{Q as i}from"./p-a5d07697.js";import"./p-cff9655c.js";import{l}from"./p-fec9d812.js";const s=class{constructor(e){t(this,e),this.detailsOpen=r(this,"detailsOpen",7),this.detailsClose=r(this,"detailsClose",7),this.certificates=[],this.filterWithSearch=!0,this.highlightWithSearch=!0,this.search="",this.certificatesDecoded=[],this.isDecodeInProcess=!0,this.isHasTests=!1,this.isHasRoots=!1,this.handleClickDetails=(t,r)=>{r.stopPropagation(),this.certificateSelectedForDetails=t,this.detailsOpen.emit(t)},this.handleModalClose=()=>{this.certificateSelectedForDetails=void 0,this.detailsClose.emit()},this.handleSearch=t=>{this.search=t.target.value.trim()}}componentWillLoad(){this.certificatesDecodeAndSet()}watchCertificates(t,r){JSON.stringify(t)!==JSON.stringify(r)&&this.certificatesDecodeAndSet()}async certificatesDecodeAndSet(){let t=!1,r=!1;if(!Array.isArray(this.certificates))return;const e=[];for(const o of this.certificates)try{const i=new a(o.value);await i.getThumbprint("SHA-1"),e.push({body:i,tests:o.tests,name:o.name}),!r&&i.isRoot&&(r=!0),t||o.tests&&(o.tests.expired||o.tests.revoked||o.tests.valid)&&(t=!0)}catch(t){console.error("Error certificate parse:",t)}this.isHasTests=t,this.isHasRoots=r,this.isDecodeInProcess=!1,this.certificatesDecoded=e}handleClickDownloadAsPem(t,r){r.stopPropagation(),t.body.downloadAsPEM(t.name||t.body.commonName)}handleClickDownloadAsDer(t,r){r.stopPropagation(),t.body.downloadAsDER(t.name||t.body.commonName)}handleClickRow(t){this.expandedRow=this.expandedRow===t?void 0:t}getMaxColSpanValue(){let t=4;return this.isHasTests&&(t+=1),this.isHasRoots||(t+=1),t}renderExpandedRow(t){const r=this.getMaxColSpanValue();return e("tr",{class:"expanded_summary"},e("td",{colSpan:r},e("peculiar-certificate-summary",{certificate:t,showIssuer:!t.isRoot})))}renderCertificateTests(t){if(!t)return null;const r=[];return t.valid&&r.push(e("peculiar-button",{class:"button_table_action",href:t.valid,target:"_blank"},l.getString("valid"))),t.revoked&&r.push(e("peculiar-button",{class:"button_table_action",href:t.revoked,target:"_blank"},l.getString("revoked"))),t.expired&&r.push(e("peculiar-button",{class:"button_table_action",href:t.expired,target:"_blank"},l.getString("expired"))),r}renderContentState(){const t=this.highlightWithSearch?this.search:"",r=[];return this.certificatesDecoded.forEach(((o,a)=>{const s=a===this.expandedRow,c=i[o.body.signature.algorithm]||o.body.signature.algorithm;this.filterWithSearch&&this.search&&-1===[c,o.body.issuerCommonName,o.name,o.body.commonName,o.body.thumbprints["SHA-1"]].join(" ").toLowerCase().indexOf(this.search.toLowerCase())||r.push([e("tr",{class:{expanded:s},onClick:this.handleClickRow.bind(this,a),key:o.body.thumbprints["SHA-1"]},!this.isHasRoots&&e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("issuer"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},o.body.issuerCommonName))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("name"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},o.name||o.body.commonName))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("publicKey"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},c))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("fingerprint")," (SHA-1):"),e("peculiar-typography",{class:"content",monospace:!0},e("peculiar-highlight-words",{search:t},o.body.thumbprints["SHA-1"]))),e("td",{class:"align_center"},e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("actions"),":"),e("span",{class:"content"},e("peculiar-button",{onClick:this.handleClickDetails.bind(this,o.body),class:"button_table_action"},l.getString("details")),e("peculiar-button-split",{onClick:this.handleClickDownloadAsPem.bind(this,o),actions:[{text:l.getString("download.der"),onClick:this.handleClickDownloadAsDer.bind(this,o)}],class:"button_table_action"},l.getString("download.pem")))),this.isHasTests&&e("td",{class:"align_center"},e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("testURLs"),":"),e("span",{class:"content"},this.renderCertificateTests(o.tests)))),s&&this.renderExpandedRow(o.body)])})),r}renderCertificateDetailsModal(){return this.certificateSelectedForDetails?e("div",{class:"modal_wrapper",role:"presentation","aria-hidden":"false",part:"presentation"},e("div",{class:"modal_backdrop",onClick:this.handleModalClose,"aria-hidden":"true"}),e("div",{class:"modal_container",role:"dialog",part:"presentation_container"},e("header",{class:"modal_title"},e("peculiar-typography",{type:"h4"},l.getString("certificateDetails")),e("button",{class:"modal_close",onClick:this.handleModalClose,type:"button","aria-label":"Close",title:"Close"},e("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.7204 14.375L21.0654 19.7185C21.3115 19.9658 21.3115 20.3693 21.0654 20.6154L20.615 21.0645C20.3689 21.3118 19.9667 21.3118 19.7181 21.0645L14.3744 15.721L9.03194 21.0645C8.78327 21.3118 8.3811 21.3118 8.13371 21.0645L7.68459 20.6154C7.43847 20.3693 7.43847 19.9658 7.68459 19.7185L13.0296 14.375L7.68459 9.03155C7.43847 8.78417 7.43847 8.38074 7.68459 8.13463L8.13371 7.68554C8.3811 7.43815 8.78327 7.43815 9.03194 7.68554L14.3744 13.029L19.7181 7.68554C19.9667 7.43815 20.3689 7.43815 20.615 7.68554L21.0654 8.13463C21.3115 8.38074 21.3115 8.78417 21.0654 9.03155L15.7204 14.375Z"})))),e("div",{class:"modal_content"},e("peculiar-certificate-viewer",{certificate:this.certificateSelectedForDetails})))):null}renderSearch(){return this.filterWithSearch||this.highlightWithSearch?e("div",{class:"search_section"},e("input",{onInput:this.handleSearch,type:"search",value:"",class:"input_search",disabled:!this.certificatesDecoded.length,placeholder:"Search"})):null}renderEmptyState(){const t=this.getMaxColSpanValue();return e("tr",null,e("td",{class:"status_wrapper",colSpan:t},e("peculiar-typography",{type:"b1",align:"center"},"There are no certificates available.")))}renderEmptySearchState(){const t=this.getMaxColSpanValue();return e("tr",null,e("td",{class:"status_wrapper",colSpan:t},e("peculiar-typography",{type:"b1",align:"center"},"No results found for “",this.search,"“")))}renderLoadingState(){return e("div",{class:"loading_container"},e("peculiar-circular-progress",null))}renderBody(){if(this.isDecodeInProcess)return null;if(!this.certificatesDecoded.length)return this.renderEmptyState();const t=this.renderContentState();return this.search&&!t.length?this.renderEmptySearchState():t}render(){return e(o,null,this.renderSearch(),e("table",{class:{m_extra:this.isHasTests||!this.isHasRoots}},e("thead",null,e("tr",null,!this.isHasRoots&&e("th",{class:"col_issuer"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("issuer"))),e("th",{class:"col_name"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("name"))),e("th",{class:"col_public_key"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("publicKey"))),e("th",{class:"col_fingerprint"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("fingerprint")," (SHA-1)")),e("th",{class:"col_actions"},e("peculiar-typography",{type:"h7",align:"center"},l.getString("actions"))),this.isHasTests&&e("th",{class:"col_tests"},e("peculiar-typography",{type:"h7",align:"center"},l.getString("testURLs"))))),e("tbody",null,this.renderBody())),this.renderCertificateDetailsModal(),this.isDecodeInProcess&&this.renderLoadingState())}static get watchers(){return{certificates:["watchCertificates"]}}};s.style=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;min-width:280px;overflow:auto;position:relative;background:white;background:rgba(var(--pv-color-light-rgb), 1)}table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0}table thead{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07)}table tr td{vertical-align:middle}table tbody tr:not(.expanded_summary){cursor:pointer}table tr{border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table th{padding:15px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table td{padding:8px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table .col_issuer,table .col_name,table .col_public_key{width:16%}table .col_actions,table .col_tests{width:18%}table.m_extra .col_issuer,table.m_extra .col_name,table.m_extra .col_public_key{width:12%}table.m_extra .col_actions,table.m_extra .col_tests{width:17%}table tr.expanded td:not(:last-child){border-right-color:transparent}table tr.expanded td{border-bottom-color:transparent}.expanded{border-bottom-color:transparent;background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary td{vertical-align:top;padding:10px 20px 26px}@-webkit-keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}.modal_wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:auto;text-align:center;-webkit-animation:fadeIn 200ms;animation:fadeIn 200ms;padding:30px 10px}.modal_wrapper:before{display:inline-block;vertical-align:middle;width:0;height:100%;content:""}.modal_backdrop{background:rgba(42, 49, 52, 0.5);background:rgba(var(--pv-color-dark-rgb), 0.5);z-index:-1;position:fixed;top:0;right:0;bottom:0;left:0}.modal_container{position:relative;display:inline-block;vertical-align:middle;width:100%;max-width:900px;text-align:left;border-radius:3px;overflow:hidden;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);height:100%}.modal_title{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);border-bottom-width:1px;border-bottom-style:solid;padding:20px 60px 16px 20px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:60px}.modal_content{height:calc(100% - 60px);overflow-y:auto}.modal_close{cursor:pointer;border:none;background-color:transparent;position:absolute;top:0;bottom:0;right:0;padding:0 12px;-webkit-transition:opacity 100ms;transition:opacity 100ms;outline:none}.modal_close:hover{opacity:0.6}.modal_close svg{fill:#2a3134;fill:rgba(var(--pv-color-dark-rgb), 1)}.button_table_action{margin:2px}.mobile_title{display:none}.status_wrapper{height:85px;text-align:center;pointer-events:none}.search_section{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);height:50px;padding:10px;border-width:1px 1px 0 1px;border-style:solid}.input_search{height:100%;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:0 14px;font-size:12px;outline:none;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.input_search::-webkit-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-moz-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search:-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.loading_container{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(42, 49, 52, 0.3);background:rgba(var(--pv-color-dark-rgb), 0.3);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.align_center{text-align:center}@media (hover: hover){table tbody tr:not(.expanded_summary):hover{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}}@media (max-width: 900px){table,tbody,tr,td{display:block}thead{display:none}tr{padding:0 15px;border-width:1px;border-style:solid}tr:not(:first-child){margin-top:-1px}tr:not(.expanded_summary) td:first-child{border:none !important}table td{padding-left:0;padding-right:0;border-width:1px 0 0 0 !important;border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr.expanded_summary td{padding:15px 0}.mobile_title{display:inline-block;width:90px;vertical-align:middle}.modal_title{padding:17px 60px 17px 15px}.content{display:inline-block;width:calc(100% - 90px);vertical-align:middle;text-align:left}.expanded_summary{border-top-color:transparent;padding-bottom:10px}.expanded_summary td:before{content:none}.status_wrapper{height:266px;display:table-cell}.search_section{height:60px;padding:15px}.align_center{text-align:inherit}}';export{s as peculiar_certificates_viewer}
|
|
4
|
+
import{r as t,c as r,h as e,H as o}from"./p-f7683ba5.js";import{X as a}from"./p-c9f01b83.js";import{Q as i}from"./p-3a4556ef.js";import"./p-cff9655c.js";import{l}from"./p-fec9d812.js";const s=class{constructor(e){t(this,e),this.detailsOpen=r(this,"detailsOpen",7),this.detailsClose=r(this,"detailsClose",7),this.certificates=[],this.filterWithSearch=!0,this.highlightWithSearch=!0,this.search="",this.certificatesDecoded=[],this.isDecodeInProcess=!0,this.isHasTests=!1,this.isHasRoots=!1,this.handleClickDetails=(t,r)=>{r.stopPropagation(),this.certificateSelectedForDetails=t,this.detailsOpen.emit(t)},this.handleModalClose=()=>{this.certificateSelectedForDetails=void 0,this.detailsClose.emit()},this.handleSearch=t=>{this.search=t.target.value.trim()}}componentWillLoad(){this.certificatesDecodeAndSet()}watchCertificates(t,r){JSON.stringify(t)!==JSON.stringify(r)&&this.certificatesDecodeAndSet()}async certificatesDecodeAndSet(){let t=!1,r=!1;if(!Array.isArray(this.certificates))return;const e=[];for(const o of this.certificates)try{const i=new a(o.value);await i.getThumbprint("SHA-1"),e.push({body:i,tests:o.tests,name:o.name}),!r&&i.isRoot&&(r=!0),t||o.tests&&(o.tests.expired||o.tests.revoked||o.tests.valid)&&(t=!0)}catch(t){console.error("Error certificate parse:",t)}this.isHasTests=t,this.isHasRoots=r,this.isDecodeInProcess=!1,this.certificatesDecoded=e}handleClickDownloadAsPem(t,r){r.stopPropagation(),t.body.downloadAsPEM(t.name||t.body.commonName)}handleClickDownloadAsDer(t,r){r.stopPropagation(),t.body.downloadAsDER(t.name||t.body.commonName)}handleClickRow(t){this.expandedRow=this.expandedRow===t?void 0:t}getMaxColSpanValue(){let t=4;return this.isHasTests&&(t+=1),this.isHasRoots||(t+=1),t}renderExpandedRow(t){const r=this.getMaxColSpanValue();return e("tr",{class:"expanded_summary"},e("td",{colSpan:r},e("peculiar-certificate-summary",{certificate:t,showIssuer:!t.isRoot})))}renderCertificateTests(t){if(!t)return null;const r=[];return t.valid&&r.push(e("peculiar-button",{class:"button_table_action",href:t.valid,target:"_blank"},l.getString("valid"))),t.revoked&&r.push(e("peculiar-button",{class:"button_table_action",href:t.revoked,target:"_blank"},l.getString("revoked"))),t.expired&&r.push(e("peculiar-button",{class:"button_table_action",href:t.expired,target:"_blank"},l.getString("expired"))),r}renderContentState(){const t=this.highlightWithSearch?this.search:"",r=[];return this.certificatesDecoded.forEach(((o,a)=>{const s=a===this.expandedRow,c=i[o.body.signature.algorithm]||o.body.signature.algorithm;this.filterWithSearch&&this.search&&-1===[c,o.body.issuerCommonName,o.name,o.body.commonName,o.body.thumbprints["SHA-1"]].join(" ").toLowerCase().indexOf(this.search.toLowerCase())||r.push([e("tr",{class:{expanded:s},onClick:this.handleClickRow.bind(this,a),key:o.body.thumbprints["SHA-1"]},!this.isHasRoots&&e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("issuer"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},o.body.issuerCommonName))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("name"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},o.name||o.body.commonName))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("publicKey"),":"),e("peculiar-typography",{class:"content"},e("peculiar-highlight-words",{search:t},c))),e("td",null,e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("fingerprint")," (SHA-1):"),e("peculiar-typography",{class:"content",monospace:!0},e("peculiar-highlight-words",{search:t},o.body.thumbprints["SHA-1"]))),e("td",{class:"align_center"},e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("actions"),":"),e("span",{class:"content"},e("peculiar-button",{onClick:this.handleClickDetails.bind(this,o.body),class:"button_table_action"},l.getString("details")),e("peculiar-button-split",{onClick:this.handleClickDownloadAsPem.bind(this,o),actions:[{text:l.getString("download.der"),onClick:this.handleClickDownloadAsDer.bind(this,o)}],class:"button_table_action"},l.getString("download.pem")))),this.isHasTests&&e("td",{class:"align_center"},e("peculiar-typography",{class:"mobile_title",color:"grey_5"},l.getString("testURLs"),":"),e("span",{class:"content"},this.renderCertificateTests(o.tests)))),s&&this.renderExpandedRow(o.body)])})),r}renderCertificateDetailsModal(){return this.certificateSelectedForDetails?e("div",{class:"modal_wrapper",role:"presentation","aria-hidden":"false",part:"presentation"},e("div",{class:"modal_backdrop",onClick:this.handleModalClose,"aria-hidden":"true"}),e("div",{class:"modal_container",role:"dialog",part:"presentation_container"},e("header",{class:"modal_title"},e("peculiar-typography",{type:"h4"},l.getString("certificateDetails")),e("button",{class:"modal_close",onClick:this.handleModalClose,type:"button","aria-label":"Close",title:"Close"},e("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.7204 14.375L21.0654 19.7185C21.3115 19.9658 21.3115 20.3693 21.0654 20.6154L20.615 21.0645C20.3689 21.3118 19.9667 21.3118 19.7181 21.0645L14.3744 15.721L9.03194 21.0645C8.78327 21.3118 8.3811 21.3118 8.13371 21.0645L7.68459 20.6154C7.43847 20.3693 7.43847 19.9658 7.68459 19.7185L13.0296 14.375L7.68459 9.03155C7.43847 8.78417 7.43847 8.38074 7.68459 8.13463L8.13371 7.68554C8.3811 7.43815 8.78327 7.43815 9.03194 7.68554L14.3744 13.029L19.7181 7.68554C19.9667 7.43815 20.3689 7.43815 20.615 7.68554L21.0654 8.13463C21.3115 8.38074 21.3115 8.78417 21.0654 9.03155L15.7204 14.375Z"})))),e("div",{class:"modal_content"},e("peculiar-certificate-viewer",{certificate:this.certificateSelectedForDetails})))):null}renderSearch(){return this.filterWithSearch||this.highlightWithSearch?e("div",{class:"search_section"},e("input",{onInput:this.handleSearch,type:"search",value:"",class:"input_search",disabled:!this.certificatesDecoded.length,placeholder:"Search"})):null}renderEmptyState(){const t=this.getMaxColSpanValue();return e("tr",null,e("td",{class:"status_wrapper",colSpan:t},e("peculiar-typography",{type:"b1",align:"center"},"There are no certificates available.")))}renderEmptySearchState(){const t=this.getMaxColSpanValue();return e("tr",null,e("td",{class:"status_wrapper",colSpan:t},e("peculiar-typography",{type:"b1",align:"center"},"No results found for “",this.search,"“")))}renderLoadingState(){return e("div",{class:"loading_container"},e("peculiar-circular-progress",null))}renderBody(){if(this.isDecodeInProcess)return null;if(!this.certificatesDecoded.length)return this.renderEmptyState();const t=this.renderContentState();return this.search&&!t.length?this.renderEmptySearchState():t}render(){return e(o,null,this.renderSearch(),e("table",{class:{m_extra:this.isHasTests||!this.isHasRoots}},e("thead",null,e("tr",null,!this.isHasRoots&&e("th",{class:"col_issuer"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("issuer"))),e("th",{class:"col_name"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("name"))),e("th",{class:"col_public_key"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("publicKey"))),e("th",{class:"col_fingerprint"},e("peculiar-typography",{type:"h7",align:"left"},l.getString("fingerprint")," (SHA-1)")),e("th",{class:"col_actions"},e("peculiar-typography",{type:"h7",align:"center"},l.getString("actions"))),this.isHasTests&&e("th",{class:"col_tests"},e("peculiar-typography",{type:"h7",align:"center"},l.getString("testURLs"))))),e("tbody",null,this.renderBody())),this.renderCertificateDetailsModal(),this.isDecodeInProcess&&this.renderLoadingState())}static get watchers(){return{certificates:["watchCertificates"]}}};s.style=':host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;min-width:280px;overflow:auto;position:relative;background:white;background:rgba(var(--pv-color-light-rgb), 1)}table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0}table thead{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07)}table tr td{vertical-align:middle}table tbody tr:not(.expanded_summary){cursor:pointer}table tr{border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table th{padding:15px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table td{padding:8px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table .col_issuer,table .col_name,table .col_public_key{width:16%}table .col_actions,table .col_tests{width:18%}table.m_extra .col_issuer,table.m_extra .col_name,table.m_extra .col_public_key{width:12%}table.m_extra .col_actions,table.m_extra .col_tests{width:17%}table tr.expanded td:not(:last-child){border-right-color:transparent}table tr.expanded td{border-bottom-color:transparent}.expanded{border-bottom-color:transparent;background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary td{vertical-align:top;padding:10px 20px 26px}@-webkit-keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}.modal_wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:auto;text-align:center;-webkit-animation:fadeIn 200ms;animation:fadeIn 200ms;padding:30px 10px}.modal_wrapper:before{display:inline-block;vertical-align:middle;width:0;height:100%;content:""}.modal_backdrop{background:rgba(42, 49, 52, 0.5);background:rgba(var(--pv-color-dark-rgb), 0.5);z-index:-1;position:fixed;top:0;right:0;bottom:0;left:0}.modal_container{position:relative;display:inline-block;vertical-align:middle;width:100%;max-width:900px;text-align:left;border-radius:3px;overflow:hidden;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);height:100%}.modal_title{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);border-bottom-width:1px;border-bottom-style:solid;padding:20px 60px 16px 20px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:60px}.modal_content{height:calc(100% - 60px);overflow-y:auto}.modal_close{cursor:pointer;border:none;background-color:transparent;position:absolute;top:0;bottom:0;right:0;padding:0 12px;-webkit-transition:opacity 100ms;transition:opacity 100ms;outline:none}.modal_close:hover{opacity:0.6}.modal_close svg{fill:#2a3134;fill:rgba(var(--pv-color-dark-rgb), 1)}.button_table_action{margin:2px}.mobile_title{display:none}.status_wrapper{height:85px;text-align:center;pointer-events:none}.search_section{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);height:50px;padding:10px;border-width:1px 1px 0 1px;border-style:solid}.input_search{height:100%;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:0 14px;font-size:12px;outline:none;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.input_search::-webkit-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-moz-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search:-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.loading_container{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(42, 49, 52, 0.3);background:rgba(var(--pv-color-dark-rgb), 0.3);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.align_center{text-align:center}@media (hover: hover){table tbody tr:not(.expanded_summary):hover{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}}@media (max-width: 900px){table,tbody,tr,td{display:block}thead{display:none}tr{padding:0 15px;border-width:1px;border-style:solid}tr:not(:first-child){margin-top:-1px}tr:not(.expanded_summary) td:first-child{border:none !important}table td{padding-left:0;padding-right:0;border-width:1px 0 0 0 !important;border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr.expanded_summary td{padding:15px 0}.mobile_title{display:inline-block;width:90px;vertical-align:middle}.modal_title{padding:17px 60px 17px 15px}.content{display:inline-block;width:calc(100% - 90px);vertical-align:middle;text-align:left}.expanded_summary{border-top-color:transparent;padding-bottom:10px}.expanded_summary td:before{content:none}.status_wrapper{height:266px;display:table-cell}.search_section{height:60px;padding:15px}.align_center{text-align:inherit}}';export{s as peculiar_certificates_viewer}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{d as e,N as i,w as t,p as c,b as r}from"./p-f7683ba5.js";(()=>{const r=Array.from(e.querySelectorAll("script")).find((e=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===i)),
|
|
4
|
+
import{d as e,N as i,w as t,p as c,b as r}from"./p-f7683ba5.js";(()=>{const r=Array.from(e.querySelectorAll("script")).find((e=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===i)),s=r["data-opts"]||{};return s.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,t.location.href)).href,((c,r)=>{const s=`__sc_import_${i.replace(/\s|-/g,"_")}`;try{t[s]=new Function("w",`return import(w);//${Math.random()}`)}catch(i){const a=new Map;t[s]=i=>{const n=new URL(i,c).href;let l=a.get(n);if(!l){const i=e.createElement("script");i.type="module",i.crossOrigin=r.crossOrigin,i.src=URL.createObjectURL(new Blob([`import * as m from '${n}'; window.${s}.m = m;`],{type:"application/javascript"})),l=new Promise((e=>{i.onload=()=>{e(t[s].m),i.remove()}})),a.set(n,l),e.head.appendChild(i)}return l}}})(s.resourcesUrl,r),t.customElements?c(s):__sc_import_peculiar("./p-9f4ee110.js").then((()=>s))})().then((e=>r([["p-dafae164",[[1,"peculiar-button-split",{onClick:[16],fill:[1],actions:[16],open:[32]}],[1,"peculiar-text-hider",{opened:[1540]},[[0,"textExpand","textExpandHandler"]]],[1,"peculiar-link",{href:[513],type:[513]}],[1,"peculiar-typography",{type:[513],color:[1],align:[1],ellipsis:[4],monospace:[4]}],[1,"peculiar-button",{fill:[1],disabled:[516],href:[1],target:[1],onClick:[16]}]]],["p-37c38f22",[[1,"peculiar-certificate-viewer",{certificate:[513],download:[516],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],issuerDnLink:[513,"issuer-dn-link"],view:[513],isDecodeInProcess:[32]}]]],["p-1d6d0160",[[1,"peculiar-certificate-decoder",{certificateExample:[1,"certificate-example"],defaultCertificate:[1,"default-certificate"],certificateDecoded:[32]}]]],["p-e7d81a43",[[1,"peculiar-certificates-viewer",{certificates:[16],filterWithSearch:[4,"filter-with-search"],highlightWithSearch:[4,"highlight-with-search"],search:[32],certificatesDecoded:[32],expandedRow:[32],certificateSelectedForDetails:[32],isDecodeInProcess:[32]}]]],["p-7a31bffb",[[1,"peculiar-attribute-certificate-viewer",{certificate:[1],download:[4],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],isDecodeInProcess:[32]}],[1,"peculiar-crl-viewer",{certificate:[513],download:[4],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],issuerDnLink:[513,"issuer-dn-link"],view:[513],isDecodeInProcess:[32]}],[1,"peculiar-csr-viewer",{certificate:[513],download:[4],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],view:[513],isDecodeInProcess:[32]}]]],["p-870c3592",[[1,"peculiar-certificate-summary",{certificate:[16],showIssuer:[4,"show-issuer"]}],[1,"peculiar-circular-progress",{size:[2],width:[2]}],[1,"peculiar-highlight-words",{search:[1]}]]]],e)));
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
9
9
|
import { IRevokedCertificate } from '../../crypto';
|
|
10
|
-
interface IRevokedCertificatesProps {
|
|
10
|
+
interface IRevokedCertificatesProps extends IGeneralNameOptions {
|
|
11
11
|
revokedCertificates: IRevokedCertificate[];
|
|
12
12
|
}
|
|
13
13
|
export declare const RevokedCertificates: FunctionalComponent<IRevokedCertificatesProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peculiar/certificates-viewer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Peculiar Certificate Viewer web-components makes it easy for you to display certificate related details in your web application.",
|
|
6
6
|
"keywords": [
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "8f522ab78395da88b20884201c020768364f0677"
|
|
74
74
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{h as t,r as e,H as i}from"./p-f7683ba5.js";import{Q as a,S as r,y as s,W as n,I as d,T as o,V as l,U as h,t as c,X as p,Y as b}from"./p-a5d07697.js";import{b as g}from"./p-cff9655c.js";import{l as u,a as m}from"./p-fec9d812.js";import{X as x,a as v,C as f}from"./p-6cd6e6da.js";import{g as w,R as y,G as k,a as L,B as I,S,T as _,b as A,c as N,d as j,E as K,M as D,I as C,e as E,P}from"./p-54171e39.js";
|
|
5
|
-
/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const z=(e,i)=>{const{attribute:a}=e;return[t(y,{name:"Name",value:w(a.asn.type)}),i,t("tr",null,t("td",{colSpan:2,class:"divider"},t("span",{class:"bg_fill"})))]},T=e=>{const{name:i}=e;return i?i.map((e=>e.map((e=>t(y,{name:a[e.type]||e.type,value:e.value.toString()}))))):null},H=e=>{const{attribute:i}=e;return t(z,{attribute:i},t(T,{name:i.value}))},V=e=>{const{attribute:i}=e;return t(z,{attribute:i},t(y,{name:"Code Authority",value:""}),t(k,{generalName:i.value.codeAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(y,{name:"Code Id",value:""}),t(k,{generalName:i.value.codeId,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(y,{name:"Short Name",value:i.value.shortName}),t(y,{name:"Short Description",value:i.value.shortDescription}))},$=e=>{const{attribute:i}=e;return t(z,{attribute:i},t(y,{name:"Assessment Authority",value:""}),t(k,{generalName:i.value.assessmentAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(y,{name:"Assessment Location",value:""}),t(k,{generalName:i.value.assessmentLocation,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(y,{name:"Assessment Ref",value:""}),t(k,{generalName:i.value.assessmentRef,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),t(y,{name:"Data Storage Territory",value:i.value.dataStorageTerritory}),t(y,{name:"Description",value:i.value.description}))},O=e=>{const{attribute:i}=e;return t(z,{attribute:i},t(y,{name:"Value",value:`${i.value.base} * 10^${i.value.degree} ${i.value.location}`}))},q=e=>{const{attribute:i}=e;return t(z,{attribute:i},Object.keys(i.value).map((e=>t(y,{name:e,value:i.value[e].toNumber()?u.getString("yes"):u.getString("no")}))))},R=t=>{let e=1;return t/100>1?e=100:t/10>1&&(e=10),`${t}/${5*e}`},W=e=>{const{attribute:i}=e,a=Object.keys(i.value).map((e=>[R(i.value[e]),t("br",null)]));return t(z,{attribute:i},t(y,{name:"Value",value:a}))},X=e=>{const{attribute:i}=e;return t(z,{attribute:i},t(y,{name:"Value",value:i.value,monospace:!0}))},B=e=>{const{attribute:i}=e;return t(z,{attribute:i},t(y,{name:"Value",value:i.value.utf8String}))},G=e=>{const{attribute:i}=e;return t(z,{attribute:i},t(y,{name:"Value",value:i.value.toString()}))},M=e=>{const{attributes:i}=e;return i&&i.length?[t(L,{value:"Attributes"}),i.map((e=>{try{return t(e.value instanceof r?H:e.value instanceof s?V:e.value instanceof n?$:e.value instanceof d?O:e.value instanceof o?q:e.value instanceof l?W:e.value instanceof h?B:e.value instanceof c?G:"string"==typeof e.value?X:z,{attribute:e})}catch(t){return console.error("Error render attribute:",e.asn.type),null}}))]:null},Q=e=>{const{issuer:i}=e;return i?[t(L,{value:u.getString("issuer")}),i.map((e=>t(k,{generalName:e,getDNSNameLink:()=>"",getIPAddressLink:()=>""})))]:null},U=e=>{const{holder:i}=e;if(!i)return null;const{baseCertificateID:a,objectDigestInfo:r}=i;return[t(L,{value:u.getString("holder")}),a&&[a.issuer.map((e=>t(k,{generalName:e,getDNSNameLink:()=>"",getIPAddressLink:()=>""}))),t("tr",null,t("td",null),t("td",null)),t(y,{name:u.getString("serialNumber"),value:g.Convert.ToHex(a.serial),monospace:!0}),t("tr",null,t("td",null),t("td",null))],r&&[t(y,{name:u.getString("digestInfo"),value:""}),t(y,{name:u.getString("algorithm"),value:w(r.digestAlgorithm.algorithm)}),t(y,{name:u.getString("value"),value:g.Convert.ToHex(r.objectDigest),monospace:!0}),t(y,{name:u.getString("type"),value:r.digestedObjectType})]]},Y=class{constructor(t){e(this,t),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>{var e;return null===(e=this.authKeyIdParentLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)},this.getAuthKeyIdSiblingsLink=t=>{var e;return null===(e=this.authKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)},this.getSubjectKeyIdChildrenLink=t=>{var e;return null===(e=this.subjectKeyIdChildrenLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)},this.getSubjectKeyIdSiblingsLink=t=>{var e;return null===(e=this.subjectKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof x)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new x(t)}this.certificateDecoded.parseExtensions(),this.certificateDecoded.parseAttributes(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}watchCertificateAndDecode(t,e){"string"!=typeof t||"string"!=typeof e?t instanceof x&&e instanceof x&&t.serialNumber!==e.serialNumber&&this.decodeCertificate(t):t!==e&&this.decodeCertificate(t)}renderErrorState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this attribute certificate."))}renderEmptyState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no attribute certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?t(i,null,t("table",null,t(I,Object.assign({},this.certificateDecoded)),t(Q,{issuer:this.certificateDecoded.issuer}),t(U,{holder:this.certificateDecoded.holder}),t(S,{signature:this.certificateDecoded.signature}),t(_,{thumbprints:this.certificateDecoded.thumbprints}),t(M,{attributes:this.certificateDecoded.attributes,getLEILink:A,getDNSNameLink:N,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),t(K,{extensions:this.certificateDecoded.extensions,getLEILink:A,getDNSNameLink:N,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&t(D,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};
|
|
12
|
-
/**
|
|
13
|
-
* @license
|
|
14
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/Y.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";
|
|
19
|
-
/**
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/
|
|
26
|
-
const F=e=>{const{revokedCertificates:i}=e;return i&&i.length?[t(L,{value:u.getString("revokedCertificates")}),i.map((e=>[t(y,{name:u.getString("serialNumber"),value:g.Convert.ToHex(e.userCertificate),monospace:!0}),t(y,{name:u.getString("revocationDate"),value:m(e.revocationDate.getTime())}),e.crlEntryExtensions&&e.crlEntryExtensions.length&&[t(y,{name:`${u.getString("crlEntryExtensions")}:`,value:""}),e.crlEntryExtensions.map((e=>t(y,e.value instanceof p?{name:w(e.asn.extnID),value:e.value.toJSON()||e.value.reason}:e.value instanceof b?{name:w(e.asn.extnID),value:e.value.value.getTime()}:{name:w(e.asn.extnID),value:g.Convert.ToHex(e.asn.extnValue),monospace:!0})))],t("tr",null,t("td",{colSpan:2,class:"divider"},t("span",{class:"bg_fill"})))]))]:null},J=class{constructor(t){e(this,t),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>{var e;return null===(e=this.authKeyIdParentLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)},this.getAuthKeyIdSiblingsLink=t=>{var e;return null===(e=this.authKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{authKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof v)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new v(t)}this.certificateDecoded.parseExtensions(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}getIssuerDnLink(){return this.issuerDnLink}watchCertificateAndDecode(t,e){"string"!=typeof t||"string"!=typeof e?t instanceof v&&e instanceof v&&t.commonName!==e.commonName&&this.decodeCertificate(t):t!==e&&this.decodeCertificate(t)}renderErrorState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate revocation list."))}renderEmptyState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate revocation list available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?t(i,{"data-view":this.view},t("table",null,t(I,Object.assign({},this.certificateDecoded)),t(C,{name:this.certificateDecoded.issuer,issuerDnLink:this.getIssuerDnLink()}),t(S,{signature:this.certificateDecoded.signature}),t(_,{thumbprints:this.certificateDecoded.thumbprints}),t(K,{extensions:this.certificateDecoded.extensions,getLEILink:A,getDNSNameLink:N,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink}),t(F,{revokedCertificates:this.certificateDecoded.revokedCertificates}),this.download&&t(D,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};J.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";const Z=class{constructor(t){e(this,t),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=t=>t,this.getAuthKeyIdSiblingsLink=t=>t,this.getSubjectKeyIdChildrenLink=t=>{var e;return null===(e=this.subjectKeyIdChildrenLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)},this.getSubjectKeyIdSiblingsLink=t=>{var e;return null===(e=this.subjectKeyIdSiblingsLink)||void 0===e?void 0:e.replace("{{subjectKeyId}}",t)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(t){this.isDecodeInProcess=!0;try{if(t instanceof f)this.certificateDecoded=t;else{if("string"!=typeof t)return;this.certificateDecoded=new f(t)}this.certificateDecoded.parseAttributes(),await this.certificateDecoded.getThumbprint("SHA-1"),await this.certificateDecoded.getThumbprint("SHA-256")}catch(t){this.certificateDecodeError=t,console.error("Error certificate parse:",t)}this.isDecodeInProcess=!1}watchCertificateAndDecode(t,e){"string"!=typeof t||"string"!=typeof e?t instanceof f&&e instanceof f&&t.commonName!==e.commonName&&this.decodeCertificate(t):t!==e&&this.decodeCertificate(t)}renderErrorState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate request."))}renderEmptyState(){return t("div",{class:"status_wrapper"},t("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate request available."))}getExtensionRequestAttribute(){if(this.certificateDecoded)return this.certificateDecoded.attributes.find((t=>"1.2.840.113549.1.9.14"===t.asn.type))}render(){if(this.certificateDecodeError)return this.renderErrorState();if(!this.certificateDecoded)return this.renderEmptyState();const e=this.getExtensionRequestAttribute();return t(i,{"data-view":this.view},t("table",null,t(I,Object.assign({},this.certificateDecoded)),t(E,{name:this.certificateDecoded.subject}),t(P,{publicKey:this.certificateDecoded.publicKey}),t(S,{signature:this.certificateDecoded.signature}),t(_,{thumbprints:this.certificateDecoded.thumbprints}),t(M,{attributes:this.certificateDecoded.attributes,getLEILink:A,getDNSNameLink:N,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),t(K,{extensions:null==e?void 0:e.value,title:"Extension Request",getLEILink:A,getDNSNameLink:N,getIPAddressLink:j,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&t(D,{certificate:this.certificateDecoded})))}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};Z.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";export{Y as peculiar_attribute_certificate_viewer,J as peculiar_crl_viewer,Z as peculiar_csr_viewer}
|