@peculiar/certificates-viewer 1.16.2 → 1.17.3
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/{download-5b56f3a9.js → download-78e61b1d.js} +78 -2
- package/dist/cjs/peculiar-attribute-certificate-viewer_9.cjs.entry.js +9 -6
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +1 -1
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/certificate-viewer/basic_information.js +4 -3
- package/dist/collection/components/csr-viewer/csr-viewer.js +2 -0
- package/dist/collection/crypto/csr.js +1 -0
- package/dist/collection/crypto/x509_attribute_certificate.js +1 -0
- package/dist/collection/crypto/x509_certificate.js +1 -0
- package/dist/esm/{download-93437bcb.js → download-c6153e99.js} +78 -2
- package/dist/esm/peculiar-attribute-certificate-viewer_9.entry.js +9 -6
- package/dist/esm/peculiar-certificates-viewer.entry.js +1 -1
- package/dist/esm-es5/{download-93437bcb.js → download-c6153e99.js} +86 -2
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_9.entry.js +9 -6
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +1 -1
- package/dist/peculiar/{p-dfc5b982.system.js → p-05d621c2.system.js} +11 -11
- package/dist/peculiar/p-557d912f.system.js +1 -1
- package/dist/peculiar/{p-14aeb094.js → p-8e2bede4.js} +10 -10
- package/dist/peculiar/{p-911033a5.entry.js → p-bbac8b2a.entry.js} +1 -1
- package/dist/peculiar/{p-44a93ee3.system.entry.js → p-d20fc814.system.entry.js} +17 -17
- package/dist/peculiar/{p-0545a744.entry.js → p-d97c01b2.entry.js} +10 -10
- package/dist/peculiar/{p-de22a6d6.system.entry.js → p-fca4a08b.system.entry.js} +1 -1
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/certificate-viewer/basic_information.d.ts +6 -5
- package/dist/types/crypto/csr.d.ts +1 -0
- package/dist/types/crypto/x509_attribute_certificate.d.ts +1 -0
- package/dist/types/crypto/x509_certificate.d.ts +1 -0
- package/package.json +21 -21
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as e,r as t,H as i,c as a}from"./p-bd949790.js";import{A as n,a as o,i as r,b as s,c as l,E as c,d,e as b,f as p,U as h,g as u,C as f,h as g,V as m,j as v,I as x,k as y,W as w,l as k,m as _,n as
|
|
1
|
+
import{h as e,r as t,H as i,c as a}from"./p-bd949790.js";import{A as n,a as o,i as r,b as s,c as l,E as c,d,e as b,f as p,U as h,g as u,C as f,h as g,V as m,j as v,I as x,k as y,W as w,l as k,m as _,n as C,T as z,o as A,D as S,p as I,q as N,r as L,s as D,t as j,u as E,v as T,w as K,x as P,y as O,z as G,B as R,N as V,F as H,G as q,H as $,R as B,O as F,J as U,K as Y,L as M,M as X,P as W,Q,S as J,X as Z,Y as ee,Z as te,_ as ie,$ as ae,a0 as ne,a1 as oe,a2 as re,a3 as se,a4 as le,a5 as ce,a6 as de,a7 as be,a8 as pe,a9 as he,aa as ue,ab as fe,ac as ge,ad as me,ae as ve,af as xe,ag as ye,ah as we,ai as ke,aj as _e,ak as Ce,al as ze,am as Ae,an as Se,ao as Ie,ap as Ne,aq as Le}from"./p-8e2bede4.js";import{d as De,l as je,a as Ee,h as Te}from"./p-cffe0126.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -12,21 +12,21 @@ import{h as e,r as t,H as i,c as a}from"./p-bd949790.js";import{A as n,a as o,i
|
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/class Pe extends n{constructor(e){super(e,o);const t=this.getAsnExtnValue();switch(this.asn.type){case j:this.value=l.parse(t,E);break;case L:this.value=l.parse(t,D);break;case
|
|
15
|
+
*/class Pe extends n{constructor(e){super(e,o);const t=this.getAsnExtnValue();switch(this.asn.type){case j:this.value=l.parse(t,E);break;case L:this.value=l.parse(t,D);break;case I:this.value=l.parse(t,N);break;case A:this.value=l.parse(t,S);break;case C:this.value=l.parse(t,z);break;case k:this.value=l.parse(t,_);break;case y:this.value=l.parse(t,w);break;case v:this.value=l.parse(t,x);break;case g:this.value=l.parse(t,m);break;case u:this.value=l.parse(t,f);break;case p:this.value=l.parse(t,h);break;case s:{const e=l.parse(t,c);this.value=e.map(e=>new d(b.serialize(e)));break}default:this.value=r.Convert.ToHex(t)}}getAsnExtnValue(){return this.asn.values[0]}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the MIT license found in the
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/class Oe extends n{constructor(e){var t;super(T(e),K),this.thumbprints={};const{acinfo:i}=this.asn;this.serialNumber=r.Convert.ToHex(i.serialNumber),this.version=i.version;const a=i.attrCertValidityPeriod.notBeforeTime;if(!a)throw new Error("Cannot get 'notBefore' value");this.notBefore=a;const n=i.attrCertValidityPeriod.notAfterTime;if(!n)throw new Error("Cannot get 'notAfter' value");this.notAfter=n,this.validity=De(this.notBefore,this.notAfter),this.issuer=i.issuer.v1Form||(null===(t=i.issuer.v2Form)||void 0===t?void 0:t.issuerName),this.holder=i.holder}get signature(){const{signatureValue:e,signatureAlgorithm:t}=this.asn;return{value:e,algorithm:t.algorithm}}parseExtensions(){const{acinfo:e}=this.asn;e.extensions&&(this.extensions=e.extensions.map(e=>new d(b.serialize(e))))}parseAttributes(){const{acinfo:e}=this.asn;e.attributes&&(this.attributes=e.attributes.map(e=>new Pe(b.serialize(e))))}async getThumbprint(e="SHA-1"){try{const t=await P(e,this.raw);this.thumbprints[e.name||e]=r.Convert.ToHex(t)}catch(t){console.error("Error thumbprint get:",t)}}exportAsBase64(){return r.Convert.ToBase64(this.raw)}exportAsHexFormatted(){return O(r.Convert.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN ATTRIBUTE CERTIFICATE-----\n${G(this.exportAsBase64())}\n-----END ATTRIBUTE CERTIFICATE-----`}get commonName(){return"attribute-certificate-"+this.thumbprints["SHA-1"]}}
|
|
22
|
+
*/class Oe extends n{constructor(e){var t;super(T(e),K),this.thumbprints={},this.type="X.509 Attribute Certificate";const{acinfo:i}=this.asn;this.serialNumber=r.Convert.ToHex(i.serialNumber),this.version=i.version;const a=i.attrCertValidityPeriod.notBeforeTime;if(!a)throw new Error("Cannot get 'notBefore' value");this.notBefore=a;const n=i.attrCertValidityPeriod.notAfterTime;if(!n)throw new Error("Cannot get 'notAfter' value");this.notAfter=n,this.validity=De(this.notBefore,this.notAfter),this.issuer=i.issuer.v1Form||(null===(t=i.issuer.v2Form)||void 0===t?void 0:t.issuerName),this.holder=i.holder}get signature(){const{signatureValue:e,signatureAlgorithm:t}=this.asn;return{value:e,algorithm:t.algorithm}}parseExtensions(){const{acinfo:e}=this.asn;e.extensions&&(this.extensions=e.extensions.map(e=>new d(b.serialize(e))))}parseAttributes(){const{acinfo:e}=this.asn;e.attributes&&(this.attributes=e.attributes.map(e=>new Pe(b.serialize(e))))}async getThumbprint(e="SHA-1"){try{const t=await P(e,this.raw);this.thumbprints[e.name||e]=r.Convert.ToHex(t)}catch(t){console.error("Error thumbprint get:",t)}}exportAsBase64(){return r.Convert.ToBase64(this.raw)}exportAsHexFormatted(){return O(r.Convert.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN ATTRIBUTE CERTIFICATE-----\n${G(this.exportAsBase64())}\n-----END ATTRIBUTE CERTIFICATE-----`}get commonName(){return"attribute-certificate-"+this.thumbprints["SHA-1"]}}
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/class Ge extends n{constructor(e){super(T(e),R),this.thumbprints={};const{certificationRequestInfo:t}=this.asn;this.subject=new V(t.subject).toJSON(),this.version=t.version}get publicKey(){const{subjectPublicKey:e,algorithm:t}=this.asn.certificationRequestInfo.subjectPKInfo;let i;return t.algorithm===H&&t.parameters&&(i=b.parse(t.parameters,q)),t.algorithm===$&&(i=b.parse(e,B)),{params:i,value:b.serialize(this.asn.certificationRequestInfo.subjectPKInfo),algorithm:t.algorithm}}get signature(){const{signature:e,signatureAlgorithm:t}=this.asn;return{value:e,algorithm:t.algorithm}}get commonName(){if(!this.subject)return"";for(let e=0;e<this.subject.length;e+=1){const t=this.subject[e];if("CN"===t.shortName||"E"===t.shortName||"O"===t.shortName)return t.value}return""}async getThumbprint(e="SHA-1"){try{const t=await P(e,this.raw);this.thumbprints[e.name||e]=r.Convert.ToHex(t)}catch(t){console.error("Error thumbprint get:",t)}}parseAttributes(){const{certificationRequestInfo:e}=this.asn;e.attributes&&(this.attributes=e.attributes.map(e=>new Pe(b.serialize(e))))}exportAsBase64(){return r.Convert.ToBase64(this.raw)}exportAsHexFormatted(){return O(r.Convert.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN CERTIFICATE REQUEST-----\n${G(this.exportAsBase64())}\n-----END CERTIFICATE REQUEST-----`}}
|
|
29
|
+
*/class Ge extends n{constructor(e){super(T(e),R),this.thumbprints={},this.type="PKCS#10 Certificate Request";const{certificationRequestInfo:t}=this.asn;this.subject=new V(t.subject).toJSON(),this.version=t.version}get publicKey(){const{subjectPublicKey:e,algorithm:t}=this.asn.certificationRequestInfo.subjectPKInfo;let i;return t.algorithm===H&&t.parameters&&(i=b.parse(t.parameters,q)),t.algorithm===$&&(i=b.parse(e,B)),{params:i,value:b.serialize(this.asn.certificationRequestInfo.subjectPKInfo),algorithm:t.algorithm}}get signature(){const{signature:e,signatureAlgorithm:t}=this.asn;return{value:e,algorithm:t.algorithm}}get commonName(){if(!this.subject)return"";for(let e=0;e<this.subject.length;e+=1){const t=this.subject[e];if("CN"===t.shortName||"E"===t.shortName||"O"===t.shortName)return t.value}return""}async getThumbprint(e="SHA-1"){try{const t=await P(e,this.raw);this.thumbprints[e.name||e]=r.Convert.ToHex(t)}catch(t){console.error("Error thumbprint get:",t)}}parseAttributes(){const{certificationRequestInfo:e}=this.asn;e.attributes&&(this.attributes=e.attributes.map(e=>new Pe(b.serialize(e))))}exportAsBase64(){return r.Convert.ToBase64(this.raw)}exportAsHexFormatted(){return O(r.Convert.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN CERTIFICATE REQUEST-----\n${G(this.exportAsBase64())}\n-----END CERTIFICATE REQUEST-----`}}
|
|
30
30
|
/**
|
|
31
31
|
* @license
|
|
32
32
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -48,7 +48,7 @@ import{h as e,r as t,H as i,c as a}from"./p-bd949790.js";import{A as n,a as o,i
|
|
|
48
48
|
* This source code is licensed under the MIT license found in the
|
|
49
49
|
* LICENSE file in the root directory of this source tree.
|
|
50
50
|
*/
|
|
51
|
-
const Ve=t=>{const{value:i}=t;return i?e("tr",{class:"title"},e("td",{colSpan:2},e("peculiar-typography",{type:"h6"},i))):null},He=t=>{const{name:i,value:a,monospace:n,collapse:o,href:r,extraValue:s}=t;if(!i)return null;if(null==a)return null;let l;l=o?e("peculiar-text-hider",null,a):a;const c=!!a.toString();return e("tr",null,e("td",{colSpan:c?1:2},e("peculiar-typography",{color:"grey_5"},i,c?":":"")),c&&e("td",{class:{monospace:n}},function(e){return 0===e.indexOf("http")}(a.toString())||r?e("peculiar-link",{href:r||a.toString()},a):e("peculiar-typography",{monospace:n},l,s)))},qe=t=>{const{signature:i}=t;return i?[e(Ve,{value:je.getString("signature")}),e(He,{name:je.getString("algorithm"),value:Re(i.algorithm)}),e(He,{name:je.getString("value"),value:r.Convert.ToHex(i.value),monospace:!0,collapse:!0})]:null},$e=(t,i)=>{const{attribute:a}=t;return[e(He,{name:"Name",value:Re(a.asn.type)}),i,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},Be=t=>{const{name:i}=t;return i?i.map(t=>t.map(t=>e(He,{name:F[t.type]||t.type,value:t.value.toString()}))):null},Fe=t=>{const{attribute:i}=t;return e($e,{attribute:i},e(Be,{name:i.value}))},Ue={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"},Ye=t=>{const{generalName:i,getDNSNameLink:a,getIPAddressLink:n}=t;return i?Object.keys(i).map(t=>{const o=i[t];if(o instanceof U)return[e(He,{name:Ue[t]||t,value:""}),o.map(t=>t.map(t=>e(He,{name:F[t.type]||t.type,value:t.value.toString()})))];if(o instanceof Y){const t=l.parse(o.value,M);return e(He,{name:F[o.typeId],value:t.toString()})}return r.BufferSourceConverter.isBufferSource(o)?e(He,{name:Ue[t]||t,value:r.Convert.ToString(o)}):e(He,o instanceof W?{name:Ue[t]||t,value:r.Convert.ToString(o.partyName)}:"dNSName"===t?{name:Ue[t]||t,value:o,href:a(o)}:"iPAddress"===t?{name:Ue[t]||t,value:o,href:n(o)}:{name:Ue[t]||t,value:o})}):null},Me=t=>{const{attribute:i}=t;return e($e,{attribute:i},e(He,{name:"Code Authority",value:""}),e(Ye,{generalName:i.value.codeAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Code Id",value:""}),e(Ye,{generalName:i.value.codeId,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Short Name",value:i.value.shortName}),e(He,{name:"Short Description",value:i.value.shortDescription}))},We=t=>{const{attribute:i}=t;return e($e,{attribute:i},e(He,{name:"Assessment Authority",value:""}),e(Ye,{generalName:i.value.assessmentAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Assessment Location",value:""}),e(Ye,{generalName:i.value.assessmentLocation,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Assessment Ref",value:""}),e(Ye,{generalName:i.value.assessmentRef,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Data Storage Territory",value:i.value.dataStorageTerritory}),e(He,{name:"Description",value:i.value.description}))},Xe=t=>{const{attribute:i}=t;return e($e,{attribute:i},e(He,{name:"Value",value:`${i.value.base} * 10^${i.value.degree} ${i.value.location}`}))},Qe=t=>{const{attribute:i}=t;return e($e,{attribute:i},Object.keys(i.value).map(t=>e(He,{name:t,value:i.value[t].toNumber()?"YES":"NO"})))},Je=e=>{let t=1;return e/100>1?t=100:e/10>1&&(t=10),`${e}/${5*t}`},Ze=t=>{const{attribute:i}=t,a=Object.keys(i.value).map(t=>[Je(i.value[t]),e("br",null)]);return e($e,{attribute:i},e(He,{name:"Value",value:a}))},et=t=>{const{attribute:i}=t;return e($e,{attribute:i},e(He,{name:"Value",value:i.value,monospace:!0}))},tt=t=>{const{attribute:i}=t;return e($e,{attribute:i},e(He,{name:"Value",value:i.value.utf8String}))},it=t=>{const{attribute:i}=t;return e($e,{attribute:i},e(He,{name:"Value",value:i.value.toString()}))},at=t=>{const{attributes:i}=t;return i&&i.length?[e(Ve,{value:"Attributes"}),i.map(t=>{try{return e(t.value instanceof U?Fe:t.value instanceof _?Me:t.value instanceof w?We:t.value instanceof x?Xe:t.value instanceof C?Qe:t.value instanceof m?Ze:t.value instanceof h?tt:t.value instanceof f?it:"string"==typeof t.value?et:$e,{attribute:t})}catch(i){return console.error("Error render attribute:",t.asn.type),null}})]:null},nt=t=>{const{thumbprints:i}=t;if(!i)return null;const a=Object.keys(i);return a.length?[e(Ve,{value:je.getString("fingerprints")}),a.map(t=>e(He,{name:t,value:i[t],monospace:!0}))]:null},ot=(t,i)=>{const{extension:a}=t;return[e(He,{name:"Name",value:Re(a.asn.extnID)}),e(He,{name:"Critical",value:a.asn.critical?"YES":"NO"}),i,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},rt=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Usage",value:i.value.toJSON().join(", ")}))},st=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Certificate Authority",value:i.value.cA?"YES":"NO"}),e(He,{name:"Path Length Constraint",value:i.value.pathLenConstraint}))},lt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map((t,i)=>e(He,{name:"Purpose #"+(i+1),value:Re(t)})))},ct=t=>{const{extension:i,getSubjectKeyIdChildrenLink:a,getSubjectKeyIdSiblingsLink:n}=t,o=r.Convert.ToHex(i.value.buffer),s=a(o),l=n(o);return e(ot,{extension:i},e(He,{name:"Key ID",value:o,monospace:!0,extraValue:[s&&e("span",null," [",e("peculiar-link",{href:s},"children"),"]"),l&&e("span",null," [",e("peculiar-link",{href:l},"siblings"),"]")]}))},dt=t=>{const{extension:i,getAuthKeyIdParentLink:a,getAuthKeyIdSiblingsLink:n}=t,o=r.Convert.ToHex(i.value.keyIdentifier.buffer),s=a(o),l=n(o);return e(ot,{extension:i},e(He,{name:"Key ID",value:o,monospace:!0,extraValue:[s&&e("span",null," [",e("peculiar-link",{href:s},"parents"),"]"),l&&e("span",null," [",e("peculiar-link",{href:l},"siblings"),"]")]}))},bt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map(i=>{var a;return null===(a=null==i?void 0:i.distributionPoint)||void 0===a?void 0:a.fullName.map(i=>e(Ye,Object.assign({generalName:i},t)))}))},pt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map((i,a)=>[e(He,{name:"Description #"+(a+1),value:""}),e(He,{name:"Method",value:Re(i.accessMethod)}),e(Ye,Object.assign({generalName:i.accessLocation},t))]))},ht=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map(i=>e(Ye,Object.assign({generalName:i},t))))},ut=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map((t,i)=>{var a;return[e(He,{name:"Policy #"+(i+1),value:""}),e(He,{name:"ID",value:Re(t.policyIdentifier)}),null===(a=t.policyQualifiers)||void 0===a?void 0:a.map((t,a)=>{const n=[e(He,{name:`Qualifier #${i+1}.${a+1}`,value:""}),e(He,{name:"ID",value:Re(t.policyQualifierId)})];if("1.3.6.1.5.5.7.2.1"===t.policyQualifierId){const i=l.parse(t.qualifier,M);n.push(e(He,{name:"Value",value:i.toString()}))}if("1.3.6.1.5.5.7.2.2"===t.policyQualifierId){const i=l.parse(t.qualifier,X);i.explicitText&&n.push(e(He,{name:"Value",value:i.explicitText.toString()}))}return n})]}))},ft={"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"},gt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.toJSON().map((t,i)=>[e(He,{name:"SCT #"+(i+1),value:""}),e(He,{name:"Version",value:t.version+1}),e(He,{name:"Log Operator",value:ft[t.logId]||t.logId}),e(He,{name:"Log Key ID",value:t.logId,monospace:!0}),e(He,{name:"Timestamp",value:Ee(t.timestamp)}),e(He,{name:"Signature Algorithm",value:`${t.hashAlgorithm} ${t.signatureAlgorithm}`.toUpperCase()}),e(He,{name:"Signature",value:t.signature,monospace:!0})]))},mt=t=>{var i,a;const{extension:n}=t;return e(ot,{extension:n},null===(i=n.value.excludedSubtrees)||void 0===i?void 0:i.map(i=>e(Ye,Object.assign({generalName:i.base},t))),null===(a=n.value.permittedSubtrees)||void 0===a?void 0:a.map(i=>e(Ye,Object.assign({generalName:i.base},t))))},vt=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Template ID",value:i.value.templateID}),e(He,{name:"Template Major Version",value:i.value.templateMajorVersion}),e(He,{name:"Template Minor Version",value:i.value.templateMinorVersion}))},xt=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Name",value:i.value.toString()}))},yt=t=>{const{extension:i}=t,a=i.value.getVersion();return e(ot,{extension:i},e(He,{name:"Certificate Index",value:a.certificateIndex}),e(He,{name:"Key Index",value:a.keyIndex}))},wt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map((t,i)=>[e(He,{name:"Statement #"+(i+1),value:""}),e(He,{name:"ID",value:Re(t.statementId)}),e(He,{name:"Info",value:t.statementInfo.byteLength?r.Convert.ToHex(t.statementInfo):null,monospace:!0})]))},kt=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Comment",value:i.value.value}))},_t=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Type",value:i.value.toJSON().join(", ")}))},zt=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Role",value:i.value.text}))},Ct=t=>{const{extension:i,getLEILink:a}=t;return e(ot,{extension:i},e(He,{name:"Identifier",value:i.value.text,href:a(i.value.text)}))},At=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Version",value:i.value.version}),e(Ye,Object.assign({generalName:i.value.location},t)),e(He,{name:"Requires Auth",value:i.value.requiresAuth?"YES":"NO"}))},It=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Version",value:i.value.version}))},St=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Reason",value:i.value.toJSON()}))};
|
|
51
|
+
const Ve=t=>{const{value:i}=t;return i?e("tr",{class:"title"},e("td",{colSpan:2},e("peculiar-typography",{type:"h6"},i))):null},He=t=>{const{name:i,value:a,monospace:n,collapse:o,href:r,extraValue:s}=t;if(!i)return null;if(null==a)return null;let l;l=o?e("peculiar-text-hider",null,a):a;const c=!!a.toString();return e("tr",null,e("td",{colSpan:c?1:2},e("peculiar-typography",{color:"grey_5"},i,c?":":"")),c&&e("td",{class:{monospace:n}},function(e){return 0===e.indexOf("http")}(a.toString())||r?e("peculiar-link",{href:r||a.toString()},a):e("peculiar-typography",{monospace:n},l,s)))},qe=t=>{const{signature:i}=t;return i?[e(Ve,{value:je.getString("signature")}),e(He,{name:je.getString("algorithm"),value:Re(i.algorithm)}),e(He,{name:je.getString("value"),value:r.Convert.ToHex(i.value),monospace:!0,collapse:!0})]:null},$e=(t,i)=>{const{attribute:a}=t;return[e(He,{name:"Name",value:Re(a.asn.type)}),i,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},Be=t=>{const{name:i}=t;return i?i.map(t=>t.map(t=>e(He,{name:F[t.type]||t.type,value:t.value.toString()}))):null},Fe=t=>{const{attribute:i}=t;return e($e,{attribute:i},e(Be,{name:i.value}))},Ue={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"},Ye=t=>{const{generalName:i,getDNSNameLink:a,getIPAddressLink:n}=t;return i?Object.keys(i).map(t=>{const o=i[t];if(o instanceof U)return[e(He,{name:Ue[t]||t,value:""}),o.map(t=>t.map(t=>e(He,{name:F[t.type]||t.type,value:t.value.toString()})))];if(o instanceof Y){const t=l.parse(o.value,M);return e(He,{name:F[o.typeId],value:t.toString()})}return r.BufferSourceConverter.isBufferSource(o)?e(He,{name:Ue[t]||t,value:r.Convert.ToString(o)}):e(He,o instanceof X?{name:Ue[t]||t,value:r.Convert.ToString(o.partyName)}:"dNSName"===t?{name:Ue[t]||t,value:o,href:a(o)}:"iPAddress"===t?{name:Ue[t]||t,value:o,href:n(o)}:{name:Ue[t]||t,value:o})}):null},Me=t=>{const{attribute:i}=t;return e($e,{attribute:i},e(He,{name:"Code Authority",value:""}),e(Ye,{generalName:i.value.codeAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Code Id",value:""}),e(Ye,{generalName:i.value.codeId,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Short Name",value:i.value.shortName}),e(He,{name:"Short Description",value:i.value.shortDescription}))},Xe=t=>{const{attribute:i}=t;return e($e,{attribute:i},e(He,{name:"Assessment Authority",value:""}),e(Ye,{generalName:i.value.assessmentAuthority,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Assessment Location",value:""}),e(Ye,{generalName:i.value.assessmentLocation,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Assessment Ref",value:""}),e(Ye,{generalName:i.value.assessmentRef,getDNSNameLink:()=>"",getIPAddressLink:()=>""}),e(He,{name:"Data Storage Territory",value:i.value.dataStorageTerritory}),e(He,{name:"Description",value:i.value.description}))},We=t=>{const{attribute:i}=t;return e($e,{attribute:i},e(He,{name:"Value",value:`${i.value.base} * 10^${i.value.degree} ${i.value.location}`}))},Qe=t=>{const{attribute:i}=t;return e($e,{attribute:i},Object.keys(i.value).map(t=>e(He,{name:t,value:i.value[t].toNumber()?"YES":"NO"})))},Je=e=>{let t=1;return e/100>1?t=100:e/10>1&&(t=10),`${e}/${5*t}`},Ze=t=>{const{attribute:i}=t,a=Object.keys(i.value).map(t=>[Je(i.value[t]),e("br",null)]);return e($e,{attribute:i},e(He,{name:"Value",value:a}))},et=t=>{const{attribute:i}=t;return e($e,{attribute:i},e(He,{name:"Value",value:i.value,monospace:!0}))},tt=t=>{const{attribute:i}=t;return e($e,{attribute:i},e(He,{name:"Value",value:i.value.utf8String}))},it=t=>{const{attribute:i}=t;return e($e,{attribute:i},e(He,{name:"Value",value:i.value.toString()}))},at=t=>{const{attributes:i}=t;return i&&i.length?[e(Ve,{value:"Attributes"}),i.map(t=>{try{return e(t.value instanceof U?Fe:t.value instanceof _?Me:t.value instanceof w?Xe:t.value instanceof x?We:t.value instanceof z?Qe:t.value instanceof m?Ze:t.value instanceof h?tt:t.value instanceof f?it:"string"==typeof t.value?et:$e,{attribute:t})}catch(i){return console.error("Error render attribute:",t.asn.type),null}})]:null},nt=t=>{const{thumbprints:i}=t;if(!i)return null;const a=Object.keys(i);return a.length?[e(Ve,{value:je.getString("fingerprints")}),a.map(t=>e(He,{name:t,value:i[t],monospace:!0}))]:null},ot=(t,i)=>{const{extension:a}=t;return[e(He,{name:"Name",value:Re(a.asn.extnID)}),e(He,{name:"Critical",value:a.asn.critical?"YES":"NO"}),i,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",{class:"bg_fill"})))]},rt=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Usage",value:i.value.toJSON().join(", ")}))},st=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Certificate Authority",value:i.value.cA?"YES":"NO"}),e(He,{name:"Path Length Constraint",value:i.value.pathLenConstraint}))},lt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map((t,i)=>e(He,{name:"Purpose #"+(i+1),value:Re(t)})))},ct=t=>{const{extension:i,getSubjectKeyIdChildrenLink:a,getSubjectKeyIdSiblingsLink:n}=t,o=r.Convert.ToHex(i.value.buffer),s=a(o),l=n(o);return e(ot,{extension:i},e(He,{name:"Key ID",value:o,monospace:!0,extraValue:[s&&e("span",null," [",e("peculiar-link",{href:s},"children"),"]"),l&&e("span",null," [",e("peculiar-link",{href:l},"siblings"),"]")]}))},dt=t=>{const{extension:i,getAuthKeyIdParentLink:a,getAuthKeyIdSiblingsLink:n}=t,o=r.Convert.ToHex(i.value.keyIdentifier.buffer),s=a(o),l=n(o);return e(ot,{extension:i},e(He,{name:"Key ID",value:o,monospace:!0,extraValue:[s&&e("span",null," [",e("peculiar-link",{href:s},"parents"),"]"),l&&e("span",null," [",e("peculiar-link",{href:l},"siblings"),"]")]}))},bt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map(i=>{var a;return null===(a=null==i?void 0:i.distributionPoint)||void 0===a?void 0:a.fullName.map(i=>e(Ye,Object.assign({generalName:i},t)))}))},pt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map((i,a)=>[e(He,{name:"Description #"+(a+1),value:""}),e(He,{name:"Method",value:Re(i.accessMethod)}),e(Ye,Object.assign({generalName:i.accessLocation},t))]))},ht=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map(i=>e(Ye,Object.assign({generalName:i},t))))},ut=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map((t,i)=>{var a;return[e(He,{name:"Policy #"+(i+1),value:""}),e(He,{name:"ID",value:Re(t.policyIdentifier)}),null===(a=t.policyQualifiers)||void 0===a?void 0:a.map((t,a)=>{const n=[e(He,{name:`Qualifier #${i+1}.${a+1}`,value:""}),e(He,{name:"ID",value:Re(t.policyQualifierId)})];if("1.3.6.1.5.5.7.2.1"===t.policyQualifierId){const i=l.parse(t.qualifier,M);n.push(e(He,{name:"Value",value:i.toString()}))}if("1.3.6.1.5.5.7.2.2"===t.policyQualifierId){const i=l.parse(t.qualifier,W);i.explicitText&&n.push(e(He,{name:"Value",value:i.explicitText.toString()}))}return n})]}))},ft={"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"},gt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.toJSON().map((t,i)=>[e(He,{name:"SCT #"+(i+1),value:""}),e(He,{name:"Version",value:t.version+1}),e(He,{name:"Log Operator",value:ft[t.logId]||t.logId}),e(He,{name:"Log Key ID",value:t.logId,monospace:!0}),e(He,{name:"Timestamp",value:Ee(t.timestamp)}),e(He,{name:"Signature Algorithm",value:`${t.hashAlgorithm} ${t.signatureAlgorithm}`.toUpperCase()}),e(He,{name:"Signature",value:t.signature,monospace:!0})]))},mt=t=>{var i,a;const{extension:n}=t;return e(ot,{extension:n},null===(i=n.value.excludedSubtrees)||void 0===i?void 0:i.map(i=>e(Ye,Object.assign({generalName:i.base},t))),null===(a=n.value.permittedSubtrees)||void 0===a?void 0:a.map(i=>e(Ye,Object.assign({generalName:i.base},t))))},vt=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Template ID",value:i.value.templateID}),e(He,{name:"Template Major Version",value:i.value.templateMajorVersion}),e(He,{name:"Template Minor Version",value:i.value.templateMinorVersion}))},xt=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Name",value:i.value.toString()}))},yt=t=>{const{extension:i}=t,a=i.value.getVersion();return e(ot,{extension:i},e(He,{name:"Certificate Index",value:a.certificateIndex}),e(He,{name:"Key Index",value:a.keyIndex}))},wt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map((t,i)=>[e(He,{name:"Statement #"+(i+1),value:""}),e(He,{name:"ID",value:Re(t.statementId)}),e(He,{name:"Info",value:t.statementInfo.byteLength?r.Convert.ToHex(t.statementInfo):null,monospace:!0})]))},kt=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Comment",value:i.value.value}))},_t=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Type",value:i.value.toJSON().join(", ")}))},Ct=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Role",value:i.value.text}))},zt=t=>{const{extension:i,getLEILink:a}=t;return e(ot,{extension:i},e(He,{name:"Identifier",value:i.value.text,href:a(i.value.text)}))},At=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Version",value:i.value.version}),e(Ye,Object.assign({generalName:i.value.location},t)),e(He,{name:"Requires Auth",value:i.value.requiresAuth?"YES":"NO"}))},St=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Version",value:i.value.version}))},It=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Reason",value:i.value.toJSON()}))};
|
|
52
52
|
/**
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -63,7 +63,7 @@ function Nt(e){return r.Convert.ToString(e.values[0])}
|
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the MIT license found in the
|
|
65
65
|
* LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const Lt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map((t,i)=>[e(He,{name:"Attribute #"+(i+1),value:""}),e(He,{name:"Type",value:Re(t.type)}),e(He,{name:"Value",value:Nt(t)})]))},Dt=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Value",value:i.value,monospace:!0}))},jt=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Not Before",value:Ee(i.value.notBefore)}),e(He,{name:"Not After",value:Ee(i.value.notAfter)}))},Et=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Version",value:i.value.entrustVers}),e(He,{name:"Info Flags",value:i.value.entrustInfoFlags.toJSON().join(", ")}))},Tt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map((t,i)=>[e(He,{name:"Biometric #"+(i+1),value:""}),e(He,{name:"OID",value:Re(t.typeOfBiometricData.biometricDataOid)}),e(He,{name:"Type",value:t.typeOfBiometricData.predefinedBiometricType}),e(He,{name:"Algorithm",value:Re(t.hashAlgorithm.algorithm)}),e(He,{name:"Hash",value:r.Convert.ToHex(t.biometricDataHash.buffer),monospace:!0}),e(He,{name:"Source Uri",value:t.sourceDataUri})]))},Kt=t=>{const{extension:i}=t,a=t=>t?t.map(t=>{const{imageDetails:i}=t;return[e(He,{name:"Image Type",value:i.mediaType}),e(He,{name:"Image Hash",value:r.Convert.ToHex(i.logotypeHash[0].hashValue),monospace:!0}),e(He,{name:"Image URL",value:i.logotypeURI[0],monospace:!0,collapse:!0}),e(He,{name:"Image Hash Algorithm",value:Re(i.logotypeHash[0].hashAlg.algorithm)})]}):null,n=t=>t?t.map(t=>{const{audioDetails:i}=t;return[e(He,{name:"Audio Type",value:i.mediaType}),e(He,{name:"Audio Hash",value:r.Convert.ToHex(i.logotypeHash[0].hashValue),monospace:!0}),e(He,{name:"Audio URL",value:i.logotypeURI[0],monospace:!0,collapse:!0}),e(He,{name:"Audio Hash Algorithm",value:Re(i.logotypeHash[0].hashAlg.algorithm)})]}):null,o=(t,i)=>{if(!i||!i.direct)return null;const{image:o,audio:r}=i.direct;return[e(He,{name:"Type",value:t}),a(o),n(r),e("tr",null,e("td",null),e("td",null))]};return e(ot,{extension:i},o("Subject",i.value.subjectLogo),o("Issuer",i.value.issuerLogo))},Pt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map((t,i)=>[e(He,{name:"Entry #"+(i+1),value:""}),e(He,{name:"SPC",value:t.spc}),e(He,{name:"Range",value:t.range?`start=${t.range.start} count==${t.range.count}`:null}),e(He,{name:"One",value:t.one})]))},Ot=t=>{const{extensions:i,title:a}=t;return i&&i.length?[e(Ve,{value:a||"Extensions"}),i.map(i=>{try{return i.value instanceof Q?e(rt,{extension:i}):i.value instanceof J?e(st,{extension:i}):i.value instanceof Z?e(lt,{extension:i}):i.value instanceof ee?e(ct,Object.assign({extension:i},t)):i.value instanceof te?e(dt,Object.assign({extension:i},t)):i.value instanceof ie?e(bt,Object.assign({extension:i},t)):i.value instanceof ae?e(pt,Object.assign({extension:i},t)):i.value instanceof ne?e(ht,Object.assign({extension:i},t)):i.value instanceof oe?e(ut,{extension:i}):i.value instanceof re?e(gt,{extension:i}):i.value instanceof se?e(mt,Object.assign({extension:i},t)):i.value instanceof le?e(vt,{extension:i}):i.value instanceof ce?e(xt,{extension:i}):i.value instanceof de?e(yt,{extension:i}):i.value instanceof be?e(wt,{extension:i}):i.value instanceof pe?e(kt,{extension:i}):i.value instanceof he?e(_t,{extension:i}):i.value instanceof ue?e(
|
|
66
|
+
*/const Lt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map((t,i)=>[e(He,{name:"Attribute #"+(i+1),value:""}),e(He,{name:"Type",value:Re(t.type)}),e(He,{name:"Value",value:Nt(t)})]))},Dt=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Value",value:i.value,monospace:!0}))},jt=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Not Before",value:Ee(i.value.notBefore)}),e(He,{name:"Not After",value:Ee(i.value.notAfter)}))},Et=t=>{const{extension:i}=t;return e(ot,{extension:i},e(He,{name:"Version",value:i.value.entrustVers}),e(He,{name:"Info Flags",value:i.value.entrustInfoFlags.toJSON().join(", ")}))},Tt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map((t,i)=>[e(He,{name:"Biometric #"+(i+1),value:""}),e(He,{name:"OID",value:Re(t.typeOfBiometricData.biometricDataOid)}),e(He,{name:"Type",value:t.typeOfBiometricData.predefinedBiometricType}),e(He,{name:"Algorithm",value:Re(t.hashAlgorithm.algorithm)}),e(He,{name:"Hash",value:r.Convert.ToHex(t.biometricDataHash.buffer),monospace:!0}),e(He,{name:"Source Uri",value:t.sourceDataUri})]))},Kt=t=>{const{extension:i}=t,a=t=>t?t.map(t=>{const{imageDetails:i}=t;return[e(He,{name:"Image Type",value:i.mediaType}),e(He,{name:"Image Hash",value:r.Convert.ToHex(i.logotypeHash[0].hashValue),monospace:!0}),e(He,{name:"Image URL",value:i.logotypeURI[0],monospace:!0,collapse:!0}),e(He,{name:"Image Hash Algorithm",value:Re(i.logotypeHash[0].hashAlg.algorithm)})]}):null,n=t=>t?t.map(t=>{const{audioDetails:i}=t;return[e(He,{name:"Audio Type",value:i.mediaType}),e(He,{name:"Audio Hash",value:r.Convert.ToHex(i.logotypeHash[0].hashValue),monospace:!0}),e(He,{name:"Audio URL",value:i.logotypeURI[0],monospace:!0,collapse:!0}),e(He,{name:"Audio Hash Algorithm",value:Re(i.logotypeHash[0].hashAlg.algorithm)})]}):null,o=(t,i)=>{if(!i||!i.direct)return null;const{image:o,audio:r}=i.direct;return[e(He,{name:"Type",value:t}),a(o),n(r),e("tr",null,e("td",null),e("td",null))]};return e(ot,{extension:i},o("Subject",i.value.subjectLogo),o("Issuer",i.value.issuerLogo))},Pt=t=>{const{extension:i}=t;return e(ot,{extension:i},i.value.map((t,i)=>[e(He,{name:"Entry #"+(i+1),value:""}),e(He,{name:"SPC",value:t.spc}),e(He,{name:"Range",value:t.range?`start=${t.range.start} count==${t.range.count}`:null}),e(He,{name:"One",value:t.one})]))},Ot=t=>{const{extensions:i,title:a}=t;return i&&i.length?[e(Ve,{value:a||"Extensions"}),i.map(i=>{try{return i.value instanceof Q?e(rt,{extension:i}):i.value instanceof J?e(st,{extension:i}):i.value instanceof Z?e(lt,{extension:i}):i.value instanceof ee?e(ct,Object.assign({extension:i},t)):i.value instanceof te?e(dt,Object.assign({extension:i},t)):i.value instanceof ie?e(bt,Object.assign({extension:i},t)):i.value instanceof ae?e(pt,Object.assign({extension:i},t)):i.value instanceof ne?e(ht,Object.assign({extension:i},t)):i.value instanceof oe?e(ut,{extension:i}):i.value instanceof re?e(gt,{extension:i}):i.value instanceof se?e(mt,Object.assign({extension:i},t)):i.value instanceof le?e(vt,{extension:i}):i.value instanceof ce?e(xt,{extension:i}):i.value instanceof de?e(yt,{extension:i}):i.value instanceof be?e(wt,{extension:i}):i.value instanceof pe?e(kt,{extension:i}):i.value instanceof he?e(_t,{extension:i}):i.value instanceof ue?e(Ct,{extension:i}):i.value instanceof fe?e(zt,Object.assign({extension:i},t)):i.value instanceof ge?e(At,Object.assign({extension:i},t)):e(i.value instanceof me?St:i.value instanceof ve?It:i.value instanceof xe?Lt:i.value instanceof ye?jt:i.value instanceof we?Et:i.value instanceof ke?Tt:i.value instanceof _e?Kt:i.value instanceof Ce?Pt:"string"==typeof i.value?Dt:ot,{extension:i})}catch(a){return console.error("Error render extension:",i.asn.extnID),null}})]:null},Gt=t=>{const{serialNumber:i,version:a,validity:n,notBefore:o,notAfter:r,type:s}=t;return[e(Ve,{value:je.getString("basicInformation")}),e(He,{name:je.getString("type"),value:s}),e(He,{name:je.getString("serialNumber"),value:i,monospace:!0}),e(He,{name:je.getString("version"),value:a}),e(He,{name:je.getString("validity"),value:n}),e(He,{name:je.getString("issued"),value:o?Ee(o):void 0}),e(He,{name:je.getString("expired"),value:r?Ee(r):void 0})]};
|
|
67
67
|
/**
|
|
68
68
|
* @license
|
|
69
69
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -78,14 +78,14 @@ function Nt(e){return r.Convert.ToString(e.values[0])}
|
|
|
78
78
|
* This source code is licensed under the MIT license found in the
|
|
79
79
|
* LICENSE file in the root directory of this source tree.
|
|
80
80
|
*/
|
|
81
|
-
function Rt(e){e instanceof Ge?
|
|
81
|
+
function Rt(e){e instanceof Ge?ze.certificateRequest.asPEM(e.exportAsPemFormatted(),e.commonName):ze.certificate.asPEM(e.exportAsPemFormatted(),e.commonName)}function Vt(e){e instanceof Ge?ze.certificateRequest.asDER(e.exportAsHexFormatted(),e.commonName):ze.certificate.asDER(e.exportAsHexFormatted(),e.commonName)}const Ht=t=>{const{certificate:i}=t;return[e(Ve,{value:je.getString("miscellaneous")}),e("tr",null,e("td",{class:"vertical_align_middle"},e("peculiar-typography",{color:"grey_5"},je.getString("download"),":")),e("td",null,e("peculiar-button-split",{onClick:Rt.bind(void 0,i),actions:[{text:je.getString("download.der"),onClick:Vt.bind(void 0,i)}]},je.getString("download.pem"))))]},qt=t=>{const{issuer:i}=t;return i?[e(Ve,{value:je.getString("issuer")}),i.map(t=>e(Ye,{generalName:t,getDNSNameLink:()=>"",getIPAddressLink:()=>""}))]:null},$t=t=>{const{holder:i}=t;if(!i)return null;const{baseCertificateID:a,objectDigestInfo:n}=i;return[e(Ve,{value:je.getString("holder")}),a&&[a.issuer.map(t=>e(Ye,{generalName:t,getDNSNameLink:()=>"",getIPAddressLink:()=>""})),e("tr",null,e("td",null),e("td",null)),e(He,{name:je.getString("serialNumber"),value:r.Convert.ToHex(a.serial),monospace:!0}),e("tr",null,e("td",null),e("td",null))],n&&[e(He,{name:je.getString("digestInfo"),value:""}),e(He,{name:je.getString("algorithm"),value:Re(n.digestAlgorithm.algorithm)}),e(He,{name:je.getString("value"),value:r.Convert.ToHex(n.objectDigest),monospace:!0}),e(He,{name:je.getString("type"),value:n.digestedObjectType})]]},Bt=class{constructor(e){t(this,e),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=e=>{var t;return null===(t=this.authKeyIdParentLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getAuthKeyIdSiblingsLink=e=>{var t;return null===(t=this.authKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getSubjectKeyIdChildrenLink=e=>{var t;return null===(t=this.subjectKeyIdChildrenLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)},this.getSubjectKeyIdSiblingsLink=e=>{var t;return null===(t=this.subjectKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(e){this.isDecodeInProcess=!0;try{if(e instanceof Oe)this.certificateDecoded=e;else{if("string"!=typeof e)return;this.certificateDecoded=new Oe(e)}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(e,t){"string"!=typeof e||"string"!=typeof t?e instanceof Oe&&t instanceof Oe&&e.serialNumber!==t.serialNumber&&this.decodeCertificate(e):e!==t&&this.decodeCertificate(e)}getLEILink(e){return"https://search.gleif.org/#/record/"+e}getDNSNameLink(e){return"https://censys.io/ipv4?q="+e}getIPAddressLink(e){return"https://censys.io/ipv4?q="+e}renderErrorState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this attribute certificate."))}renderEmptyState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no attribute certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?e(i,null,e("table",null,e(Gt,Object.assign({},this.certificateDecoded)),e(qt,{issuer:this.certificateDecoded.issuer}),e($t,{holder:this.certificateDecoded.holder}),e(qe,{signature:this.certificateDecoded.signature}),e(nt,{thumbprints:this.certificateDecoded.thumbprints}),e(at,{attributes:this.certificateDecoded.attributes,getLEILink:this.getLEILink,getDNSNameLink:this.getDNSNameLink,getIPAddressLink:this.getIPAddressLink,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),e(Ot,{extensions:this.certificateDecoded.extensions,getLEILink:this.getLEILink,getDNSNameLink:this.getDNSNameLink,getIPAddressLink:this.getIPAddressLink,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&e(Ht,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};
|
|
82
82
|
/**
|
|
83
83
|
* @license
|
|
84
84
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
85
85
|
*
|
|
86
86
|
* This source code is licensed under the MIT license found in the
|
|
87
87
|
* LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/Bt.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 Ft=class{constructor(e){t(this,e),this.fill="stroke",this.handleClick=e=>{if(this.disabled)return e.preventDefault(),void e.stopPropagation();this.onClick&&this.onClick(e)}}render(){const t=!!this.href;return e(t?"a":"button",{class:{button:!0,button_stroke:"stroke"===this.fill,button_fill:"fill"===this.fill,button_disabled:this.disabled},disabled:this.disabled,type:!t&&"button",href:t&&this.href,target:t&&this.target?this.target:null,rel:t&&"noreferrer noopener",onClick:this.handleClick,part:"base"},e("span",{part:"label",class:"button_label"},e("slot",null)))}};Ft.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:inline-block;width:auto;cursor:pointer;position:relative;-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;--pv-button-padding-end:5px;--pv-button-padding-start:5px}.button{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);font-size:13px;font-size:var(--pv-font-size-b3);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:
|
|
88
|
+
*/Bt.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 Ft=class{constructor(e){t(this,e),this.fill="stroke",this.handleClick=e=>{if(this.disabled)return e.preventDefault(),void e.stopPropagation();this.onClick&&this.onClick(e)}}render(){const t=!!this.href;return e(t?"a":"button",{class:{button:!0,button_stroke:"stroke"===this.fill,button_fill:"fill"===this.fill,button_disabled:this.disabled},disabled:this.disabled,type:!t&&"button",href:t&&this.href,target:t&&this.target?this.target:null,rel:t&&"noreferrer noopener",onClick:this.handleClick,part:"base"},e("span",{part:"label",class:"button_label"},e("slot",null)))}};Ft.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:inline-block;width:auto;cursor:pointer;position:relative;-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;--pv-button-padding-end:5px;--pv-button-padding-start:5px}.button{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);font-size:13px;font-size:var(--pv-font-size-b3);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;border-style:solid;border-width:1px;font-weight:400;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;vertical-align:middle;cursor:inherit;height:30px;line-height:30px;border-radius:2px;padding:0 5px;padding:0 var(--pv-button-padding-end) 0 var(--pv-button-padding-start)}.button::-moz-focus-inner{border:0}.button:focus{outline:none;-webkit-box-shadow:0 4px 10px 0 rgba(var(--pv-color-dark-rgb), 0.1);box-shadow:0 4px 10px 0 rgba(var(--pv-color-dark-rgb), 0.1)}.button[disabled]{opacity:0.5;cursor:not-allowed}.button_stroke{border-color:rgba(53, 132, 247, 0.3);border-color:rgba(var(--pv-color-primary-rgb), 0.3);color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1);background-color:transparent}.button_fill{border-color:#3584f7;border-color:rgba(var(--pv-color-primary-rgb), 1);background-color:#3584f7;background-color:rgba(var(--pv-color-primary-rgb), 1);color:white;color:rgba(var(--pv-color-light-rgb), 1)}.button_label{-webkit-transition:opacity 200ms;transition:opacity 200ms}.button:hover .button_label{opacity:0.7}';const Ut=class{constructor(e){t(this,e),this.fill="stroke",this.actions=[],this.open=!1,this.onClickSplitButton=e=>{e.stopPropagation(),this.open=!this.open}}onClickActiveButton(e,t){this.open=!1,e(t)}renderActiveSplitState(){return this.open?e("div",{class:"button_split_container"},this.actions.map(t=>e("peculiar-button",{fill:"fill",class:"button_split_action",onClick:this.onClickActiveButton.bind(this,t.onClick)},t.text))):null}render(){return e("div",{class:{button_split:!0}},e("peculiar-button",{fill:this.fill,onClick:this.onClick},e("slot",null)),e("peculiar-button",{fill:this.fill,onClick:this.onClickSplitButton,class:{button_split_with_icon:!0,m_open:this.open}},e("svg",{viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",class:"button_split_icon"},e("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.459.124c.934.001 1.442.994.84 1.644L4.425 3.794c-.44.475-1.244.475-1.684 0L.862 1.764C.26 1.115.77.12 1.705.122l3.754.003z"}))),this.renderActiveSplitState())}};Ut.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:inline-block;vertical-align:top;position:relative;white-space:nowrap;font-size:0}.button_split_icon{width:7px;height:5px;display:inline-block;vertical-align:middle}.button_split_with_icon{width:25px;border-bottom-left-radius:0;border-top-left-radius:0}.button_split_with_icon.m_open::part(base):before{position:fixed;width:100%;height:100%;top:0;left:0;content:""}.button_split_action{width:100%}.button_split_container{position:absolute;bottom:calc(100% + 1px);left:0;width:100%;border-radius:2px;-webkit-box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);z-index:1}.button_split>peculiar-button:first-of-type::part(base){border-top-right-radius:0;border-bottom-right-radius:0}.button_split>peculiar-button:last-of-type::part(base){border-top-left-radius:0;border-bottom-left-radius:0}.button_split>peculiar-button:not(:first-child){margin-left:-1px}';const Yt=class{constructor(e){t(this,e),this.onClickDecode=()=>{const{value:e}=this.inputPaste;e&&this.decode(e)},this.onClickExample=()=>{this.decode(this.certificateExample)},this.onClickClear=()=>{this.clearValue()},this.onChangeInputFile=async e=>{const t=e.target;if(t.files){const e=await Ke(t.files[0]);"string"==typeof e.value&&this.decode(e.value),t.value=""}},this.onDropFile=async e=>{e.stopPropagation(),e.preventDefault();const t=e.dataTransfer;if(t.files){const e=await Ke(t.files[0]);"string"==typeof e.value&&this.decode(e.value)}}}componentDidLoad(){const e=Te.parseHash(window.location.search);e.cert&&setTimeout(()=>this.decode(e.cert),100)}clearValue(){this.inputPaste.value="",this.certificateDecoded=null,Te.replace({search:""})}setValue(e){this.certificateDecoded=e,this.inputPaste.value=e.exportAsPemFormatted(),Te.replace({search:Te.queryStringify({cert:e.exportAsBase64()})})}decode(e){const t=Ae(e),i=Se(e),a=Ie(e),n=Ne(e);let o,r;if(t&&!(i||n||a))return this.clearValue(),void alert("Unsupported file type. Please try to use Certificate/AttributeCertificate/CertificateRequest.");try{i&&(o=new Le(e)),n&&(o=new Oe(e)),a&&(o=new Ge(e))}catch(s){r=s}if(!o)try{o=new Le(e)}catch(s){r=s}if(!o)try{o=new Oe(e)}catch(s){r=s}if(!o)try{o=new Ge(e)}catch(s){r=s}o?this.setValue(o):(this.clearValue(),console.log(r),alert("Error decoding file. Please try to use Certificate/AttributeCertificate/CertificateRequest."))}render(){return e(i,null,e("textarea",{placeholder:"Certificate DER or PEM",class:"textarea",ref:e=>{this.inputPaste=e},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,.csr,.req",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 Le&&e("peculiar-certificate-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}),this.certificateDecoded instanceof Oe&&e("peculiar-attribute-certificate-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}),this.certificateDecoded instanceof Ge&&e("peculiar-csr-viewer",{certificate:this.certificateDecoded,class:"viewer",download:!0}))}};
|
|
89
89
|
/**
|
|
90
90
|
* @license
|
|
91
91
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -93,11 +93,11 @@ function Rt(e){e instanceof Ge?Ce.certificateRequest.asPEM(e.exportAsPemFormatte
|
|
|
93
93
|
* This source code is licensed under the MIT license found in the
|
|
94
94
|
* LICENSE file in the root directory of this source tree.
|
|
95
95
|
*/
|
|
96
|
-
function Mt(e){var t;if(null===(t=e.params)||void 0===t?void 0:t.modulus){let t=e.params.modulus.byteLength;return t%2&&(t-=1),8*t}return null}function
|
|
96
|
+
function Mt(e){var t;if(null===(t=e.params)||void 0===t?void 0:t.modulus){let t=e.params.modulus.byteLength;return t%2&&(t-=1),8*t}return null}function Xt(e){var t;return(null===(t=e.params)||void 0===t?void 0:t.publicExponent)?3===e.params.publicExponent.byteLength?65537:3:null}Yt.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}";const Wt=t=>{var i;const{publicKey:a}=t;return a?[e(Ve,{value:je.getString("publicKeyInfo")}),e(He,{name:je.getString("algorithm"),value:Re(a.algorithm)}),e(He,{name:je.getString("namedCurve"),value:Re(null===(i=a.params)||void 0===i?void 0:i.namedCurve)}),e(He,{name:je.getString("exponent"),value:Xt(a)}),e(He,{name:je.getString("modulus"),value:Mt(a)}),e(He,{name:je.getString("value"),value:r.Convert.ToHex(a.value),monospace:!0,collapse:!0})]:null},Qt=t=>{const{name:i}=t;return[e(Ve,{value:je.getString("subjectName")}),i.map(t=>e(He,{name:t.name||t.type,value:t.value}))]},Jt=t=>{const{name:i,issuerDnLink:a}=t,n=je.getString("issuerName");return[e(Ve,{value:a?e("peculiar-link",{href:a,type:"h6"},n):n}),i.map(t=>e(He,{name:t.name||t.type,value:t.value}))]},Zt=class{constructor(e){t(this,e),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=e=>{var t;return null===(t=this.authKeyIdParentLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getAuthKeyIdSiblingsLink=e=>{var t;return null===(t=this.authKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{authKeyId}}",e)},this.getSubjectKeyIdChildrenLink=e=>{var t;return null===(t=this.subjectKeyIdChildrenLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)},this.getSubjectKeyIdSiblingsLink=e=>{var t;return null===(t=this.subjectKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(e){this.isDecodeInProcess=!0;try{if(e instanceof Le)this.certificateDecoded=e;else{if("string"!=typeof e)return;this.certificateDecoded=new Le(e)}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(e,t){"string"!=typeof e||"string"!=typeof t?e instanceof Le&&t instanceof Le&&e.serialNumber!==t.serialNumber&&this.decodeCertificate(e):e!==t&&this.decodeCertificate(e)}getLEILink(e){return"https://search.gleif.org/#/record/"+e}getDNSNameLink(e){return"https://censys.io/ipv4?q="+e}getIPAddressLink(e){return"https://censys.io/ipv4?q="+e}getIssuerDnLink(){return this.issuerDnLink}renderErrorState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate."))}renderEmptyState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate available."))}render(){return this.certificateDecodeError?this.renderErrorState():this.certificateDecoded?e(i,{"data-view":this.view},e("table",null,e(Gt,Object.assign({},this.certificateDecoded)),e(Qt,{name:this.certificateDecoded.subject}),e(Jt,{name:this.certificateDecoded.issuer,issuerDnLink:this.getIssuerDnLink()}),e(Wt,{publicKey:this.certificateDecoded.publicKey}),e(qe,{signature:this.certificateDecoded.signature}),e(nt,{thumbprints:this.certificateDecoded.thumbprints}),e(Ot,{extensions:this.certificateDecoded.extensions,getLEILink:this.getLEILink,getDNSNameLink:this.getDNSNameLink,getIPAddressLink:this.getIPAddressLink,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&e(Ht,{certificate:this.certificateDecoded}))):this.renderEmptyState()}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};
|
|
97
97
|
/**
|
|
98
98
|
* @license
|
|
99
99
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
100
100
|
*
|
|
101
101
|
* This source code is licensed under the MIT license found in the
|
|
102
102
|
* LICENSE file in the root directory of this source tree.
|
|
103
|
-
*/Zt.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 ei=class{constructor(e){t(this,e),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=e=>e,this.getAuthKeyIdSiblingsLink=e=>e,this.getSubjectKeyIdChildrenLink=e=>{var t;return null===(t=this.subjectKeyIdChildrenLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)},this.getSubjectKeyIdSiblingsLink=e=>{var t;return null===(t=this.subjectKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(e){this.isDecodeInProcess=!0;try{if(e instanceof Ge)this.certificateDecoded=e;else{if("string"!=typeof e)return;this.certificateDecoded=new Ge(e)}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(e,t){"string"!=typeof e||"string"!=typeof t?e instanceof Ge&&t instanceof Ge&&e.commonName!==t.commonName&&this.decodeCertificate(e):e!==t&&this.decodeCertificate(e)}getLEILink(e){return"https://search.gleif.org/#/record/"+e}getDNSNameLink(e){return"https://censys.io/ipv4?q="+e}getIPAddressLink(e){return"https://censys.io/ipv4?q="+e}renderErrorState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate request."))}renderEmptyState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate request available."))}getExtensionRequestAttribute(){if(this.certificateDecoded)return this.certificateDecoded.attributes.find(e=>"1.2.840.113549.1.9.14"===e.asn.type)}render(){if(this.certificateDecodeError)return this.renderErrorState();if(!this.certificateDecoded)return this.renderEmptyState();const t=this.getExtensionRequestAttribute();return e(i,{"data-view":this.view},e("table",null,e(Qt,{name:this.certificateDecoded.subject}),e(Xt,{publicKey:this.certificateDecoded.publicKey}),e(qe,{signature:this.certificateDecoded.signature}),e(nt,{thumbprints:this.certificateDecoded.thumbprints}),e(at,{attributes:this.certificateDecoded.attributes,getLEILink:this.getLEILink,getDNSNameLink:this.getDNSNameLink,getIPAddressLink:this.getIPAddressLink,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),e(Ot,{extensions:null==t?void 0:t.value,title:"Extension Request",getLEILink:this.getLEILink,getDNSNameLink:this.getDNSNameLink,getIPAddressLink:this.getIPAddressLink,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&e(Ht,{certificate:this.certificateDecoded})))}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};ei.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 ti=class{constructor(e){t(this,e),this.type="b3"}render(){return e("a",{href:this.href,target:"_blank",rel:"noreferrer noopener",class:{link:!0,["link_type_"+(this.type||"b3")]:!0}},e("slot",null))}};ti.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:inline-block}.link{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1);font-weight:400;margin:0;padding:0;word-break:break-all}.link_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.link_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.link_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.link_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.link_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.link:hover{text-decoration:none}';const ii=class{constructor(e){t(this,e),this.textExpand=a(this,"textExpand",7),this.opened=!1}textExpandHandler(){this.opened=!this.opened}render(){return e(i,null,e("div",{class:"root"},e("div",{class:{text:!0,m_opened:this.opened}},e("slot",null)),e("div",{class:"action"},e("peculiar-button",{onClick:this.textExpand.emit,class:{button_action:!0,m_opened:this.opened},fill:this.opened?"fill":"stroke"},e("svg",{viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",class:"expand_icon"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M5.459.124c.934.001 1.442.994.84 1.644L4.425 3.794c-.44.475-1.244.475-1.684 0L.862 1.764C.26 1.115.77.12 1.705.122l3.754.003z"}))))))}};ii.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%}.text{display:inline-block;width:calc(100% - 60px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.text.m_opened{white-space:initial}.action{vertical-align:top;display:inline-block;width:60px;text-align:right;position:relative;top:-6px}.button_action{width:30px}.expand_icon{width:7px;height:5px;display:inline-block}.m_opened .expand_icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}";const ai=class{constructor(e){t(this,e),this.type="b3",this.color="dark"}render(){const t=this.type&&this.type.includes("h")?this.type:"p";return e(t,{class:{typography:!0,["typography_type_"+(this.type||"b3")]:!0,["typography_color_"+(this.color||"dark")]:!0,["typography_align_"+this.align]:!!this.align,typography_ellipsis:this.ellipsis,typography_monospace:this.monospace}},e("slot",null))}};ai.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}.typography{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);font-weight:400;margin:0;padding:0;display:block}.typography_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.typography_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.typography_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.typography_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.typography_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.typography_color_dark{color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.typography_color_light{color:white;color:rgba(var(--pv-color-light-rgb), 1)}.typography_color_grey_3{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.typography_color_grey_5{color:#869196;color:rgba(var(--pv-color-grey_5-rgb), 1)}.typography_color_attention{color:#f7a831;color:rgba(var(--pv-color-attention-rgb), 1)}.typography_color_primary{color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1)}.typography_ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.typography_monospace{font-family:monospace}.typography_align_left{text-align:left}.typography_align_center{text-align:center}.typography_align_right{text-align:right}';export{Bt as peculiar_attribute_certificate_viewer,Ft as peculiar_button,Ut as peculiar_button_split,Yt as peculiar_certificate_decoder,Zt as peculiar_certificate_viewer,ei as peculiar_csr_viewer,ti as peculiar_link,ii as peculiar_text_hider,ai as peculiar_typography}
|
|
103
|
+
*/Zt.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 ei=class{constructor(e){t(this,e),this.isDecodeInProcess=!0,this.getAuthKeyIdParentLink=e=>e,this.getAuthKeyIdSiblingsLink=e=>e,this.getSubjectKeyIdChildrenLink=e=>{var t;return null===(t=this.subjectKeyIdChildrenLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)},this.getSubjectKeyIdSiblingsLink=e=>{var t;return null===(t=this.subjectKeyIdSiblingsLink)||void 0===t?void 0:t.replace("{{subjectKeyId}}",e)}}componentWillLoad(){this.decodeCertificate(this.certificate)}async decodeCertificate(e){this.isDecodeInProcess=!0;try{if(e instanceof Ge)this.certificateDecoded=e;else{if("string"!=typeof e)return;this.certificateDecoded=new Ge(e)}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(e,t){"string"!=typeof e||"string"!=typeof t?e instanceof Ge&&t instanceof Ge&&e.commonName!==t.commonName&&this.decodeCertificate(e):e!==t&&this.decodeCertificate(e)}getLEILink(e){return"https://search.gleif.org/#/record/"+e}getDNSNameLink(e){return"https://censys.io/ipv4?q="+e}getIPAddressLink(e){return"https://censys.io/ipv4?q="+e}renderErrorState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There was an error decoding this certificate request."))}renderEmptyState(){return e("div",{class:"status_wrapper"},e("peculiar-typography",{type:"b1",class:"interaction_text"},"There is no certificate request available."))}getExtensionRequestAttribute(){if(this.certificateDecoded)return this.certificateDecoded.attributes.find(e=>"1.2.840.113549.1.9.14"===e.asn.type)}render(){if(this.certificateDecodeError)return this.renderErrorState();if(!this.certificateDecoded)return this.renderEmptyState();const t=this.getExtensionRequestAttribute();return e(i,{"data-view":this.view},e("table",null,e(Gt,Object.assign({},this.certificateDecoded)),e(Qt,{name:this.certificateDecoded.subject}),e(Wt,{publicKey:this.certificateDecoded.publicKey}),e(qe,{signature:this.certificateDecoded.signature}),e(nt,{thumbprints:this.certificateDecoded.thumbprints}),e(at,{attributes:this.certificateDecoded.attributes,getLEILink:this.getLEILink,getDNSNameLink:this.getDNSNameLink,getIPAddressLink:this.getIPAddressLink,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),e(Ot,{extensions:null==t?void 0:t.value,title:"Extension Request",getLEILink:this.getLEILink,getDNSNameLink:this.getDNSNameLink,getIPAddressLink:this.getIPAddressLink,getAuthKeyIdParentLink:this.getAuthKeyIdParentLink,getAuthKeyIdSiblingsLink:this.getAuthKeyIdSiblingsLink,getSubjectKeyIdChildrenLink:this.getSubjectKeyIdChildrenLink,getSubjectKeyIdSiblingsLink:this.getSubjectKeyIdSiblingsLink}),this.download&&e(Ht,{certificate:this.certificateDecoded})))}static get watchers(){return{certificate:["watchCertificateAndDecode"]}}};ei.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 ti=class{constructor(e){t(this,e),this.type="b3"}render(){return e("a",{href:this.href,target:"_blank",rel:"noreferrer noopener",class:{link:!0,["link_type_"+(this.type||"b3")]:!0}},e("slot",null))}};ti.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:inline-block}.link{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1);font-weight:400;margin:0;padding:0;word-break:break-all}.link_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.link_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.link_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.link_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.link_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.link:hover{text-decoration:none}';const ii=class{constructor(e){t(this,e),this.textExpand=a(this,"textExpand",7),this.opened=!1}textExpandHandler(){this.opened=!this.opened}render(){return e(i,null,e("div",{class:"root"},e("div",{class:{text:!0,m_opened:this.opened}},e("slot",null)),e("div",{class:"action"},e("peculiar-button",{onClick:this.textExpand.emit,class:{button_action:!0,m_opened:this.opened},fill:this.opened?"fill":"stroke"},e("svg",{viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",class:"expand_icon"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M5.459.124c.934.001 1.442.994.84 1.644L4.425 3.794c-.44.475-1.244.475-1.684 0L.862 1.764C.26 1.115.77.12 1.705.122l3.754.003z"}))))))}};ii.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%}.text{display:inline-block;width:calc(100% - 60px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.text.m_opened{white-space:initial}.action{vertical-align:top;display:inline-block;width:60px;text-align:right;position:relative;top:-6px}.button_action{width:30px}.expand_icon{width:7px;height:5px;display:inline-block}.m_opened .expand_icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}";const ai=class{constructor(e){t(this,e),this.type="b3",this.color="dark"}render(){const t=this.type&&this.type.includes("h")?this.type:"p";return e(t,{class:{typography:!0,["typography_type_"+(this.type||"b3")]:!0,["typography_color_"+(this.color||"dark")]:!0,["typography_align_"+this.align]:!!this.align,typography_ellipsis:this.ellipsis,typography_monospace:this.monospace}},e("slot",null))}};ai.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}.typography{font-family:"Open Sans", "Arial", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);font-weight:400;margin:0;padding:0;display:block}.typography_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.typography_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.typography_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.typography_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.typography_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.typography_color_dark{color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.typography_color_light{color:white;color:rgba(var(--pv-color-light-rgb), 1)}.typography_color_grey_3{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.typography_color_grey_5{color:#869196;color:rgba(var(--pv-color-grey_5-rgb), 1)}.typography_color_attention{color:#f7a831;color:rgba(var(--pv-color-attention-rgb), 1)}.typography_color_primary{color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1)}.typography_ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.typography_monospace{font-family:monospace}.typography_align_left{text-align:left}.typography_align_center{text-align:center}.typography_align_right{text-align:right}';export{Bt as peculiar_attribute_certificate_viewer,Ft as peculiar_button,Ut as peculiar_button_split,Yt as peculiar_certificate_decoder,Zt as peculiar_certificate_viewer,ei as peculiar_csr_viewer,ti as peculiar_link,ii as peculiar_text_hider,ai as peculiar_typography}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,r,o){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function n(e){try{s(o.next(e))}catch(t){i(t)}}function l(e){try{s(o["throw"](e))}catch(t){i(t)}}function s(e){e.done?r(e.value):a(e.value).then(n,l)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,a,i,n;return n={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function l(e){return function(t){return s([e,t])}}function s(n){if(o)throw new TypeError("Generator is already executing.");while(r)try{if(o=1,a&&(i=n[0]&2?a["return"]:n[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,n[1])).done)return i;if(a=0,i)n=[n[0]&2,i.value];switch(n[0]){case 0:case 1:i=n;break;case 4:r.label++;return{value:n[1],done:false};case 5:r.label++;a=n[1];n=[0];continue;case 7:n=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(n[0]===6||n[0]===2)){r=0;continue}if(n[0]===3&&(!i||n[1]>i[0]&&n[1]<i[3])){r.label=n[1];break}if(n[0]===6&&r.label<i[1]){r.label=i[1];i=n;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(n);break}if(i[2])r.ops.pop();r.trys.pop();continue}n=t.call(e,r)}catch(l){n=[6,l];a=0}finally{o=i=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};System.register(["./p-9f815f76.system.js","./p-dfc5b982.system.js","./p-be2b0d6d.system.js"],(function(e){"use strict";var t,r,o,a,i,n,l,s;return{setters:[function(e){t=e.r;r=e.c;o=e.h;a=e.H},function(e){i=e.aq;n=e.al;l=e.O},function(e){s=e.l}],execute:function(){var c=':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::-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::-webkit-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}}';var d=e("peculiar_certificates_viewer",function(){function e(e){var o=this;t(this,e);this.detailsOpen=r(this,"detailsOpen",7);this.detailsClose=r(this,"detailsClose",7);this.certificates=[];this.filterWithSearch=true;this.highlightWithSearch=true;this.search="";this.certificatesDecoded=[];this.isDecodeInProcess=true;this.isHasTests=false;this.isHasRoots=false;this.handleClickDetails=function(e,t){t.stopPropagation();o.certificateSelectedForDetails=e;o.detailsOpen.emit(e)};this.handleModalClose=function(){o.certificateSelectedForDetails=undefined;o.detailsClose.emit()};this.handleSearch=function(e){o.search=e.target.value.trim()}}e.prototype.componentWillLoad=function(){this.certificatesDecodeAndSet()};e.prototype.watchCertificates=function(e,t){if(JSON.stringify(e)!==JSON.stringify(t)){this.certificatesDecodeAndSet()}};e.prototype.certificatesDecodeAndSet=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,o,a,n,l,s;return __generator(this,(function(c){switch(c.label){case 0:e=false;t=false;if(!Array.isArray(this.certificates)){return[2]}r=[];o=0,a=this.certificates;c.label=1;case 1:if(!(o<a.length))return[3,6];n=a[o];c.label=2;case 2:c.trys.push([2,4,,5]);l=new i(n.value);return[4,l.getThumbprint("SHA-1")];case 3:c.sent();r.push({body:l,tests:n.tests,name:n.name});if(!t&&l.isRoot){t=true}if(!e){if(n.tests&&(n.tests.expired||n.tests.revoked||n.tests.valid)){e=true}}return[3,5];case 4:s=c.sent();console.error("Error certificate parse:",s);return[3,5];case 5:o++;return[3,1];case 6:this.isHasTests=e;this.isHasRoots=t;this.isDecodeInProcess=false;this.certificatesDecoded=r;return[2]}}))}))};e.prototype.handleClickDownloadAsPem=function(e,t){t.stopPropagation();n.certificate.asPEM(e.body.exportAsPemFormatted(),e.name||e.body.commonName)};e.prototype.handleClickDownloadAsDer=function(e,t){t.stopPropagation();n.certificate.asPEM(e.body.exportAsHexFormatted(),e.name||e.body.commonName)};e.prototype.handleClickRow=function(e){var t=this.expandedRow===e;this.expandedRow=t?undefined:e};e.prototype.getMaxColSpanValue=function(){var e=4;if(this.isHasTests){e+=1}if(!this.isHasRoots){e+=1}return e};e.prototype.renderExpandedRow=function(e){var t=this.getMaxColSpanValue();return o("tr",{class:"expanded_summary"},o("td",{colSpan:t},o("peculiar-certificate-summary",{certificate:e,showIssuer:!e.isRoot})))};e.prototype.renderCertificateTests=function(e){if(!e){return null}var t=[];if(e.valid){t.push(o("peculiar-button",{class:"button_table_action",href:e.valid,target:"_blank"},s.getString("valid")))}if(e.revoked){t.push(o("peculiar-button",{class:"button_table_action",href:e.revoked,target:"_blank"},s.getString("revoked")))}if(e.expired){t.push(o("peculiar-button",{class:"button_table_action",href:e.expired,target:"_blank"},s.getString("expired")))}return t};e.prototype.renderContentState=function(){var e=this;var t=this.highlightWithSearch?this.search:"";var r=[];this.certificatesDecoded.forEach((function(a,i){var n=i===e.expandedRow;var c=l[a.body.signature.algorithm]||a.body.signature.algorithm;if(e.filterWithSearch&&e.search){var d=[c,a.body.issuerCommonName,a.name,a.body.commonName,a.body.thumbprints["SHA-1"]].join(" ").toLowerCase();if(d.indexOf(e.search.toLowerCase())===-1){return}}r.push([o("tr",{class:{expanded:n},onClick:e.handleClickRow.bind(e,i),key:i},!e.isHasRoots&&o("td",null,o("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("issuer"),":"),o("peculiar-typography",{class:"content"},o("peculiar-highlight-words",{search:t},a.body.issuerCommonName))),o("td",null,o("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("name"),":"),o("peculiar-typography",{class:"content"},o("peculiar-highlight-words",{search:t},a.name||a.body.commonName))),o("td",null,o("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("publicKey"),":"),o("peculiar-typography",{class:"content"},o("peculiar-highlight-words",{search:t},c))),o("td",null,o("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("fingerprint")," (SHA-1):"),o("peculiar-typography",{class:"content",monospace:true},o("peculiar-highlight-words",{search:t},a.body.thumbprints["SHA-1"]))),o("td",{class:"align_center"},o("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("actions"),":"),o("span",{class:"content"},o("peculiar-button",{onClick:e.handleClickDetails.bind(e,a.body),class:"button_table_action"},s.getString("details")),o("peculiar-button-split",{onClick:e.handleClickDownloadAsPem.bind(e,a),actions:[{text:s.getString("download.der"),onClick:e.handleClickDownloadAsDer.bind(e,a)}],class:"button_table_action"},s.getString("download.pem")))),e.isHasTests&&o("td",{class:"align_center"},o("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("testURLs"),":"),o("span",{class:"content"},e.renderCertificateTests(a.tests)))),n&&e.renderExpandedRow(a.body)])}));return r};e.prototype.renderCertificateDetailsModal=function(){if(!this.certificateSelectedForDetails){return null}return o("div",{class:"modal_wrapper",role:"presentation","aria-hidden":"false",part:"presentation"},o("div",{class:"modal_backdrop",onClick:this.handleModalClose,"aria-hidden":"true"}),o("div",{class:"modal_container",role:"dialog",part:"presentation_container"},o("header",{class:"modal_title"},o("peculiar-typography",{type:"h4"},s.getString("certificateDetails")),o("button",{class:"modal_close",onClick:this.handleModalClose,type:"button","aria-label":"Close",title:"Close"},o("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"},o("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"})))),o("div",{class:"modal_content"},o("peculiar-certificate-viewer",{certificate:this.certificateSelectedForDetails}))))};e.prototype.renderSearch=function(){if(!this.filterWithSearch&&!this.highlightWithSearch){return null}return o("div",{class:"search_section"},o("input",{onInput:this.handleSearch,type:"search",value:"",class:"input_search",disabled:!this.certificatesDecoded.length,placeholder:"Search"}))};e.prototype.renderEmptyState=function(){var e=this.getMaxColSpanValue();return o("tr",null,o("td",{class:"status_wrapper",colSpan:e},o("peculiar-typography",{type:"b1",align:"center"},"There are no certificates available.")))};e.prototype.renderEmptySearchState=function(){var e=this.getMaxColSpanValue();return o("tr",null,o("td",{class:"status_wrapper",colSpan:e},o("peculiar-typography",{type:"b1",align:"center"},"No results found for “",this.search,"“")))};e.prototype.renderLoadingState=function(){return o("div",{class:"loading_container"},o("peculiar-circular-progress",null))};e.prototype.renderBody=function(){if(this.isDecodeInProcess){return null}if(!this.certificatesDecoded.length){return this.renderEmptyState()}var e=this.renderContentState();if(this.search&&!e.length){return this.renderEmptySearchState()}return e};e.prototype.render=function(){return o(a,null,this.renderSearch(),o("table",{class:{m_extra:this.isHasTests||!this.isHasRoots}},o("thead",null,o("tr",null,!this.isHasRoots&&o("th",{class:"col_issuer"},o("peculiar-typography",{type:"h7",align:"left"},s.getString("issuer"))),o("th",{class:"col_name"},o("peculiar-typography",{type:"h7",align:"left"},s.getString("name"))),o("th",{class:"col_public_key"},o("peculiar-typography",{type:"h7",align:"left"},s.getString("publicKey"))),o("th",{class:"col_fingerprint"},o("peculiar-typography",{type:"h7",align:"left"},s.getString("fingerprint")," (SHA-1)")),o("th",{class:"col_actions"},o("peculiar-typography",{type:"h7",align:"center"},s.getString("actions"))),this.isHasTests&&o("th",{class:"col_tests"},o("peculiar-typography",{type:"h7",align:"center"},s.getString("testURLs"))))),o("tbody",null,this.renderBody())),this.renderCertificateDetailsModal(),this.isDecodeInProcess&&this.renderLoadingState())};Object.defineProperty(e,"watchers",{get:function(){return{certificates:["watchCertificates"]}},enumerable:false,configurable:true});return e}());d.style=c}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,r,o){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function n(e){try{s(o.next(e))}catch(t){i(t)}}function l(e){try{s(o["throw"](e))}catch(t){i(t)}}function s(e){e.done?r(e.value):a(e.value).then(n,l)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,a,i,n;return n={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function l(e){return function(t){return s([e,t])}}function s(n){if(o)throw new TypeError("Generator is already executing.");while(r)try{if(o=1,a&&(i=n[0]&2?a["return"]:n[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,n[1])).done)return i;if(a=0,i)n=[n[0]&2,i.value];switch(n[0]){case 0:case 1:i=n;break;case 4:r.label++;return{value:n[1],done:false};case 5:r.label++;a=n[1];n=[0];continue;case 7:n=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(n[0]===6||n[0]===2)){r=0;continue}if(n[0]===3&&(!i||n[1]>i[0]&&n[1]<i[3])){r.label=n[1];break}if(n[0]===6&&r.label<i[1]){r.label=i[1];i=n;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(n);break}if(i[2])r.ops.pop();r.trys.pop();continue}n=t.call(e,r)}catch(l){n=[6,l];a=0}finally{o=i=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};System.register(["./p-9f815f76.system.js","./p-05d621c2.system.js","./p-be2b0d6d.system.js"],(function(e){"use strict";var t,r,o,a,i,n,l,s;return{setters:[function(e){t=e.r;r=e.c;o=e.h;a=e.H},function(e){i=e.aq;n=e.al;l=e.O},function(e){s=e.l}],execute:function(){var c=':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::-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::-webkit-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}}';var d=e("peculiar_certificates_viewer",function(){function e(e){var o=this;t(this,e);this.detailsOpen=r(this,"detailsOpen",7);this.detailsClose=r(this,"detailsClose",7);this.certificates=[];this.filterWithSearch=true;this.highlightWithSearch=true;this.search="";this.certificatesDecoded=[];this.isDecodeInProcess=true;this.isHasTests=false;this.isHasRoots=false;this.handleClickDetails=function(e,t){t.stopPropagation();o.certificateSelectedForDetails=e;o.detailsOpen.emit(e)};this.handleModalClose=function(){o.certificateSelectedForDetails=undefined;o.detailsClose.emit()};this.handleSearch=function(e){o.search=e.target.value.trim()}}e.prototype.componentWillLoad=function(){this.certificatesDecodeAndSet()};e.prototype.watchCertificates=function(e,t){if(JSON.stringify(e)!==JSON.stringify(t)){this.certificatesDecodeAndSet()}};e.prototype.certificatesDecodeAndSet=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,o,a,n,l,s;return __generator(this,(function(c){switch(c.label){case 0:e=false;t=false;if(!Array.isArray(this.certificates)){return[2]}r=[];o=0,a=this.certificates;c.label=1;case 1:if(!(o<a.length))return[3,6];n=a[o];c.label=2;case 2:c.trys.push([2,4,,5]);l=new i(n.value);return[4,l.getThumbprint("SHA-1")];case 3:c.sent();r.push({body:l,tests:n.tests,name:n.name});if(!t&&l.isRoot){t=true}if(!e){if(n.tests&&(n.tests.expired||n.tests.revoked||n.tests.valid)){e=true}}return[3,5];case 4:s=c.sent();console.error("Error certificate parse:",s);return[3,5];case 5:o++;return[3,1];case 6:this.isHasTests=e;this.isHasRoots=t;this.isDecodeInProcess=false;this.certificatesDecoded=r;return[2]}}))}))};e.prototype.handleClickDownloadAsPem=function(e,t){t.stopPropagation();n.certificate.asPEM(e.body.exportAsPemFormatted(),e.name||e.body.commonName)};e.prototype.handleClickDownloadAsDer=function(e,t){t.stopPropagation();n.certificate.asPEM(e.body.exportAsHexFormatted(),e.name||e.body.commonName)};e.prototype.handleClickRow=function(e){var t=this.expandedRow===e;this.expandedRow=t?undefined:e};e.prototype.getMaxColSpanValue=function(){var e=4;if(this.isHasTests){e+=1}if(!this.isHasRoots){e+=1}return e};e.prototype.renderExpandedRow=function(e){var t=this.getMaxColSpanValue();return o("tr",{class:"expanded_summary"},o("td",{colSpan:t},o("peculiar-certificate-summary",{certificate:e,showIssuer:!e.isRoot})))};e.prototype.renderCertificateTests=function(e){if(!e){return null}var t=[];if(e.valid){t.push(o("peculiar-button",{class:"button_table_action",href:e.valid,target:"_blank"},s.getString("valid")))}if(e.revoked){t.push(o("peculiar-button",{class:"button_table_action",href:e.revoked,target:"_blank"},s.getString("revoked")))}if(e.expired){t.push(o("peculiar-button",{class:"button_table_action",href:e.expired,target:"_blank"},s.getString("expired")))}return t};e.prototype.renderContentState=function(){var e=this;var t=this.highlightWithSearch?this.search:"";var r=[];this.certificatesDecoded.forEach((function(a,i){var n=i===e.expandedRow;var c=l[a.body.signature.algorithm]||a.body.signature.algorithm;if(e.filterWithSearch&&e.search){var d=[c,a.body.issuerCommonName,a.name,a.body.commonName,a.body.thumbprints["SHA-1"]].join(" ").toLowerCase();if(d.indexOf(e.search.toLowerCase())===-1){return}}r.push([o("tr",{class:{expanded:n},onClick:e.handleClickRow.bind(e,i),key:i},!e.isHasRoots&&o("td",null,o("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("issuer"),":"),o("peculiar-typography",{class:"content"},o("peculiar-highlight-words",{search:t},a.body.issuerCommonName))),o("td",null,o("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("name"),":"),o("peculiar-typography",{class:"content"},o("peculiar-highlight-words",{search:t},a.name||a.body.commonName))),o("td",null,o("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("publicKey"),":"),o("peculiar-typography",{class:"content"},o("peculiar-highlight-words",{search:t},c))),o("td",null,o("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("fingerprint")," (SHA-1):"),o("peculiar-typography",{class:"content",monospace:true},o("peculiar-highlight-words",{search:t},a.body.thumbprints["SHA-1"]))),o("td",{class:"align_center"},o("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("actions"),":"),o("span",{class:"content"},o("peculiar-button",{onClick:e.handleClickDetails.bind(e,a.body),class:"button_table_action"},s.getString("details")),o("peculiar-button-split",{onClick:e.handleClickDownloadAsPem.bind(e,a),actions:[{text:s.getString("download.der"),onClick:e.handleClickDownloadAsDer.bind(e,a)}],class:"button_table_action"},s.getString("download.pem")))),e.isHasTests&&o("td",{class:"align_center"},o("peculiar-typography",{class:"mobile_title",color:"grey_5"},s.getString("testURLs"),":"),o("span",{class:"content"},e.renderCertificateTests(a.tests)))),n&&e.renderExpandedRow(a.body)])}));return r};e.prototype.renderCertificateDetailsModal=function(){if(!this.certificateSelectedForDetails){return null}return o("div",{class:"modal_wrapper",role:"presentation","aria-hidden":"false",part:"presentation"},o("div",{class:"modal_backdrop",onClick:this.handleModalClose,"aria-hidden":"true"}),o("div",{class:"modal_container",role:"dialog",part:"presentation_container"},o("header",{class:"modal_title"},o("peculiar-typography",{type:"h4"},s.getString("certificateDetails")),o("button",{class:"modal_close",onClick:this.handleModalClose,type:"button","aria-label":"Close",title:"Close"},o("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"},o("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"})))),o("div",{class:"modal_content"},o("peculiar-certificate-viewer",{certificate:this.certificateSelectedForDetails}))))};e.prototype.renderSearch=function(){if(!this.filterWithSearch&&!this.highlightWithSearch){return null}return o("div",{class:"search_section"},o("input",{onInput:this.handleSearch,type:"search",value:"",class:"input_search",disabled:!this.certificatesDecoded.length,placeholder:"Search"}))};e.prototype.renderEmptyState=function(){var e=this.getMaxColSpanValue();return o("tr",null,o("td",{class:"status_wrapper",colSpan:e},o("peculiar-typography",{type:"b1",align:"center"},"There are no certificates available.")))};e.prototype.renderEmptySearchState=function(){var e=this.getMaxColSpanValue();return o("tr",null,o("td",{class:"status_wrapper",colSpan:e},o("peculiar-typography",{type:"b1",align:"center"},"No results found for “",this.search,"“")))};e.prototype.renderLoadingState=function(){return o("div",{class:"loading_container"},o("peculiar-circular-progress",null))};e.prototype.renderBody=function(){if(this.isDecodeInProcess){return null}if(!this.certificatesDecoded.length){return this.renderEmptyState()}var e=this.renderContentState();if(this.search&&!e.length){return this.renderEmptySearchState()}return e};e.prototype.render=function(){return o(a,null,this.renderSearch(),o("table",{class:{m_extra:this.isHasTests||!this.isHasRoots}},o("thead",null,o("tr",null,!this.isHasRoots&&o("th",{class:"col_issuer"},o("peculiar-typography",{type:"h7",align:"left"},s.getString("issuer"))),o("th",{class:"col_name"},o("peculiar-typography",{type:"h7",align:"left"},s.getString("name"))),o("th",{class:"col_public_key"},o("peculiar-typography",{type:"h7",align:"left"},s.getString("publicKey"))),o("th",{class:"col_fingerprint"},o("peculiar-typography",{type:"h7",align:"left"},s.getString("fingerprint")," (SHA-1)")),o("th",{class:"col_actions"},o("peculiar-typography",{type:"h7",align:"center"},s.getString("actions"))),this.isHasTests&&o("th",{class:"col_tests"},o("peculiar-typography",{type:"h7",align:"center"},s.getString("testURLs"))))),o("tbody",null,this.renderBody())),this.renderCertificateDetailsModal(),this.isDecodeInProcess&&this.renderLoadingState())};Object.defineProperty(e,"watchers",{get:function(){return{certificates:["watchCertificates"]}},enumerable:false,configurable:true});return e}());d.style=c}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"./p-bd949790.js";import{p as i}from"./p-198d9121.js";i().then(i=>e([["p-
|
|
1
|
+
import{b as e}from"./p-bd949790.js";import{p as i}from"./p-198d9121.js";i().then(i=>e([["p-d97c01b2",[[1,"peculiar-certificate-decoder",{certificateExample:[1,"certificate-example"],certificateDecoded:[32]}],[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-csr-viewer",{certificate:[513],download:[4],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],view:[513],isDecodeInProcess:[32]}],[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]}],[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-8a166731",[[1,"peculiar-certificate-summary",{certificate:[16],showIssuer:[4,"show-issuer"]}],[1,"peculiar-circular-progress",{size:[2],width:[2]}],[1,"peculiar-highlight-words",{search:[1]}]]],["p-bbac8b2a",[[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]}]]]],i));
|
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
9
9
|
interface IBasicInformationProps {
|
|
10
|
-
serialNumber
|
|
11
|
-
version
|
|
12
|
-
validity
|
|
13
|
-
notBefore
|
|
14
|
-
notAfter
|
|
10
|
+
serialNumber?: string;
|
|
11
|
+
version?: number;
|
|
12
|
+
validity?: string;
|
|
13
|
+
notBefore?: Date;
|
|
14
|
+
notAfter?: Date;
|
|
15
|
+
type: string;
|
|
15
16
|
}
|
|
16
17
|
export declare const BasicInformation: FunctionalComponent<IBasicInformationProps>;
|
|
17
18
|
export {};
|
|
@@ -25,6 +25,7 @@ export declare class CSR extends AsnData<CertificationRequest> {
|
|
|
25
25
|
readonly version: number;
|
|
26
26
|
attributes: Attribute<TAttributeValue>[];
|
|
27
27
|
thumbprints: Record<string, string>;
|
|
28
|
+
type: string;
|
|
28
29
|
constructor(raw: string);
|
|
29
30
|
get publicKey(): IPublicKey;
|
|
30
31
|
get signature(): ISignature;
|
|
@@ -25,6 +25,7 @@ export declare class X509AttributeCertificate extends AsnData<AttributeCertifica
|
|
|
25
25
|
thumbprints: Record<string, string>;
|
|
26
26
|
readonly issuer: GeneralName[];
|
|
27
27
|
holder: Holder;
|
|
28
|
+
type: string;
|
|
28
29
|
constructor(raw: string);
|
|
29
30
|
get signature(): ISignature;
|
|
30
31
|
parseExtensions(): void;
|
|
@@ -30,6 +30,7 @@ export declare class X509Certificate extends AsnData<Certificate> {
|
|
|
30
30
|
extensions: Extension<TExtensionValue>[];
|
|
31
31
|
readonly version: number;
|
|
32
32
|
thumbprints: Record<string, string>;
|
|
33
|
+
type: string;
|
|
33
34
|
constructor(raw: string);
|
|
34
35
|
parseExtensions(): void;
|
|
35
36
|
get publicKey(): IPublicKey;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peculiar/certificates-viewer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.3",
|
|
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": [
|
|
@@ -38,29 +38,29 @@
|
|
|
38
38
|
"@stencil/postcss": "^1.0.1",
|
|
39
39
|
"@stencil/sass": "^1.3.2",
|
|
40
40
|
"autoprefixer": "^9.8.6",
|
|
41
|
-
"gh-pages": "^
|
|
41
|
+
"gh-pages": "^3.2.3",
|
|
42
42
|
"rimraf": "^3.0.2"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@peculiar/asn1-adobe-acrobat": "^2.0.
|
|
46
|
-
"@peculiar/asn1-cert-transparency": "^2.0.
|
|
47
|
-
"@peculiar/asn1-csr": "^2.0.
|
|
48
|
-
"@peculiar/asn1-ecc": "^2.0.
|
|
49
|
-
"@peculiar/asn1-lei": "^2.0.
|
|
50
|
-
"@peculiar/asn1-ntqwac": "^2.0.
|
|
51
|
-
"@peculiar/asn1-pkcs9": "^2.0.
|
|
52
|
-
"@peculiar/asn1-rfc8226": "^2.0.
|
|
53
|
-
"@peculiar/asn1-rsa": "^2.0.
|
|
54
|
-
"@peculiar/asn1-schema": "^2.0.
|
|
55
|
-
"@peculiar/asn1-x509": "^2.0.
|
|
56
|
-
"@peculiar/asn1-x509-attr": "^2.0.
|
|
57
|
-
"@peculiar/asn1-x509-logotype": "^2.0.
|
|
58
|
-
"@peculiar/asn1-x509-microsoft": "^2.0.
|
|
59
|
-
"@peculiar/asn1-x509-netscape": "^2.0.
|
|
60
|
-
"@peculiar/asn1-x509-qualified": "^2.0.
|
|
61
|
-
"dayjs": "^1.10.
|
|
45
|
+
"@peculiar/asn1-adobe-acrobat": "^2.0.44",
|
|
46
|
+
"@peculiar/asn1-cert-transparency": "^2.0.44",
|
|
47
|
+
"@peculiar/asn1-csr": "^2.0.44",
|
|
48
|
+
"@peculiar/asn1-ecc": "^2.0.44",
|
|
49
|
+
"@peculiar/asn1-lei": "^2.0.44",
|
|
50
|
+
"@peculiar/asn1-ntqwac": "^2.0.44",
|
|
51
|
+
"@peculiar/asn1-pkcs9": "^2.0.44",
|
|
52
|
+
"@peculiar/asn1-rfc8226": "^2.0.44",
|
|
53
|
+
"@peculiar/asn1-rsa": "^2.0.44",
|
|
54
|
+
"@peculiar/asn1-schema": "^2.0.44",
|
|
55
|
+
"@peculiar/asn1-x509": "^2.0.44",
|
|
56
|
+
"@peculiar/asn1-x509-attr": "^2.0.44",
|
|
57
|
+
"@peculiar/asn1-x509-logotype": "^2.0.44",
|
|
58
|
+
"@peculiar/asn1-x509-microsoft": "^2.0.44",
|
|
59
|
+
"@peculiar/asn1-x509-netscape": "^2.0.44",
|
|
60
|
+
"@peculiar/asn1-x509-qualified": "^2.0.44",
|
|
61
|
+
"dayjs": "^1.10.7",
|
|
62
62
|
"history": "^4.10.1",
|
|
63
|
-
"pvtsutils": "^1.2.
|
|
63
|
+
"pvtsutils": "^1.2.1"
|
|
64
64
|
},
|
|
65
65
|
"license": "MIT",
|
|
66
66
|
"author": "PeculiarVentures Team",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "72e5e9db824534c21ef0c8e05885b1f7907e3389"
|
|
76
76
|
}
|