@peculiar/certificates-viewer 4.9.0 → 4.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/attribute-certificate-viewer.js +1 -1
- package/components/attribute-certificate-viewer.js.map +1 -1
- package/components/certificate-chain-viewer.js +1 -1
- package/components/certificate-chain-viewer.js.map +1 -1
- package/components/certificate-viewer.js +1 -1
- package/components/certificate-viewer.js.map +1 -1
- package/components/circular-progress.js +2 -2
- package/components/crl-viewer.js +2 -2
- package/components/crl-viewer.js.map +1 -1
- package/components/csr-viewer.js +1 -1
- package/components/csr-viewer.js.map +1 -1
- package/components/download.js +83 -12
- package/components/download.js.map +1 -1
- package/components/highlight-words.js +1 -1
- package/components/miscellaneous.js +17 -1
- package/components/miscellaneous.js.map +1 -1
- package/components/peculiar-certificate-decoder.js +51 -53
- package/components/peculiar-certificate-decoder.js.map +1 -1
- package/components/peculiar-certificates-viewer.js +1 -1
- package/components/ssh-certificate-viewer.js +2 -2
- package/components/ssh-certificate-viewer.js.map +1 -1
- package/components/text-hider.js +1 -1
- package/dist/cjs/{extension-BDpdRJkE.js → extension-Ba-KQhu5.js} +4 -3
- package/dist/cjs/extension-Ba-KQhu5.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{miscellaneous-DmTT_MGG.js → miscellaneous-CtuYfnBB.js} +19 -4
- package/dist/cjs/miscellaneous-CtuYfnBB.js.map +1 -0
- package/dist/cjs/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer_5.cjs.entry.js +10 -10
- package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +3 -3
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +54 -55
- package/dist/cjs/peculiar-certificate-decoder.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +5 -5
- package/dist/cjs/peculiar-certificate-viewer.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +3 -3
- package/dist/cjs/peculiar-text-hider.cjs.entry.js +1 -1
- package/dist/cjs/peculiar.cjs.js +1 -1
- package/dist/cjs/{pkcs10_certificate_request-DZLiHGCV.js → pkcs10_certificate_request-BDLZWqTP.js} +3 -3
- package/dist/cjs/{pkcs10_certificate_request-DZLiHGCV.js.map → pkcs10_certificate_request-BDLZWqTP.js.map} +1 -1
- package/dist/cjs/{ssh_certificate-Bh14rhzR.js → ssh_certificate-Gu4FwsRk.js} +86 -13
- package/dist/cjs/ssh_certificate-Gu4FwsRk.js.map +1 -0
- package/dist/cjs/{x509_certificate-p8RMn7Hw.js → x509_certificate-BSOf2t9Y.js} +4 -4
- package/dist/cjs/{x509_certificate-p8RMn7Hw.js.map → x509_certificate-BSOf2t9Y.js.map} +1 -1
- package/dist/cjs/{x509_crl-tjmX6l3R.js → x509_crl-BgUtqkpv.js} +5 -5
- package/dist/cjs/{x509_crl-tjmX6l3R.js.map → x509_crl-BgUtqkpv.js.map} +1 -1
- package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +1 -1
- package/dist/collection/components/button-menu/button-menu.js +1 -1
- package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.css +6 -5
- package/dist/collection/components/certificate-decoder/certificate-decoder.js +53 -63
- package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/apple_developer_id_date_extension.js +19 -0
- package/dist/collection/components/certificate-details-parts/extensions/apple_developer_id_date_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/index.js +5 -1
- package/dist/collection/components/certificate-details-parts/extensions/index.js.map +1 -1
- package/dist/collection/components/certificate-viewer/certificate-viewer.css +6 -5
- package/dist/collection/components/certificate-viewer/certificate-viewer.js +1 -1
- package/dist/collection/components/certificates-viewer/certificates-viewer.js +1 -1
- package/dist/collection/components/circular-progress/circular-progress.js +2 -2
- package/dist/collection/components/crl-viewer/crl-viewer.js +1 -1
- package/dist/collection/components/csr-viewer/csr-viewer.js +1 -1
- package/dist/collection/components/highlight-words/highlight-words.js +1 -1
- package/dist/collection/components/ssh-certificate-viewer/ssh-certificate-viewer.js +1 -1
- package/dist/collection/components/text-hider/text-hider.js +1 -1
- package/dist/collection/constants/oids.js +27 -6
- package/dist/collection/constants/oids.js.map +1 -1
- package/dist/collection/crypto/extension.js +2 -1
- package/dist/collection/crypto/extension.js.map +1 -1
- package/dist/collection/crypto/extensions/apple_developer_id_date.js +53 -0
- package/dist/collection/crypto/extensions/apple_developer_id_date.js.map +1 -0
- package/dist/collection/crypto/extensions/index.js +1 -0
- package/dist/collection/crypto/extensions/index.js.map +1 -1
- package/dist/collection/www-copy/favicon.svg +1 -0
- package/dist/collection/www-copy/index.js +5 -10
- package/dist/esm/{extension-xW03sQxn.js → extension-8GydD2wh.js} +4 -3
- package/dist/esm/extension-8GydD2wh.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{miscellaneous-D-Qxv14j.js → miscellaneous-Bxm6kKwP.js} +19 -4
- package/dist/esm/miscellaneous-Bxm6kKwP.js.map +1 -0
- package/dist/esm/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.js.map +1 -1
- package/dist/esm/peculiar-attribute-certificate-viewer_5.entry.js +10 -10
- package/dist/esm/peculiar-button-menu_3.entry.js +3 -3
- package/dist/esm/peculiar-certificate-decoder.entry.js +54 -55
- package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -1
- package/dist/esm/peculiar-certificate-viewer.entry.js +5 -5
- package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -1
- package/dist/esm/peculiar-certificates-viewer.entry.js +3 -3
- package/dist/esm/peculiar-text-hider.entry.js +1 -1
- package/dist/esm/peculiar.js +1 -1
- package/dist/esm/{pkcs10_certificate_request-Crr9FABo.js → pkcs10_certificate_request-B_lMfAi8.js} +3 -3
- package/dist/esm/{pkcs10_certificate_request-Crr9FABo.js.map → pkcs10_certificate_request-B_lMfAi8.js.map} +1 -1
- package/dist/esm/{ssh_certificate-CmOVFH_Z.js → ssh_certificate-Del2D5s9.js} +85 -14
- package/dist/esm/ssh_certificate-Del2D5s9.js.map +1 -0
- package/dist/esm/{x509_certificate-C2EVTspY.js → x509_certificate-DRGTrdPm.js} +4 -4
- package/dist/{esm-es5/x509_certificate-C2EVTspY.js.map → esm/x509_certificate-DRGTrdPm.js.map} +1 -1
- package/dist/esm/{x509_crl-Bdnys_YT.js → x509_crl-rO-rdi1G.js} +5 -5
- package/dist/{esm-es5/x509_crl-Bdnys_YT.js.map → esm/x509_crl-rO-rdi1G.js.map} +1 -1
- package/dist/esm-es5/extension-8GydD2wh.js +12 -0
- package/dist/esm-es5/extension-8GydD2wh.js.map +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{miscellaneous-D-Qxv14j.js → miscellaneous-Bxm6kKwP.js} +10 -3
- package/dist/esm-es5/miscellaneous-Bxm6kKwP.js.map +1 -0
- package/dist/esm-es5/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_5.entry.js +5 -5
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_5.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-button-menu_3.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js +2 -2
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js +2 -2
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +1 -1
- package/dist/esm-es5/peculiar-text-hider.entry.js +1 -1
- package/dist/esm-es5/peculiar.js +1 -1
- package/dist/esm-es5/{pkcs10_certificate_request-Crr9FABo.js → pkcs10_certificate_request-B_lMfAi8.js} +2 -2
- package/dist/esm-es5/{pkcs10_certificate_request-Crr9FABo.js.map → pkcs10_certificate_request-B_lMfAi8.js.map} +1 -1
- package/dist/esm-es5/{ssh_certificate-CmOVFH_Z.js → ssh_certificate-Del2D5s9.js} +5 -5
- package/dist/esm-es5/ssh_certificate-Del2D5s9.js.map +1 -0
- package/dist/esm-es5/{x509_certificate-C2EVTspY.js → x509_certificate-DRGTrdPm.js} +2 -2
- package/dist/{esm/x509_certificate-C2EVTspY.js.map → esm-es5/x509_certificate-DRGTrdPm.js.map} +1 -1
- package/dist/esm-es5/{x509_crl-Bdnys_YT.js → x509_crl-rO-rdi1G.js} +2 -2
- package/dist/{esm/x509_crl-Bdnys_YT.js.map → esm-es5/x509_crl-rO-rdi1G.js.map} +1 -1
- package/dist/peculiar/index.esm.js +1 -1
- package/dist/peculiar/p-1fb833f3.entry.js +5 -0
- package/dist/peculiar/{p-3424de20.system.entry.js → p-64cc6da1.system.entry.js} +2 -2
- package/dist/peculiar/{p-09ff70a5.entry.js → p-76472b19.entry.js} +2 -2
- package/dist/peculiar/{p-09ff70a5.entry.js.map → p-76472b19.entry.js.map} +1 -1
- package/dist/peculiar/p-7b83898f.entry.js +152 -0
- package/dist/peculiar/{p-cc647eff.entry.js.map → p-7b83898f.entry.js.map} +1 -1
- package/dist/peculiar/{p-f7ee4d56.entry.js → p-7c5aa1f5.entry.js} +2 -2
- package/dist/peculiar/{p-f7ee4d56.entry.js.map → p-7c5aa1f5.entry.js.map} +1 -1
- package/dist/peculiar/p-8d36d2f8.system.entry.js +5 -0
- package/dist/peculiar/p-8d36d2f8.system.entry.js.map +1 -0
- package/dist/peculiar/{p-3a493e87.entry.js → p-95f81b6d.entry.js} +2 -2
- package/dist/peculiar/p-9ab5fa9f.entry.js +5 -0
- package/dist/peculiar/p-9ab5fa9f.entry.js.map +1 -0
- package/dist/peculiar/{p-DberG072.system.js → p-B5d7q9FD.system.js} +4 -4
- package/dist/peculiar/{p-DberG072.system.js.map → p-B5d7q9FD.system.js.map} +1 -1
- package/dist/peculiar/{p-B7cL9SBA.js → p-BAnW9WLg.js} +4 -4
- package/dist/peculiar/{p-B7cL9SBA.js.map → p-BAnW9WLg.js.map} +1 -1
- package/dist/peculiar/p-BKLsbktK.system.js +135 -0
- package/dist/peculiar/p-BKLsbktK.system.js.map +1 -0
- package/dist/peculiar/{p-vXPL1mjI.system.js.map → p-BQoMhw1w.system.js.map} +1 -1
- package/dist/peculiar/{p-1yfbC8AM.js → p-Ba1oqaJ3.js} +61 -54
- package/dist/peculiar/p-Ba1oqaJ3.js.map +1 -0
- package/dist/peculiar/{p-CGipIfjs.system.js → p-BakSwSe7.system.js} +2 -2
- package/dist/peculiar/{p-CGipIfjs.system.js.map → p-BakSwSe7.system.js.map} +1 -1
- package/dist/peculiar/p-Blt9UUmt.system.js.map +1 -0
- package/dist/peculiar/p-BpRY-zq0.system.js.map +1 -0
- package/dist/peculiar/p-CDZsc_KS.system.js.map +1 -0
- package/dist/peculiar/{p-B4vvBwd6.js → p-CH0mNFdH.js} +3 -3
- package/dist/peculiar/{p-B4vvBwd6.js.map → p-CH0mNFdH.js.map} +1 -1
- package/dist/peculiar/{p-Bfl7RVFY.system.js → p-CTj-Drej.system.js} +4 -4
- package/dist/peculiar/{p-Bfl7RVFY.system.js.map → p-CTj-Drej.system.js.map} +1 -1
- package/dist/peculiar/{p-BvX2AYI4.system.js.map → p-CgXNYogJ.system.js.map} +1 -1
- package/dist/peculiar/p-Cp20xosi.js +12 -0
- package/dist/peculiar/p-Cp20xosi.js.map +1 -0
- package/dist/peculiar/{p-Cq11_gqW.system.js → p-DPnMJlS4.system.js} +2 -2
- package/dist/peculiar/p-DPnMJlS4.system.js.map +1 -0
- package/dist/peculiar/{p-tkt_tT15.system.js → p-DcqxnCVz.system.js} +61 -54
- package/dist/peculiar/p-DcqxnCVz.system.js.map +1 -0
- package/dist/peculiar/{p-CmOVFH_Z.js → p-Del2D5s9.js} +8 -8
- package/dist/peculiar/p-Del2D5s9.js.map +1 -0
- package/dist/peculiar/{p-BxiR02Uf.js → p-DrLCyy39.js} +4 -4
- package/dist/peculiar/{p-BxiR02Uf.js.map → p-DrLCyy39.js.map} +1 -1
- package/dist/peculiar/{p-7HEye5oH.system.js.map → p-MyCIZClD.system.js.map} +1 -1
- package/dist/peculiar/p-b8bb96f4.system.entry.js +5 -0
- package/dist/peculiar/{p-83235159.system.entry.js → p-d2b87ce5.system.entry.js} +2 -2
- package/dist/peculiar/{p-83235159.system.entry.js.map → p-d2b87ce5.system.entry.js.map} +1 -1
- package/dist/peculiar/p-da018463.system.entry.js +153 -0
- package/dist/peculiar/p-da018463.system.entry.js.map +1 -0
- package/dist/peculiar/{p-4ff3d82a.system.entry.js → p-f30eb78c.system.entry.js} +2 -2
- package/dist/peculiar/p-f30eb78c.system.entry.js.map +1 -0
- package/dist/peculiar/p-hEr9Uo3G.system.js +1 -1
- package/dist/peculiar/p-itJt0J5g.system.js +12 -0
- package/dist/peculiar/p-itJt0J5g.system.js.map +1 -0
- package/dist/peculiar/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar-certificate-decoder.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar-certificate-viewer.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +8 -10
- package/dist/types/components/certificate-details-parts/extensions/apple_developer_id_date_extension.d.ts +15 -0
- package/dist/types/components.d.ts +6 -6
- package/dist/types/constants/oids.d.ts +23 -2
- package/dist/types/crypto/extension.d.ts +2 -1
- package/dist/types/crypto/extensions/apple_developer_id_date.d.ts +19 -0
- package/dist/types/crypto/extensions/index.d.ts +1 -0
- package/hydrate/index.js +158 -71
- package/hydrate/index.mjs +158 -71
- package/package.json +31 -30
- package/dist/cjs/extension-BDpdRJkE.js.map +0 -1
- package/dist/cjs/miscellaneous-DmTT_MGG.js.map +0 -1
- package/dist/cjs/ssh_certificate-Bh14rhzR.js.map +0 -1
- package/dist/collection/components/certificate-decoder/certificate-decoder.css +0 -475
- package/dist/esm/extension-xW03sQxn.js.map +0 -1
- package/dist/esm/miscellaneous-D-Qxv14j.js.map +0 -1
- package/dist/esm/ssh_certificate-CmOVFH_Z.js.map +0 -1
- package/dist/esm-es5/extension-xW03sQxn.js +0 -12
- package/dist/esm-es5/extension-xW03sQxn.js.map +0 -1
- package/dist/esm-es5/miscellaneous-D-Qxv14j.js.map +0 -1
- package/dist/esm-es5/ssh_certificate-CmOVFH_Z.js.map +0 -1
- package/dist/peculiar/p-1yfbC8AM.js.map +0 -1
- package/dist/peculiar/p-342e499f.system.entry.js +0 -5
- package/dist/peculiar/p-4ff3d82a.system.entry.js.map +0 -1
- package/dist/peculiar/p-529dac51.system.entry.js +0 -153
- package/dist/peculiar/p-529dac51.system.entry.js.map +0 -1
- package/dist/peculiar/p-64517c6e.system.entry.js +0 -5
- package/dist/peculiar/p-64517c6e.system.entry.js.map +0 -1
- package/dist/peculiar/p-7777c7dc.entry.js +0 -5
- package/dist/peculiar/p-7777c7dc.entry.js.map +0 -1
- package/dist/peculiar/p-BJbjDQRd.system.js.map +0 -1
- package/dist/peculiar/p-CLcRtCZ9.system.js +0 -135
- package/dist/peculiar/p-CLcRtCZ9.system.js.map +0 -1
- package/dist/peculiar/p-Ck3muCzg.system.js.map +0 -1
- package/dist/peculiar/p-Ckf8xErP.system.js +0 -12
- package/dist/peculiar/p-Ckf8xErP.system.js.map +0 -1
- package/dist/peculiar/p-CmOVFH_Z.js.map +0 -1
- package/dist/peculiar/p-Cq11_gqW.system.js.map +0 -1
- package/dist/peculiar/p-DXA1451q.js +0 -12
- package/dist/peculiar/p-DXA1451q.js.map +0 -1
- package/dist/peculiar/p-Drk9aw2j.system.js.map +0 -1
- package/dist/peculiar/p-cc647eff.entry.js +0 -152
- package/dist/peculiar/p-ce08fab1.entry.js +0 -5
- package/dist/peculiar/p-tkt_tT15.system.js.map +0 -1
- /package/dist/peculiar/{p-ce08fab1.entry.js.map → p-1fb833f3.entry.js.map} +0 -0
- /package/dist/peculiar/{p-3424de20.system.entry.js.map → p-64cc6da1.system.entry.js.map} +0 -0
- /package/dist/peculiar/{p-3a493e87.entry.js.map → p-95f81b6d.entry.js.map} +0 -0
- /package/dist/peculiar/{p-342e499f.system.entry.js.map → p-b8bb96f4.system.entry.js.map} +0 -0
|
@@ -20,7 +20,7 @@ import { id_adbe_timestamp, Timestamp, id_adbe_archiveRevInfo, ArchiveRevInfo, }
|
|
|
20
20
|
import { id_pe_logotype, LogotypeExtn, } from "@peculiar/asn1-x509-logotype";
|
|
21
21
|
import { id_pe_TNAuthList, TNAuthorizationList, } from "@peculiar/asn1-rfc8226";
|
|
22
22
|
import { id_ce_keyDescription, NonStandardKeyDescription, } from "@peculiar/asn1-android";
|
|
23
|
-
import { id_cabforganizationIdentifier, CabforganizationIdentifier, } from "./extensions";
|
|
23
|
+
import { id_cabforganizationIdentifier, CabforganizationIdentifier, id_appleDeveloperIdDate, AppleDeveloperIdDate, } from "./extensions";
|
|
24
24
|
import { AsnData } from "./asn_data";
|
|
25
25
|
const extensionParsers = {
|
|
26
26
|
[id_pe_authorityInfoAccess]: AuthorityInfoAccessSyntax,
|
|
@@ -65,6 +65,7 @@ const extensionParsers = {
|
|
|
65
65
|
[id_ce_deltaCRLIndicator]: BaseCRLNumber,
|
|
66
66
|
[id_ce_keyDescription]: NonStandardKeyDescription,
|
|
67
67
|
[id_cabforganizationIdentifier]: CabforganizationIdentifier,
|
|
68
|
+
[id_appleDeveloperIdDate]: AppleDeveloperIdDate,
|
|
68
69
|
};
|
|
69
70
|
export class Extension extends AsnData {
|
|
70
71
|
getAsnExtnValue() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../../src/crypto/extension.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,SAAS,IAAI,YAAY,EAEzB,yBAAyB,EACzB,yBAAyB,EAEzB,4BAA4B,EAC5B,sBAAsB,EAEtB,sBAAsB,EACtB,gBAAgB,EAEhB,uBAAuB,EACvB,iBAAiB,EAEjB,yBAAyB,EACzB,mBAAmB,EAEnB,2BAA2B,EAC3B,qBAAqB,EAErB,8BAA8B,EAC9B,wBAAwB,EAExB,gBAAgB,EAChB,SAAS,EAET,iBAAiB,EACjB,gBAAgB,EAEhB,sBAAsB,EACtB,gBAAgB,EAEhB,oBAAoB,EACpB,cAAc,EAEd,mBAAmB,EACnB,oBAAoB,EAEpB,cAAc,EACd,QAAQ,EAER,qBAAqB,EACrB,eAAe,EAEf,uBAAuB,EACvB,iBAAiB,EAEjB,oBAAoB,EACpB,cAAc,EAEd,oBAAoB,EACpB,sBAAsB,EAEtB,gCAAgC,EAChC,0BAA0B,EAE1B,0BAA0B,EAC1B,oBAAoB,EAEpB,2BAA2B,EAC3B,qBAAqB,EAErB,0BAA0B,EAC1B,kBAAkB,EAElB,uBAAuB,EACvB,uBAAuB,EAEvB,eAAe,EACf,SAAS,EAET,uBAAuB,EACvB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,YAAY,EAEZ,mBAAmB,EACnB,eAAe,GAChB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EAEnB,iBAAiB,EACjB,oBAAoB,EAEpB,YAAY,EACZ,SAAS,GACV,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,kBAAkB,EAClB,eAAe,EAEf,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EACL,MAAM,EACN,SAAS,EAET,OAAO,EACP,OAAO,GACR,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,iBAAiB,EACjB,SAAS,EAET,sBAAsB,EACtB,cAAc,GACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,cAAc,EACd,YAAY,GACb,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,
|
|
1
|
+
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../../src/crypto/extension.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,SAAS,IAAI,YAAY,EAEzB,yBAAyB,EACzB,yBAAyB,EAEzB,4BAA4B,EAC5B,sBAAsB,EAEtB,sBAAsB,EACtB,gBAAgB,EAEhB,uBAAuB,EACvB,iBAAiB,EAEjB,yBAAyB,EACzB,mBAAmB,EAEnB,2BAA2B,EAC3B,qBAAqB,EAErB,8BAA8B,EAC9B,wBAAwB,EAExB,gBAAgB,EAChB,SAAS,EAET,iBAAiB,EACjB,gBAAgB,EAEhB,sBAAsB,EACtB,gBAAgB,EAEhB,oBAAoB,EACpB,cAAc,EAEd,mBAAmB,EACnB,oBAAoB,EAEpB,cAAc,EACd,QAAQ,EAER,qBAAqB,EACrB,eAAe,EAEf,uBAAuB,EACvB,iBAAiB,EAEjB,oBAAoB,EACpB,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AAc,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YAE5E,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,YAAY,CAAM,CAAC;QAChD,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Convert } from 'pvtsutils';\nimport {\n Extension as AsnExtension,\n\n id_pe_authorityInfoAccess,\n AuthorityInfoAccessSyntax,\n\n id_ce_authorityKeyIdentifier,\n AuthorityKeyIdentifier,\n\n id_ce_basicConstraints,\n BasicConstraints,\n\n id_ce_certificateIssuer,\n CertificateIssuer,\n\n id_ce_certificatePolicies,\n CertificatePolicies,\n\n id_ce_cRLDistributionPoints,\n CRLDistributionPoints,\n\n id_ce_issuingDistributionPoint,\n IssuingDistributionPoint,\n\n id_ce_cRLReasons,\n CRLReason,\n\n id_ce_extKeyUsage,\n ExtendedKeyUsage,\n\n id_ce_inhibitAnyPolicy,\n InhibitAnyPolicy,\n\n id_ce_invalidityDate,\n InvalidityDate,\n\n id_ce_issuerAltName,\n IssueAlternativeName,\n\n id_ce_keyUsage,\n KeyUsage,\n\n id_ce_nameConstraints,\n NameConstraints,\n\n id_ce_policyConstraints,\n PolicyConstraints,\n\n id_ce_policyMappings,\n PolicyMappings,\n\n id_ce_subjectAltName,\n SubjectAlternativeName,\n\n id_ce_subjectDirectoryAttributes,\n SubjectDirectoryAttributes,\n\n id_ce_subjectKeyIdentifier,\n SubjectKeyIdentifier,\n\n id_ce_privateKeyUsagePeriod,\n PrivateKeyUsagePeriod,\n\n id_entrust_entrustVersInfo,\n EntrustVersionInfo,\n\n id_pe_subjectInfoAccess,\n SubjectInfoAccessSyntax,\n\n id_ce_cRLNumber,\n CRLNumber,\n\n id_ce_deltaCRLIndicator,\n BaseCRLNumber,\n} from '@peculiar/asn1-x509';\nimport {\n id_pe_qcStatements,\n QCStatements,\n\n id_pe_biometricInfo,\n BiometricSyntax,\n} from '@peculiar/asn1-x509-qualified';\nimport {\n id_certificateTemplate,\n CertificateTemplate,\n\n id_enrollCertType,\n EnrollCertTypeChoice,\n\n id_caVersion,\n CaVersion,\n} from '@peculiar/asn1-x509-microsoft';\nimport {\n id_netscapeComment,\n NetscapeComment,\n\n id_netscapeCertType,\n NetscapeCertType,\n} from '@peculiar/asn1-x509-netscape';\nimport { AsnParser } from '@peculiar/asn1-schema';\nimport {\n id_lei,\n LeiChoice,\n\n id_role,\n LeiRole,\n} from '@peculiar/asn1-lei';\nimport {\n id_certificateTransparency,\n CertificateTransparency,\n} from '@peculiar/asn1-cert-transparency';\nimport {\n id_adbe_timestamp,\n Timestamp,\n\n id_adbe_archiveRevInfo,\n ArchiveRevInfo,\n} from '@peculiar/asn1-adobe-acrobat';\nimport {\n id_pe_logotype,\n LogotypeExtn,\n} from '@peculiar/asn1-x509-logotype';\nimport {\n id_pe_TNAuthList,\n TNAuthorizationList,\n} from '@peculiar/asn1-rfc8226';\nimport {\n id_ce_keyDescription,\n NonStandardKeyDescription,\n} from '@peculiar/asn1-android';\nimport {\n id_cabforganizationIdentifier,\n CabforganizationIdentifier,\n\n id_appleDeveloperIdDate,\n AppleDeveloperIdDate,\n} from './extensions';\nimport { AsnData } from './asn_data';\n\nconst extensionParsers = {\n [id_pe_authorityInfoAccess]: AuthorityInfoAccessSyntax,\n [id_ce_authorityKeyIdentifier]: AuthorityKeyIdentifier,\n [id_ce_basicConstraints]: BasicConstraints,\n [id_ce_certificateIssuer]: CertificateIssuer,\n [id_ce_certificatePolicies]: CertificatePolicies,\n [id_ce_cRLDistributionPoints]: CRLDistributionPoints,\n '2.5.29.46': CRLDistributionPoints,\n [id_ce_issuingDistributionPoint]: IssuingDistributionPoint,\n [id_ce_cRLReasons]: CRLReason,\n [id_ce_extKeyUsage]: ExtendedKeyUsage,\n [id_ce_inhibitAnyPolicy]: InhibitAnyPolicy,\n [id_ce_invalidityDate]: InvalidityDate,\n [id_ce_issuerAltName]: IssueAlternativeName,\n [id_ce_keyUsage]: KeyUsage,\n [id_ce_nameConstraints]: NameConstraints,\n [id_ce_policyConstraints]: PolicyConstraints,\n [id_ce_policyMappings]: PolicyMappings,\n [id_ce_subjectAltName]: SubjectAlternativeName,\n [id_ce_subjectDirectoryAttributes]: SubjectDirectoryAttributes,\n [id_ce_subjectKeyIdentifier]: SubjectKeyIdentifier,\n [id_pe_qcStatements]: QCStatements,\n [id_certificateTemplate]: CertificateTemplate,\n [id_enrollCertType]: EnrollCertTypeChoice,\n [id_netscapeComment]: NetscapeComment,\n [id_netscapeCertType]: NetscapeCertType,\n [id_caVersion]: CaVersion,\n [id_certificateTransparency]: CertificateTransparency,\n [id_lei]: LeiChoice,\n [id_role]: LeiRole,\n [id_adbe_timestamp]: Timestamp,\n [id_adbe_archiveRevInfo]: ArchiveRevInfo,\n [id_ce_privateKeyUsagePeriod]: PrivateKeyUsagePeriod,\n [id_entrust_entrustVersInfo]: EntrustVersionInfo,\n '2.16.724.1.2.2.4.1': BiometricSyntax,\n [id_pe_biometricInfo]: BiometricSyntax,\n [id_pe_logotype]: LogotypeExtn,\n [id_pe_TNAuthList]: TNAuthorizationList,\n [id_pe_subjectInfoAccess]: SubjectInfoAccessSyntax,\n [id_ce_cRLNumber]: CRLNumber,\n [id_ce_deltaCRLIndicator]: BaseCRLNumber,\n [id_ce_keyDescription]: NonStandardKeyDescription,\n [id_cabforganizationIdentifier]: CabforganizationIdentifier,\n [id_appleDeveloperIdDate]: AppleDeveloperIdDate,\n};\n\ntype TExtensionKeys = keyof typeof extensionParsers;\n\nexport type TExtensionValue = InstanceType<typeof extensionParsers[TExtensionKeys]> | string;\n\nexport class Extension<T extends TExtensionValue> extends AsnData<AsnExtension> {\n public readonly value: T;\n\n private getAsnExtnValue() {\n return this.asn.extnValue.buffer;\n }\n\n constructor(raw: BufferSource) {\n super(raw, AsnExtension);\n\n const asnExtnValue = this.getAsnExtnValue();\n\n try {\n const target = extensionParsers[this.asn.extnID];\n\n if (target) {\n this.value = AsnParser.parse<T>(asnExtnValue, target);\n } else {\n console.warn(`Didn't detect parser for \"${this.asn.extnID}\" extension.`);\n\n this.value = Convert.ToHex(asnExtnValue) as T;\n }\n } catch (error) {\n console.error(`Error parse \"${this.asn.extnID}\" extension:`, error.message);\n\n this.value = Convert.ToHex(asnExtnValue) as T;\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
+
*/
|
|
4
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
5
|
+
if (kind === "m")
|
|
6
|
+
throw new TypeError("Private method is not writable");
|
|
7
|
+
if (kind === "a" && !f)
|
|
8
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
10
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
11
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
12
|
+
};
|
|
13
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
14
|
+
if (kind === "a" && !f)
|
|
15
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
16
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
17
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
18
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
19
|
+
};
|
|
20
|
+
var _AppleDeveloperIdDate_buffer;
|
|
21
|
+
import { Utf8String, GeneralizedTime } from "asn1js";
|
|
22
|
+
/**
|
|
23
|
+
* Extension OID for Apple Developer ID date extension.
|
|
24
|
+
*/
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
26
|
+
export const id_appleDeveloperIdDate = '1.2.840.113635.100.6.1.33';
|
|
27
|
+
/**
|
|
28
|
+
* Implements ASN.1 schema for Apple Developer ID date extension.
|
|
29
|
+
*
|
|
30
|
+
* ```asn
|
|
31
|
+
* AppleDeveloperIdDate ::= UTF8String
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export class AppleDeveloperIdDate {
|
|
35
|
+
constructor() {
|
|
36
|
+
_AppleDeveloperIdDate_buffer.set(this, void 0);
|
|
37
|
+
}
|
|
38
|
+
fromASN(asn) {
|
|
39
|
+
__classPrivateFieldSet(this, _AppleDeveloperIdDate_buffer, asn.valueBlock.valueHex, "f");
|
|
40
|
+
this.date = new GeneralizedTime({ value: asn.valueBlock.value })
|
|
41
|
+
.toDate()
|
|
42
|
+
.toISOString();
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
toASN() {
|
|
46
|
+
return new Utf8String({ valueHex: __classPrivateFieldGet(this, _AppleDeveloperIdDate_buffer, "f") });
|
|
47
|
+
}
|
|
48
|
+
toSchema(name) {
|
|
49
|
+
return new Utf8String({ name });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
_AppleDeveloperIdDate_buffer = new WeakMap();
|
|
53
|
+
//# sourceMappingURL=apple_developer_id_date.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apple_developer_id_date.js","sourceRoot":"","sources":["../../../src/crypto/extensions/apple_developer_id_date.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAErD;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG,2BAA2B,CAAC;AAEnE;;;;;;GAMG;AAEH,MAAM,OAAO,oBAAoB;IAAjC;QACE,+CAAqB;IAqBvB,CAAC;IAjBQ,OAAO,CAAC,GAAe;QAC5B,uBAAA,IAAI,gCAAW,GAAG,CAAC,UAAU,CAAC,QAAQ,MAAA,CAAC;QAEvC,IAAI,CAAC,IAAI,GAAG,IAAI,eAAe,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;aAC7D,MAAM,EAAE;aACR,WAAW,EAAE,CAAC;QAEjB,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK;QACV,OAAO,IAAI,UAAU,CAAC,EAAE,QAAQ,EAAE,uBAAA,IAAI,oCAAQ,EAAE,CAAC,CAAC;IACpD,CAAC;IAEM,QAAQ,CAAC,IAAY;QAC1B,OAAO,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAClC,CAAC;CACF","sourcesContent":["import { Utf8String, GeneralizedTime } from 'asn1js';\n\n/**\n * Extension OID for Apple Developer ID date extension.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const id_appleDeveloperIdDate = '1.2.840.113635.100.6.1.33';\n\n/**\n * Implements ASN.1 schema for Apple Developer ID date extension.\n *\n * ```asn\n * AppleDeveloperIdDate ::= UTF8String\n * ```\n */\n\nexport class AppleDeveloperIdDate {\n #buffer: ArrayBuffer;\n\n public date: string;\n\n public fromASN(asn: Utf8String): this {\n this.#buffer = asn.valueBlock.valueHex;\n\n this.date = new GeneralizedTime({ value: asn.valueBlock.value })\n .toDate()\n .toISOString();\n\n return this;\n }\n\n public toASN(): Utf8String {\n return new Utf8String({ valueHex: this.#buffer });\n }\n\n public toSchema(name: string): Utf8String {\n return new Utf8String({ name });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/crypto/extensions/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC","sourcesContent":["export * from './cabforganization_identifier';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/crypto/extensions/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC","sourcesContent":["export * from './cabforganization_identifier';\nexport * from './apple_developer_id_date';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36" fill="none" aria-hidden="true"><path fill="#dbeafe" stroke="#2563eb" stroke-width="1.5" d="M18 2L32 10V26L18 34L4 26V10L18 2Z"></path><path fill="#bfdbfe" fill-opacity="0.7" d="M18 6.5L28.5 12.5V24.5L18 30.5L7.5 24.5V12.5L18 6.5Z"></path><rect fill="#2563eb" x="12.5" y="18.5" width="11" height="8" rx="1.8"></rect><path stroke="#059669" stroke-width="1.7" stroke-linecap="round" fill="none" d="M14.2 18.5V15.2C14.2 13.2 15.9 11.5 18 11.5C20.1 11.5 21.8 13.2 21.8 15.2V18.5"></path><circle fill="#eff6ff" cx="18" cy="22.2" r="1.4"></circle><rect fill="#eff6ff" x="17.3" y="22.2" width="1.4" height="2.2" rx=".7"></rect></svg>
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
// Constants.
|
|
3
3
|
const CERTIFICATE_DECODER_ELEMENT = document.createElement('peculiar-certificate-decoder');
|
|
4
|
-
const HISTORY = window.HistoryLibrary.createBrowserHistory();
|
|
5
4
|
const searchParams = new URLSearchParams(window.location.search);
|
|
5
|
+
const setSearch = (search) => {
|
|
6
|
+
window.history.replaceState(null, '', search);
|
|
7
|
+
};
|
|
6
8
|
|
|
7
9
|
// Listeners.
|
|
8
10
|
CERTIFICATE_DECODER_ELEMENT.addEventListener('successParse', (event) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
setTimeout(() => {
|
|
12
|
-
window.scrollTo({
|
|
13
|
-
top: 560,
|
|
14
|
-
behavior: 'smooth',
|
|
15
|
-
});
|
|
16
|
-
}, 50);
|
|
11
|
+
setSearch(`?cert=${encodeURIComponent(event.detail)}`);
|
|
17
12
|
});
|
|
18
13
|
CERTIFICATE_DECODER_ELEMENT.addEventListener('clearCertificate', () => {
|
|
19
|
-
|
|
14
|
+
setSearch(window.location.pathname);
|
|
20
15
|
});
|
|
21
16
|
|
|
22
17
|
// Default props.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { $ as OctetString, a7 as ByteStream, a8 as SignedCertificateTimestamp, A as AsnData, a9 as Extension$1, q as AsnParser, aa as AppleDeveloperIdDate, ab as CabforganizationIdentifier, ac as NonStandardKeyDescription, ad as BaseCRLNumber, ae as CRLNumber, af as SubjectInfoAccessSyntax, ag as TNAuthorizationList, ah as LogotypeExtn, ai as BiometricSyntax, aj as EntrustVersionInfo, ak as PrivateKeyUsagePeriod, al as ArchiveRevInfo, am as Timestamp, an as LeiRole, ao as LeiChoice, ap as CaVersion, aq as NetscapeCertType, ar as NetscapeComment, as as EnrollCertTypeChoice, at as CertificateTemplate, au as QCStatements, av as SubjectKeyIdentifier, aw as SubjectDirectoryAttributes, ax as SubjectAlternativeName, ay as PolicyMappings, az as PolicyConstraints, aA as NameConstraints, aB as KeyUsage, aC as IssueAlternativeName, aD as InvalidityDate, aE as InhibitAnyPolicy, aF as ExtendedKeyUsage, aG as CRLReason, aH as IssuingDistributionPoint, aI as CRLDistributionPoints, aJ as CertificatePolicies, aK as CertificateIssuer, aL as BasicConstraints, aM as AuthorityKeyIdentifier, aN as AuthorityInfoAccessSyntax, b as buildExports, aO as id_appleDeveloperIdDate, aP as id_cabforganizationIdentifier, aQ as id_ce_keyDescription, aR as id_ce_deltaCRLIndicator, aS as id_ce_cRLNumber, aT as id_pe_subjectInfoAccess, aU as id_pe_TNAuthList, aV as id_pe_biometricInfo, aW as id_entrust_entrustVersInfo, aX as id_ce_privateKeyUsagePeriod, aY as id_adbe_archiveRevInfo, aZ as id_adbe_timestamp, a_ as id_role, a$ as id_lei, b0 as id_caVersion, b1 as id_netscapeCertType, b2 as id_netscapeComment, b3 as id_enrollCertType, b4 as id_certificateTemplate, b5 as id_pe_qcStatements, b6 as id_ce_subjectKeyIdentifier, b7 as id_ce_subjectDirectoryAttributes, b8 as id_ce_subjectAltName, b9 as id_ce_policyMappings, ba as id_ce_policyConstraints, bb as id_ce_nameConstraints, bc as id_ce_keyUsage, bd as id_ce_issuerAltName, be as id_ce_invalidityDate, bf as id_ce_inhibitAnyPolicy, bg as id_ce_extKeyUsage, bh as id_ce_cRLReasons, bi as id_ce_issuingDistributionPoint, bj as id_ce_cRLDistributionPoints, bk as id_ce_certificatePolicies, bl as id_ce_certificateIssuer, bm as id_ce_basicConstraints, bn as id_ce_authorityKeyIdentifier, bo as id_pe_authorityInfoAccess } from './ssh_certificate-Del2D5s9.js';
|
|
5
5
|
|
|
6
6
|
const id_certificateTransparency = "1.3.6.1.4.1.11129.2.4.2";
|
|
7
7
|
class CertificateTransparency extends OctetString {
|
|
@@ -76,6 +76,7 @@ const extensionParsers = {
|
|
|
76
76
|
[id_ce_deltaCRLIndicator]: BaseCRLNumber,
|
|
77
77
|
[id_ce_keyDescription]: NonStandardKeyDescription,
|
|
78
78
|
[id_cabforganizationIdentifier]: CabforganizationIdentifier,
|
|
79
|
+
[id_appleDeveloperIdDate]: AppleDeveloperIdDate,
|
|
79
80
|
};
|
|
80
81
|
class Extension extends AsnData {
|
|
81
82
|
getAsnExtnValue() {
|
|
@@ -102,6 +103,6 @@ class Extension extends AsnData {
|
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
export { CertificateTransparency as C, Extension as E };
|
|
105
|
-
//# sourceMappingURL=extension-
|
|
106
|
+
//# sourceMappingURL=extension-8GydD2wh.js.map
|
|
106
107
|
|
|
107
|
-
//# sourceMappingURL=extension-
|
|
108
|
+
//# sourceMappingURL=extension-8GydD2wh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension-8GydD2wh.js","sources":["../../node_modules/@peculiar/asn1-cert-transparency/build/es2015/cert_transparency.js","../../node_modules/@peculiar/asn1-x509-logotype/build/es2015/object_identifiers.js","src/crypto/extension.ts"],"sourcesContent":["import { OctetString } from \"@peculiar/asn1-schema\";\nimport { SignedCertificateTimestamp } from \"./timestamp\";\nimport { ByteStream } from \"./byte_stream\";\nexport const id_certificateTransparency = \"1.3.6.1.4.1.11129.2.4.2\";\nexport class CertificateTransparency extends OctetString {\n constructor() {\n super(...arguments);\n this.items = [];\n }\n fromASN(asn) {\n super.fromASN(asn);\n const stream = new ByteStream(this.buffer);\n const len = stream.readNumber(2);\n this.items = [];\n while (stream.position < len) {\n this.items.push(new SignedCertificateTimestamp(stream));\n }\n return this;\n }\n toJSON() {\n return this.items.map((o) => o.toJSON());\n }\n}\n","import { id_pkix } from \"@peculiar/asn1-x509\";\nexport const id_pe_logotype = \"1.3.6.1.5.5.7.1.12\";\nexport const id_logo = `${id_pkix}.20`;\nexport const id_logo_loyalty = `${id_logo}.1`;\nexport const id_logo_background = `${id_logo}.2`;\nexport const id_logo_certImage = `${id_logo}.3`;\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Convert } from 'pvtsutils';\nimport {\n Extension as AsnExtension,\n\n id_pe_authorityInfoAccess,\n AuthorityInfoAccessSyntax,\n\n id_ce_authorityKeyIdentifier,\n AuthorityKeyIdentifier,\n\n id_ce_basicConstraints,\n BasicConstraints,\n\n id_ce_certificateIssuer,\n CertificateIssuer,\n\n id_ce_certificatePolicies,\n CertificatePolicies,\n\n id_ce_cRLDistributionPoints,\n CRLDistributionPoints,\n\n id_ce_issuingDistributionPoint,\n IssuingDistributionPoint,\n\n id_ce_cRLReasons,\n CRLReason,\n\n id_ce_extKeyUsage,\n ExtendedKeyUsage,\n\n id_ce_inhibitAnyPolicy,\n InhibitAnyPolicy,\n\n id_ce_invalidityDate,\n InvalidityDate,\n\n id_ce_issuerAltName,\n IssueAlternativeName,\n\n id_ce_keyUsage,\n KeyUsage,\n\n id_ce_nameConstraints,\n NameConstraints,\n\n id_ce_policyConstraints,\n PolicyConstraints,\n\n id_ce_policyMappings,\n PolicyMappings,\n\n id_ce_subjectAltName,\n SubjectAlternativeName,\n\n id_ce_subjectDirectoryAttributes,\n SubjectDirectoryAttributes,\n\n id_ce_subjectKeyIdentifier,\n SubjectKeyIdentifier,\n\n id_ce_privateKeyUsagePeriod,\n PrivateKeyUsagePeriod,\n\n id_entrust_entrustVersInfo,\n EntrustVersionInfo,\n\n id_pe_subjectInfoAccess,\n SubjectInfoAccessSyntax,\n\n id_ce_cRLNumber,\n CRLNumber,\n\n id_ce_deltaCRLIndicator,\n BaseCRLNumber,\n} from '@peculiar/asn1-x509';\nimport {\n id_pe_qcStatements,\n QCStatements,\n\n id_pe_biometricInfo,\n BiometricSyntax,\n} from '@peculiar/asn1-x509-qualified';\nimport {\n id_certificateTemplate,\n CertificateTemplate,\n\n id_enrollCertType,\n EnrollCertTypeChoice,\n\n id_caVersion,\n CaVersion,\n} from '@peculiar/asn1-x509-microsoft';\nimport {\n id_netscapeComment,\n NetscapeComment,\n\n id_netscapeCertType,\n NetscapeCertType,\n} from '@peculiar/asn1-x509-netscape';\nimport { AsnParser } from '@peculiar/asn1-schema';\nimport {\n id_lei,\n LeiChoice,\n\n id_role,\n LeiRole,\n} from '@peculiar/asn1-lei';\nimport {\n id_certificateTransparency,\n CertificateTransparency,\n} from '@peculiar/asn1-cert-transparency';\nimport {\n id_adbe_timestamp,\n Timestamp,\n\n id_adbe_archiveRevInfo,\n ArchiveRevInfo,\n} from '@peculiar/asn1-adobe-acrobat';\nimport {\n id_pe_logotype,\n LogotypeExtn,\n} from '@peculiar/asn1-x509-logotype';\nimport {\n id_pe_TNAuthList,\n TNAuthorizationList,\n} from '@peculiar/asn1-rfc8226';\nimport {\n id_ce_keyDescription,\n NonStandardKeyDescription,\n} from '@peculiar/asn1-android';\nimport {\n id_cabforganizationIdentifier,\n CabforganizationIdentifier,\n\n id_appleDeveloperIdDate,\n AppleDeveloperIdDate,\n} from './extensions';\nimport { AsnData } from './asn_data';\n\nconst extensionParsers = {\n [id_pe_authorityInfoAccess]: AuthorityInfoAccessSyntax,\n [id_ce_authorityKeyIdentifier]: AuthorityKeyIdentifier,\n [id_ce_basicConstraints]: BasicConstraints,\n [id_ce_certificateIssuer]: CertificateIssuer,\n [id_ce_certificatePolicies]: CertificatePolicies,\n [id_ce_cRLDistributionPoints]: CRLDistributionPoints,\n '2.5.29.46': CRLDistributionPoints,\n [id_ce_issuingDistributionPoint]: IssuingDistributionPoint,\n [id_ce_cRLReasons]: CRLReason,\n [id_ce_extKeyUsage]: ExtendedKeyUsage,\n [id_ce_inhibitAnyPolicy]: InhibitAnyPolicy,\n [id_ce_invalidityDate]: InvalidityDate,\n [id_ce_issuerAltName]: IssueAlternativeName,\n [id_ce_keyUsage]: KeyUsage,\n [id_ce_nameConstraints]: NameConstraints,\n [id_ce_policyConstraints]: PolicyConstraints,\n [id_ce_policyMappings]: PolicyMappings,\n [id_ce_subjectAltName]: SubjectAlternativeName,\n [id_ce_subjectDirectoryAttributes]: SubjectDirectoryAttributes,\n [id_ce_subjectKeyIdentifier]: SubjectKeyIdentifier,\n [id_pe_qcStatements]: QCStatements,\n [id_certificateTemplate]: CertificateTemplate,\n [id_enrollCertType]: EnrollCertTypeChoice,\n [id_netscapeComment]: NetscapeComment,\n [id_netscapeCertType]: NetscapeCertType,\n [id_caVersion]: CaVersion,\n [id_certificateTransparency]: CertificateTransparency,\n [id_lei]: LeiChoice,\n [id_role]: LeiRole,\n [id_adbe_timestamp]: Timestamp,\n [id_adbe_archiveRevInfo]: ArchiveRevInfo,\n [id_ce_privateKeyUsagePeriod]: PrivateKeyUsagePeriod,\n [id_entrust_entrustVersInfo]: EntrustVersionInfo,\n '2.16.724.1.2.2.4.1': BiometricSyntax,\n [id_pe_biometricInfo]: BiometricSyntax,\n [id_pe_logotype]: LogotypeExtn,\n [id_pe_TNAuthList]: TNAuthorizationList,\n [id_pe_subjectInfoAccess]: SubjectInfoAccessSyntax,\n [id_ce_cRLNumber]: CRLNumber,\n [id_ce_deltaCRLIndicator]: BaseCRLNumber,\n [id_ce_keyDescription]: NonStandardKeyDescription,\n [id_cabforganizationIdentifier]: CabforganizationIdentifier,\n [id_appleDeveloperIdDate]: AppleDeveloperIdDate,\n};\n\ntype TExtensionKeys = keyof typeof extensionParsers;\n\nexport type TExtensionValue = InstanceType<typeof extensionParsers[TExtensionKeys]> | string;\n\nexport class Extension<T extends TExtensionValue> extends AsnData<AsnExtension> {\n public readonly value: T;\n\n private getAsnExtnValue() {\n return this.asn.extnValue.buffer;\n }\n\n constructor(raw: BufferSource) {\n super(raw, AsnExtension);\n\n const asnExtnValue = this.getAsnExtnValue();\n\n try {\n const target = extensionParsers[this.asn.extnID];\n\n if (target) {\n this.value = AsnParser.parse<T>(asnExtnValue, target);\n } else {\n console.warn(`Didn't detect parser for \"${this.asn.extnID}\" extension.`);\n\n this.value = Convert.ToHex(asnExtnValue) as T;\n }\n } catch (error) {\n console.error(`Error parse \"${this.asn.extnID}\" extension:`, error.message);\n\n this.value = Convert.ToHex(asnExtnValue) as T;\n }\n }\n}\n"],"names":["AsnExtension","Convert"],"mappings":";;;;;AAGO,MAAM,0BAA0B,GAAG,yBAAyB;AAC5D,MAAM,uBAAuB,SAAS,WAAW,CAAC;AACzD,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,CAAC,GAAG,SAAS,CAAC;AAC3B,QAAQ,IAAI,CAAC,KAAK,GAAG,EAAE;AACvB;AACA,IAAI,OAAO,CAAC,GAAG,EAAE;AACjB,QAAQ,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;AAC1B,QAAQ,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;AAClD,QAAQ,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;AACxC,QAAQ,IAAI,CAAC,KAAK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,CAAC,KAAK,GAAGC,oBAAO,CAAC,KAAK,CAAC,YAAY,CAAM;;;QAE/C,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,CAAC,KAAK,CAAC,CAAA,aAAA,EAAgB,IAAI,CAAC,GAAG,CAAC,MAAM,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC;YAE3E,IAAI,CAAC,KAAK,GAAGA,oBAAO,CAAC,KAAK,CAAC,YAAY,CAAM;;;AAGlD;;;;","x_google_ignoreList":[0,1]}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
export { D as Download, d as downloadFromBuffer } from './ssh_certificate-
|
|
4
|
+
export { D as Download, d as downloadFromBuffer } from './ssh_certificate-Del2D5s9.js';
|
|
5
5
|
export { r as readAsArrayBuffer, a as readAsBinaryString, b as readAsDataUrl, c as readAsText } from './read_file-F2F0McJX.js';
|
|
6
|
-
export { P as Pkcs10CertificateRequest } from './pkcs10_certificate_request-
|
|
6
|
+
export { P as Pkcs10CertificateRequest } from './pkcs10_certificate_request-B_lMfAi8.js';
|
|
7
7
|
export { B as Button, T as Typography } from './button-B_ORW96s.js';
|
|
8
8
|
export { L as Link } from './link-CHi4u6ex.js';
|
|
9
9
|
export { C as CrossIcon, D as DetailsIcon, L as LinkIcon } from './cross-C5dZw2z0.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -7,7 +7,7 @@ export { s as setNonce } from './index-Dpo1Lsuj.js';
|
|
|
7
7
|
const defineCustomElements = async (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
9
9
|
await globalScripts();
|
|
10
|
-
return bootstrapLazy([["peculiar-text-hider",[[262,"peculiar-text-hider",{"opened":[32]}]]],["peculiar-certificate-viewer",[[257,"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"],"mobileMediaQueryString":[1,"mobile-media-query-string"],"mobileScreenView":[32],"isDecodeInProcess":[32]},null,{"certificate":["watchCertificateAndDecode"]}]]],["peculiar-attribute-certificate-viewer_5",[[257,"peculiar-certificate-chain-viewer",{"certificates":[16],"download":[516],"selectedCertificateIndex":[32]}],[257,"peculiar-ssh-certificate-viewer",{"certificate":[513],"download":[516],"mobileMediaQueryString":[1,"mobile-media-query-string"],"mobileScreenView":[32],"isDecodeInProcess":[32]},null,{"certificate":["watchCertificateAndDecode"]}],[257,"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"],"mobileMediaQueryString":[1,"mobile-media-query-string"],"mobileScreenView":[32],"isDecodeInProcess":[32]},null,{"certificate":["watchCertificateAndDecode"]}],[257,"peculiar-crl-viewer",{"certificate":[513],"download":[4],"authKeyIdParentLink":[513,"auth-key-id-parent-link"],"authKeyIdSiblingsLink":[513,"auth-key-id-siblings-link"],"issuerDnLink":[513,"issuer-dn-link"],"mobileMediaQueryString":[1,"mobile-media-query-string"],"mobileScreenView":[32],"isDecodeInProcess":[32]},null,{"certificate":["watchCertificateAndDecode"]}],[257,"peculiar-csr-viewer",{"certificate":[513],"download":[4],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"mobileMediaQueryString":[1,"mobile-media-query-string"],"mobileScreenView":[32],"isDecodeInProcess":[32]},null,{"certificate":["watchCertificateAndDecode"]}]]],["peculiar-certificate-decoder",[[
|
|
10
|
+
return bootstrapLazy([["peculiar-text-hider",[[262,"peculiar-text-hider",{"opened":[32]}]]],["peculiar-certificate-viewer",[[257,"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"],"mobileMediaQueryString":[1,"mobile-media-query-string"],"mobileScreenView":[32],"isDecodeInProcess":[32]},null,{"certificate":["watchCertificateAndDecode"]}]]],["peculiar-attribute-certificate-viewer_5",[[257,"peculiar-certificate-chain-viewer",{"certificates":[16],"download":[516],"selectedCertificateIndex":[32]}],[257,"peculiar-ssh-certificate-viewer",{"certificate":[513],"download":[516],"mobileMediaQueryString":[1,"mobile-media-query-string"],"mobileScreenView":[32],"isDecodeInProcess":[32]},null,{"certificate":["watchCertificateAndDecode"]}],[257,"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"],"mobileMediaQueryString":[1,"mobile-media-query-string"],"mobileScreenView":[32],"isDecodeInProcess":[32]},null,{"certificate":["watchCertificateAndDecode"]}],[257,"peculiar-crl-viewer",{"certificate":[513],"download":[4],"authKeyIdParentLink":[513,"auth-key-id-parent-link"],"authKeyIdSiblingsLink":[513,"auth-key-id-siblings-link"],"issuerDnLink":[513,"issuer-dn-link"],"mobileMediaQueryString":[1,"mobile-media-query-string"],"mobileScreenView":[32],"isDecodeInProcess":[32]},null,{"certificate":["watchCertificateAndDecode"]}],[257,"peculiar-csr-viewer",{"certificate":[513],"download":[4],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"mobileMediaQueryString":[1,"mobile-media-query-string"],"mobileScreenView":[32],"isDecodeInProcess":[32]},null,{"certificate":["watchCertificateAndDecode"]}]]],["peculiar-certificate-decoder",[[256,"peculiar-certificate-decoder",{"certificateExamples":[16],"certificateToDecode":[1,"certificate-to-decode"],"certificateDecoded":[32]}]]],["peculiar-button-menu_3",[[258,"peculiar-button-menu",{"groups":[16],"open":[32]}],[257,"peculiar-circular-progress",{"size":[2],"width":[2]}],[257,"peculiar-highlight-words",{"search":[1]}]]],["peculiar-certificates-viewer",[[257,"peculiar-certificates-viewer",{"certificates":[16],"filterWithSearch":[4,"filter-with-search"],"highlightWithSearch":[4,"highlight-with-search"],"mobileMediaQueryString":[1,"mobile-media-query-string"],"mobileScreenView":[32],"search":[32],"certificatesDecoded":[32],"expandedRow":[32],"certificateSelectedForDetails":[32],"isDecodeInProcess":[32]},null,{"certificates":["watchCertificates"]}]]]], options);
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export { defineCustomElements };
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { h } from './index-Dpo1Lsuj.js';
|
|
5
|
-
import {
|
|
5
|
+
import { a6 as OIDs, a4 as l10n, a5 as dateShort, b as buildExports, bp as Name$1, bq as OtherName, q as AsnParser, br as DisplayText, bs as UserNotice, bt as EDIPartyName, bu as __decorate, bv as AsnProp, bw as AsnPropTypes, bx as AsnType, by as AsnTypeTypes, bz as AsnArray, bA as id_qcs_pkixQCSyntax_v2, bB as SemanticsInformation, bC as AsnIntegerArrayBufferConverter, bD as AttestationApplicationId, bE as RootOfTrust, bF as IntegerSet, aB as KeyUsage, aL as BasicConstraints, aF as ExtendedKeyUsage, av as SubjectKeyIdentifier, aM as AuthorityKeyIdentifier, aI as CRLDistributionPoints, aN as AuthorityInfoAccessSyntax, af as SubjectInfoAccessSyntax, ax as SubjectAlternativeName, aJ as CertificatePolicies, aA as NameConstraints, at as CertificateTemplate, as as EnrollCertTypeChoice, ap as CaVersion, au as QCStatements, ar as NetscapeComment, aq as NetscapeCertType, an as LeiRole, ao as LeiChoice, am as Timestamp, al as ArchiveRevInfo, aG as CRLReason, aw as SubjectDirectoryAttributes, ak as PrivateKeyUsagePeriod, aj as EntrustVersionInfo, ai as BiometricSyntax, ah as LogotypeExtn, ag as TNAuthorizationList, az as PolicyConstraints, ay as PolicyMappings, ae as CRLNumber, aH as IssuingDistributionPoint, ac as NonStandardKeyDescription, ab as CabforganizationIdentifier, aa as AppleDeveloperIdDate } from './ssh_certificate-Del2D5s9.js';
|
|
6
6
|
import { L as Link } from './link-CHi4u6ex.js';
|
|
7
|
-
import { C as CertificateTransparency } from './extension-
|
|
7
|
+
import { C as CertificateTransparency } from './extension-8GydD2wh.js';
|
|
8
8
|
import { T as Typography, B as Button } from './button-B_ORW96s.js';
|
|
9
9
|
import { D as DownloadIcon } from './download-DBNGcuiq.js';
|
|
10
10
|
|
|
@@ -1146,6 +1146,18 @@ const CabforganizationIdentifierExtension = (props) => {
|
|
|
1146
1146
|
return (h(BasicExtension, { extension: extension }, Object.keys(extension.value).map((keyName) => (h(RowValue, { name: camelCaseToWords(keyName), value: extension.value[keyName] })))));
|
|
1147
1147
|
};
|
|
1148
1148
|
|
|
1149
|
+
/**
|
|
1150
|
+
* @license
|
|
1151
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
1152
|
+
*
|
|
1153
|
+
* This source code is licensed under the MIT license found in the
|
|
1154
|
+
* LICENSE file in the root directory of this source tree.
|
|
1155
|
+
*/
|
|
1156
|
+
const AppleDeveloperIdDateExtension = (props) => {
|
|
1157
|
+
const { extension } = props;
|
|
1158
|
+
return (h(BasicExtension, { extension: extension }, h(RowValue, { name: "Date", value: dateShort(extension.value.date) })));
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1149
1161
|
/**
|
|
1150
1162
|
* @license
|
|
1151
1163
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -1265,6 +1277,9 @@ const Extensions = (props) => {
|
|
|
1265
1277
|
if (extension.value instanceof CabforganizationIdentifier) {
|
|
1266
1278
|
return (h(CabforganizationIdentifierExtension, Object.assign({ extension: extension }, props)));
|
|
1267
1279
|
}
|
|
1280
|
+
if (extension.value instanceof AppleDeveloperIdDate) {
|
|
1281
|
+
return (h(AppleDeveloperIdDateExtension, { extension: extension }));
|
|
1282
|
+
}
|
|
1268
1283
|
if (typeof extension.value === 'string') {
|
|
1269
1284
|
return (h(AsStringExtension, { extension: extension }));
|
|
1270
1285
|
}
|
|
@@ -1295,6 +1310,6 @@ const Miscellaneous = (props) => {
|
|
|
1295
1310
|
};
|
|
1296
1311
|
|
|
1297
1312
|
export { BasicInformation as B, Extensions as E, GeneralNamePart as G, IssuerName as I, Miscellaneous as M, PublicKey as P, RowValue as R, SubjectName as S, Thumbprints as T, Signature as a, getDNSNameLink as b, getLEILink as c, getStringByOID as d, camelCaseToWords as e, TableRowTable as f, getIPAddressLink as g, RowTitle as h };
|
|
1298
|
-
//# sourceMappingURL=miscellaneous-
|
|
1313
|
+
//# sourceMappingURL=miscellaneous-Bxm6kKwP.js.map
|
|
1299
1314
|
|
|
1300
|
-
//# sourceMappingURL=miscellaneous-
|
|
1315
|
+
//# sourceMappingURL=miscellaneous-Bxm6kKwP.js.map
|