@peculiar/certificates-viewer 4.6.1 → 4.7.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/attribute-certificate-viewer.js +4 -2
- package/components/attribute-certificate-viewer.js.map +1 -1
- package/components/attribute.js +2 -1
- package/components/attribute.js.map +1 -1
- package/components/certificate-chain-viewer.js +1 -1
- package/components/certificate-viewer.js +3 -2
- package/components/certificate-viewer.js.map +1 -1
- package/components/crl-viewer.js +4 -2
- package/components/crl-viewer.js.map +1 -1
- package/components/csr-viewer.js +3 -3
- package/components/csr-viewer.js.map +1 -1
- package/components/download.js +2 -12760
- package/components/download.js.map +1 -1
- package/components/index.js +2 -1
- package/components/index.js.map +1 -1
- package/components/index2.js +51 -2
- package/components/index2.js.map +1 -1
- package/components/issuer_name.js +2 -2
- package/components/link.js +14335 -0
- package/components/link.js.map +1 -0
- package/components/miscellaneous.js +96 -72
- package/components/miscellaneous.js.map +1 -1
- package/components/peculiar-certificate-decoder.js +32 -16
- package/components/peculiar-certificate-decoder.js.map +1 -1
- package/components/peculiar-certificates-viewer.js +2 -1
- package/components/peculiar-certificates-viewer.js.map +1 -1
- package/components/peculiar-ssh-certificate-viewer.d.ts +11 -0
- package/components/peculiar-ssh-certificate-viewer.js +12 -0
- package/components/peculiar-ssh-certificate-viewer.js.map +1 -0
- package/components/peculiar-text-hider.js +1 -32
- package/components/peculiar-text-hider.js.map +1 -1
- package/components/pkcs10_certificate_request.js +2 -6
- package/components/pkcs10_certificate_request.js.map +1 -1
- package/components/row.js +87 -0
- package/components/row.js.map +1 -0
- package/components/ssh-certificate-viewer.js +193 -0
- package/components/ssh-certificate-viewer.js.map +1 -0
- package/components/subject_name.js +2 -2
- package/components/text-hider.js +40 -0
- package/components/text-hider.js.map +1 -0
- package/dist/cjs/extension-D8YKlAu4.js +110 -0
- package/dist/cjs/extension-D8YKlAu4.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{miscellaneous-DeBEwLDy.js → miscellaneous-DvVSM5KJ.js} +187 -186
- package/dist/cjs/{miscellaneous-DeBEwLDy.js.map → miscellaneous-DvVSM5KJ.js.map} +1 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.cjs.js.map +1 -0
- package/dist/cjs/{peculiar-attribute-certificate-viewer_4.cjs.entry.js → peculiar-attribute-certificate-viewer_5.cjs.entry.js} +240 -38
- package/dist/cjs/peculiar-attribute-certificate-viewer_5.cjs.entry.js.map +1 -0
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +25 -20
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificate-decoder.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +4 -3
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificate-viewer.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +23 -22
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificates-viewer.entry.cjs.js.map +1 -1
- package/dist/cjs/peculiar.cjs.js +1 -1
- package/dist/cjs/pkcs10_certificate_request-BoHhadiA.js +146 -0
- package/dist/cjs/pkcs10_certificate_request-BoHhadiA.js.map +1 -0
- package/dist/cjs/{certification_request-CxHe71zR.js → ssh_certificate-s3-rwdMT.js} +1734 -126
- package/dist/cjs/ssh_certificate-s3-rwdMT.js.map +1 -0
- package/dist/cjs/{x509_certificate-CzplJQ0X.js → x509_certificate-DfXuxxZp.js} +29 -28
- package/dist/cjs/{x509_certificate-CzplJQ0X.js.map → x509_certificate-DfXuxxZp.js.map} +1 -1
- package/dist/cjs/{x509_crl-B7kFbLDV.js → x509_crl-CxJ2lyGX.js} +32 -31
- package/dist/cjs/{x509_crl-B7kFbLDV.js.map → x509_crl-CxJ2lyGX.js.map} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/certificate-decoder/certificate-decoder.js +10 -6
- package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/extension_request_attribute.js +25 -0
- package/dist/collection/components/certificate-details-parts/attributes/extension_request_attribute.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/index.js +10 -1
- package/dist/collection/components/certificate-details-parts/attributes/index.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/attributes/private_key_possession_statement_attribute.js +27 -0
- package/dist/collection/components/certificate-details-parts/attributes/private_key_possession_statement_attribute.js.map +1 -0
- package/dist/collection/components/csr-viewer/csr-viewer.js +2 -2
- package/dist/collection/components/csr-viewer/csr-viewer.js.map +1 -1
- package/dist/collection/components/ssh-certificate-viewer/-components/basic_information.js +29 -0
- package/dist/collection/components/ssh-certificate-viewer/-components/basic_information.js.map +1 -0
- package/dist/collection/components/ssh-certificate-viewer/-components/public_key.js +26 -0
- package/dist/collection/components/ssh-certificate-viewer/-components/public_key.js.map +1 -0
- package/dist/collection/components/ssh-certificate-viewer/-components/signature_key.js +26 -0
- package/dist/collection/components/ssh-certificate-viewer/-components/signature_key.js.map +1 -0
- package/dist/collection/components/ssh-certificate-viewer/ssh-certificate-viewer.js +193 -0
- package/dist/collection/components/ssh-certificate-viewer/ssh-certificate-viewer.js.map +1 -0
- package/dist/collection/constants/oids.js +2 -0
- package/dist/collection/constants/oids.js.map +1 -1
- package/dist/collection/crypto/attribute.js +2 -0
- package/dist/collection/crypto/attribute.js.map +1 -1
- package/dist/collection/crypto/index.js +1 -0
- package/dist/collection/crypto/index.js.map +1 -1
- package/dist/collection/crypto/pkcs10_certificate_request.js +0 -7
- package/dist/collection/crypto/pkcs10_certificate_request.js.map +1 -1
- package/dist/collection/crypto/ssh_certificate.js +68 -0
- package/dist/collection/crypto/ssh_certificate.js.map +1 -0
- package/dist/collection/locales/en.json +5 -1
- package/dist/esm/extension-oK2qpCU6.js +107 -0
- package/dist/esm/extension-oK2qpCU6.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{miscellaneous-bVeJt-6m.js → miscellaneous-DrmTXljc.js} +4 -3
- package/dist/{esm-es5/miscellaneous-bVeJt-6m.js.map → esm/miscellaneous-DrmTXljc.js.map} +1 -1
- package/dist/esm/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.js.map +1 -0
- package/dist/esm/{peculiar-attribute-certificate-viewer_4.entry.js → peculiar-attribute-certificate-viewer_5.entry.js} +215 -14
- package/dist/esm/peculiar-attribute-certificate-viewer_5.entry.js.map +1 -0
- package/dist/esm/peculiar-certificate-decoder.entry.js +14 -9
- package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -1
- package/dist/esm/peculiar-certificate-viewer.entry.js +4 -3
- package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -1
- package/dist/esm/peculiar-certificates-viewer.entry.js +3 -2
- package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -1
- package/dist/esm/peculiar.js +1 -1
- package/dist/esm/{pkcs10_certificate_request-CK8FH47X.js → pkcs10_certificate_request-Bdt_qA_g.js} +4 -8
- package/dist/esm/pkcs10_certificate_request-Bdt_qA_g.js.map +1 -0
- package/dist/esm/{certification_request-PeMaLTUD.js → ssh_certificate-Ct-r021h.js} +1682 -115
- package/dist/esm/ssh_certificate-Ct-r021h.js.map +1 -0
- package/dist/esm/{x509_certificate-CEEWtU_T.js → x509_certificate-5DEbrOA7.js} +4 -3
- package/dist/{esm-es5/x509_certificate-CEEWtU_T.js.map → esm/x509_certificate-5DEbrOA7.js.map} +1 -1
- package/dist/esm/{x509_crl-BcZd9KVn.js → x509_crl-CPgNUkh7.js} +5 -4
- package/dist/{esm-es5/x509_crl-BcZd9KVn.js.map → esm/x509_crl-CPgNUkh7.js.map} +1 -1
- package/dist/esm-es5/extension-oK2qpCU6.js +12 -0
- package/dist/esm-es5/extension-oK2qpCU6.js.map +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{miscellaneous-bVeJt-6m.js → miscellaneous-DrmTXljc.js} +2 -2
- package/dist/{esm/miscellaneous-bVeJt-6m.js.map → esm-es5/miscellaneous-DrmTXljc.js.map} +1 -1
- package/dist/esm-es5/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.peculiar-ssh-certificate-viewer.entry.js.map +1 -0
- package/dist/esm-es5/{peculiar-attribute-certificate-viewer_4.entry.js → peculiar-attribute-certificate-viewer_5.entry.js} +39 -4
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_5.entry.js.map +1 -0
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar.js +1 -1
- package/dist/esm-es5/pkcs10_certificate_request-Bdt_qA_g.js +19 -0
- package/dist/esm-es5/pkcs10_certificate_request-Bdt_qA_g.js.map +1 -0
- package/dist/esm-es5/{certification_request-PeMaLTUD.js → ssh_certificate-Ct-r021h.js} +7 -14
- package/dist/esm-es5/ssh_certificate-Ct-r021h.js.map +1 -0
- package/dist/esm-es5/{x509_certificate-CEEWtU_T.js → x509_certificate-5DEbrOA7.js} +4 -4
- package/dist/{esm/x509_certificate-CEEWtU_T.js.map → esm-es5/x509_certificate-5DEbrOA7.js.map} +1 -1
- package/dist/esm-es5/{x509_crl-BcZd9KVn.js → x509_crl-CPgNUkh7.js} +2 -2
- package/dist/{esm/x509_crl-BcZd9KVn.js.map → esm-es5/x509_crl-CPgNUkh7.js.map} +1 -1
- package/dist/peculiar/index.esm.js +1 -1
- package/dist/peculiar/locales/en.json +5 -1
- package/dist/peculiar/{p-5479a530.entry.js → p-0b895a8e.entry.js} +2 -2
- package/dist/peculiar/{p-84f69023.system.entry.js → p-11434880.system.entry.js} +2 -2
- package/dist/peculiar/{p-C9sY8yng.system.js → p-2GQYAR0v.system.js} +3 -3
- package/dist/peculiar/{p-C9sY8yng.system.js.map → p-2GQYAR0v.system.js.map} +1 -1
- package/dist/peculiar/p-364fd32b.system.entry.js +5 -0
- package/dist/peculiar/{p-14fcbc5c.system.entry.js.map → p-364fd32b.system.entry.js.map} +1 -1
- package/dist/peculiar/p-5df0f22b.system.entry.js +146 -0
- package/dist/peculiar/p-5df0f22b.system.entry.js.map +1 -0
- package/dist/peculiar/p-62b723f6.entry.js +145 -0
- package/dist/peculiar/p-62b723f6.entry.js.map +1 -0
- package/dist/peculiar/p-83a53b4f.entry.js +5 -0
- package/dist/peculiar/{p-0de4837d.entry.js.map → p-83a53b4f.entry.js.map} +1 -1
- package/dist/peculiar/p-B2G7qjfV.js +369 -0
- package/dist/peculiar/{p-CGRNSrHk.js.map → p-B2G7qjfV.js.map} +1 -1
- package/dist/peculiar/{p-BypepohK.system.js.map → p-BCsPspKr.system.js.map} +1 -1
- package/dist/peculiar/p-BGASC3UX.system.js +1 -1
- package/dist/peculiar/p-BGIWeG8l.js +12 -0
- package/dist/peculiar/p-BGIWeG8l.js.map +1 -0
- package/dist/peculiar/{p-DRvp86xt.system.js → p-BQiABBi1.system.js} +5 -5
- package/dist/peculiar/{p-DRvp86xt.system.js.map → p-BQiABBi1.system.js.map} +1 -1
- package/dist/peculiar/{p-CezfC5i1.system.js → p-BeVuAzsd.system.js} +42 -42
- package/dist/peculiar/{p-CezfC5i1.system.js.map → p-BeVuAzsd.system.js.map} +1 -1
- package/dist/peculiar/{p-CZwhKPgb.system.js → p-C31rbtuG.system.js} +2 -2
- package/dist/peculiar/p-C31rbtuG.system.js.map +1 -0
- package/dist/peculiar/p-Ce-IF7_R.system.js.map +1 -0
- package/dist/peculiar/p-ClkgAXnd.system.js +135 -0
- package/dist/peculiar/p-ClkgAXnd.system.js.map +1 -0
- package/dist/peculiar/p-Ct-r021h.js +135 -0
- package/dist/peculiar/p-Ct-r021h.js.map +1 -0
- package/dist/peculiar/{p-BaebEpW0.system.js.map → p-CxtUQdcj.system.js.map} +1 -1
- package/dist/peculiar/{p-DrmgUhyv.js → p-D9qq15zG.js} +4 -4
- package/dist/peculiar/{p-DrmgUhyv.js.map → p-D9qq15zG.js.map} +1 -1
- package/dist/peculiar/{p-CjWRKsN-.js → p-DOpiv0-8.js} +3 -3
- package/dist/peculiar/{p-CjWRKsN-.js.map → p-DOpiv0-8.js.map} +1 -1
- package/dist/peculiar/p-IOtHTzYC.system.js +12 -0
- package/dist/peculiar/p-IOtHTzYC.system.js.map +1 -0
- package/dist/peculiar/p-LmKU8Smy.system.js.map +1 -0
- package/dist/peculiar/p-RWPI76Dh.js +19 -0
- package/dist/peculiar/p-RWPI76Dh.js.map +1 -0
- package/dist/peculiar/p-da9eb1e7.entry.js +5 -0
- package/dist/peculiar/p-da9eb1e7.entry.js.map +1 -0
- package/dist/peculiar/p-fd98bb82.system.entry.js +5 -0
- package/dist/peculiar/p-fd98bb82.system.entry.js.map +1 -0
- package/dist/peculiar/{p-J1t5v5N3.system.js → p-zQwWLfga.system.js} +4 -4
- package/dist/peculiar/p-zQwWLfga.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 -0
- package/dist/peculiar/peculiar-certificate-decoder.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar-certificate-viewer.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar-certificates-viewer.entry.esm.js.map +1 -1
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +4 -4
- package/dist/types/components/certificate-details-parts/attributes/extension_request_attribute.d.ts +15 -0
- package/dist/types/components/certificate-details-parts/attributes/private_key_possession_statement_attribute.d.ts +15 -0
- package/dist/types/components/ssh-certificate-viewer/-components/basic_information.d.ts +21 -0
- package/dist/types/components/ssh-certificate-viewer/-components/public_key.d.ts +14 -0
- package/dist/types/components/ssh-certificate-viewer/-components/signature_key.d.ts +14 -0
- package/dist/types/components/ssh-certificate-viewer/ssh-certificate-viewer.d.ts +43 -0
- package/dist/types/components.d.ts +43 -0
- package/dist/types/constants/oids.d.ts +2 -0
- package/dist/types/crypto/attribute.d.ts +2 -0
- package/dist/types/crypto/index.d.ts +1 -0
- package/dist/types/crypto/pkcs10_certificate_request.d.ts +0 -2
- package/dist/types/crypto/ssh_certificate.d.ts +28 -0
- package/dist/types/utils/l10n.d.ts +4 -0
- package/hydrate/index.js +1908 -33
- package/hydrate/index.mjs +1908 -33
- package/package.json +4 -2
- package/dist/cjs/certification_request-CxHe71zR.js.map +0 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.cjs.js.map +0 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer_4.cjs.entry.js.map +0 -1
- package/dist/cjs/pkcs10_certificate_request-CHMDxe2Z.js +0 -150
- package/dist/cjs/pkcs10_certificate_request-CHMDxe2Z.js.map +0 -1
- package/dist/esm/certification_request-PeMaLTUD.js.map +0 -1
- package/dist/esm/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.js.map +0 -1
- package/dist/esm/peculiar-attribute-certificate-viewer_4.entry.js.map +0 -1
- package/dist/esm/pkcs10_certificate_request-CK8FH47X.js.map +0 -1
- package/dist/esm-es5/certification_request-PeMaLTUD.js.map +0 -1
- package/dist/esm-es5/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.js.map +0 -1
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_4.entry.js.map +0 -1
- package/dist/esm-es5/pkcs10_certificate_request-CK8FH47X.js +0 -19
- package/dist/esm-es5/pkcs10_certificate_request-CK8FH47X.js.map +0 -1
- package/dist/peculiar/p-00d6f11f.system.entry.js +0 -111
- package/dist/peculiar/p-00d6f11f.system.entry.js.map +0 -1
- package/dist/peculiar/p-0de4837d.entry.js +0 -5
- package/dist/peculiar/p-14fcbc5c.system.entry.js +0 -5
- package/dist/peculiar/p-315805ce.entry.js +0 -5
- package/dist/peculiar/p-315805ce.entry.js.map +0 -1
- package/dist/peculiar/p-591a9019.system.entry.js +0 -5
- package/dist/peculiar/p-591a9019.system.entry.js.map +0 -1
- package/dist/peculiar/p-BipKYW6e.system.js +0 -142
- package/dist/peculiar/p-BipKYW6e.system.js.map +0 -1
- package/dist/peculiar/p-BloT0Xj9.system.js.map +0 -1
- package/dist/peculiar/p-CGRNSrHk.js +0 -369
- package/dist/peculiar/p-CZwhKPgb.system.js.map +0 -1
- package/dist/peculiar/p-D1eNnGDF.js +0 -19
- package/dist/peculiar/p-D1eNnGDF.js.map +0 -1
- package/dist/peculiar/p-ITVWR0oT.system.js.map +0 -1
- package/dist/peculiar/p-J1t5v5N3.system.js.map +0 -1
- package/dist/peculiar/p-PeMaLTUD.js +0 -142
- package/dist/peculiar/p-PeMaLTUD.js.map +0 -1
- package/dist/peculiar/p-c8b3766a.entry.js +0 -110
- package/dist/peculiar/p-c8b3766a.entry.js.map +0 -1
- package/dist/peculiar/peculiar-attribute-certificate-viewer.peculiar-certificate-chain-viewer.peculiar-crl-viewer.peculiar-csr-viewer.entry.esm.js.map +0 -1
- /package/dist/peculiar/{p-5479a530.entry.js.map → p-0b895a8e.entry.js.map} +0 -0
- /package/dist/peculiar/{p-84f69023.system.entry.js.map → p-11434880.system.entry.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"p-BloT0Xj9.system.js","sources":["../../node_modules/.pnpm/@peculiar+asn1-cms@2.4.0/node_modules/@peculiar/asn1-cms/build/es2015/object_identifiers.js","src/crypto/x509_certificates.ts","src/components/certificate-decoder/certificate-decoder.scss?tag=peculiar-certificate-decoder&encapsulation=shadow","src/components/certificate-decoder/certificate-decoder.tsx"],"sourcesContent":["export const id_ct_contentInfo = \"1.2.840.113549.1.9.16.1.6\";\nexport const id_data = \"1.2.840.113549.1.7.1\";\nexport const id_signedData = \"1.2.840.113549.1.7.2\";\nexport const id_envelopedData = \"1.2.840.113549.1.7.3\";\nexport const id_digestedData = \"1.2.840.113549.1.7.5\";\nexport const id_encryptedData = \"1.2.840.113549.1.7.6\";\nexport const id_authData = \"1.2.840.113549.1.9.16.1.2\";\n","import { Convert } from 'pvtsutils';\nimport {\n SignedData,\n id_data,\n EncapsulatedContent,\n CertificateSet,\n CertificateChoices,\n ContentInfo,\n id_signedData,\n} from '@peculiar/asn1-cms';\nimport { Certificate } from '@peculiar/asn1-x509';\nimport { AsnConvert, OctetString } from '@peculiar/asn1-schema';\nimport { Download } from '../utils';\nimport { PemConverter } from './pem_converter';\nimport { X509Certificate } from './x509_certificate';\n\nexport class X509Certificates extends Array<X509Certificate> {\n constructor(raw: string) {\n super();\n\n const rawItems = PemConverter.isPem(raw)\n ? PemConverter.decode(raw).map((value) => Convert.ToBase64Url(value))\n : raw.split(',');\n\n if (rawItems.length < 2) {\n throw new Error('Unable to parse string. The array of elements is less than 2');\n }\n\n for (const item of rawItems) {\n this.push(new X509Certificate(item));\n }\n }\n\n public get commonName(): string {\n return Array.from(this)\n .map((o) => o.commonName)\n .join('_');\n }\n\n public get raw(): ArrayBuffer {\n const signedData = new SignedData();\n\n signedData.version = 1;\n signedData.encapContentInfo.eContentType = id_data;\n signedData.encapContentInfo.eContent = new EncapsulatedContent({ single: new OctetString() });\n signedData.certificates = new CertificateSet(\n Array.from(this)\n .map((o) => new CertificateChoices({ certificate: AsnConvert.parse(o.raw, Certificate) })),\n );\n\n const cms = new ContentInfo({\n contentType: id_signedData,\n content: AsnConvert.serialize(signedData),\n });\n\n return AsnConvert.serialize(cms);\n }\n\n public toString(format: 'pem' | 'base64' | 'base64url' = 'pem'): string {\n switch (format) {\n case 'pem':\n return Array.from(this)\n .map((o) => o.toString('pem'))\n .join('\\n');\n case 'base64url':\n return Array.from(this)\n .map((o) => o.toString('base64url'))\n .join(',');\n default:\n return Array.from(this)\n .map((o) => o.toString('base64'))\n .join(',');\n }\n }\n\n public downloadAsPEM(name?: string) {\n Download.cert.asPEM(\n this.toString('pem'),\n name || this.commonName,\n );\n }\n\n public downloadAsDER(name?: string) {\n Download.cert.asDER(\n this.raw,\n name || this.commonName,\n );\n }\n}\n","@import '../../css/base.scss';\n\n:host {\n display: block;\n width: 100%;\n}\n\n.textarea {\n min-height: 300px;\n width: 100%;\n border-radius: 4px;\n border: 1px solid var(--pv-color-gray-5);;\n padding: 14px;\n font-family: monospace;\n resize: vertical;\n}\n\n.controls {\n margin-top: var(--pv-size-base-2);\n display: flex;\n flex-direction: column;\n gap: var(--pv-size-base-2);\n margin-bottom: var(--pv-size-base-12);\n}\n\n.control_row {\n display: flex;\n align-items: center;\n gap: var(--pv-size-base);\n}\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Host,\n h,\n State,\n Prop,\n Event,\n EventEmitter,\n} from '@stencil/core';\nimport { readAsBinaryString } from '../../utils';\nimport {\n X509Certificate,\n X509AttributeCertificate,\n Pkcs10CertificateRequest,\n X509Crl,\n X509Certificates,\n} from '../../crypto';\nimport { Button } from '../button';\nimport { Typography } from '../typography';\n\n@Component({\n tag: 'peculiar-certificate-decoder',\n styleUrl: 'certificate-decoder.scss',\n shadow: true,\n})\nexport class CertificateDecoder {\n private inputPaste?: HTMLTextAreaElement;\n\n /**\n * The example certificate value for decode and show details. Use PEM or DER.\n */\n @Prop() certificateExamples?: {\n title: string;\n value: string;\n }[];\n\n /**\n * The default certificate value for decode and show details. Use PEM or DER.\n */\n @Prop() certificateToDecode?: string;\n\n @State() certificateDecoded: X509Certificates\n | X509Certificate\n | X509AttributeCertificate\n | Pkcs10CertificateRequest\n | X509Crl;\n\n /**\n * Emitted when the certificate has been successfully parsed.\n */\n @Event() successParse!: EventEmitter<string>;\n\n /**\n * Emitted when the certificate has been removed.\n */\n @Event() clearCertificate!: EventEmitter<void>;\n\n componentDidLoad() {\n if (this.certificateToDecode) {\n /**\n * Prevent Stencil warning about re-render\n */\n setTimeout(() => this.decode(this.certificateToDecode), 100);\n }\n }\n\n private handleClickDecode = () => {\n const { value } = this.inputPaste;\n\n if (value) {\n this.decode(value);\n }\n };\n\n private handleClickClear = () => {\n this.clearValue();\n };\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private handleChangeInputFile = async (event: any) => {\n const element = event.target;\n\n if (element.files) {\n const file = await readAsBinaryString(element.files[0]);\n\n if (typeof file.value === 'string') {\n this.decode(file.value);\n }\n\n element.value = '';\n }\n };\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private handleChangeExample = (event: any) => {\n if (event.target.value) {\n this.decode(event.target.value);\n } else {\n this.clearValue();\n }\n };\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private handleDropFile = async (event: any) => {\n event.stopPropagation();\n event.preventDefault();\n\n const element = event.dataTransfer;\n\n if (element.files) {\n const file = await readAsBinaryString(element.files[0]);\n\n if (typeof file.value === 'string') {\n this.decode(file.value);\n }\n }\n };\n\n clearValue() {\n this.inputPaste.value = '';\n this.certificateDecoded = null;\n this.clearCertificate.emit();\n }\n\n setValue(value: typeof this.certificateDecoded) {\n this.certificateDecoded = value;\n this.inputPaste.value = value.toString('pem');\n this.successParse.emit(value.toString('base64url'));\n }\n\n decode(value: string) {\n new Promise<X509Certificates>((resolve) => {\n resolve(new X509Certificates(value));\n })\n .catch(() => new X509Certificate(value))\n .catch(() => new X509AttributeCertificate(value))\n .catch(() => new Pkcs10CertificateRequest(value))\n .catch(() => new X509Crl(value))\n .then((res: typeof this.certificateDecoded) => this.setValue(res))\n .catch((error) => {\n console.log(error);\n\n alert(`Error decoding certificate:\\n\"${value}\"\\n\\nPlease try to use Certificate/AttributeCertificate/CertificateRequest/CRL.`);\n });\n }\n\n renderCertificate() {\n if (this.certificateDecoded instanceof X509Certificates) {\n return (\n <peculiar-certificate-chain-viewer\n certificates={this.certificateDecoded}\n download\n />\n );\n }\n\n if (this.certificateDecoded instanceof X509Certificate) {\n return (\n <peculiar-certificate-viewer\n certificate={this.certificateDecoded}\n download\n />\n );\n }\n\n if (this.certificateDecoded instanceof X509AttributeCertificate) {\n return (\n <peculiar-attribute-certificate-viewer\n certificate={this.certificateDecoded}\n download\n />\n );\n }\n\n if (this.certificateDecoded instanceof Pkcs10CertificateRequest) {\n return (\n <peculiar-csr-viewer\n certificate={this.certificateDecoded}\n download\n />\n );\n }\n\n if (this.certificateDecoded instanceof X509Crl) {\n return (\n <peculiar-crl-viewer\n certificate={this.certificateDecoded}\n download\n />\n );\n }\n\n return null;\n }\n\n render() {\n return (\n <Host>\n <textarea\n placeholder=\"Certificate DER or PEM\"\n class=\"textarea t-b2 c-black\"\n ref={(el) => { this.inputPaste = el; }}\n onDrop={this.handleDropFile}\n />\n <div class=\"controls\">\n <div class=\"control_row\">\n <Typography\n variant=\"b3\"\n color=\"secondary-tint-2\"\n >\n Drag or load file:\n </Typography>\n <input\n type=\"file\"\n accept=\"application/pkix-cert,application/x-x509-ca-cert,application/x-x509-user-cert,application/pkcs10,application/pkix-crl,.csr,.req,.crl\"\n value=\"\"\n onChange={this.handleChangeInputFile}\n />\n </div>\n {this.certificateExamples?.length && (\n <div class=\"control_row\">\n <Typography\n variant=\"b3\"\n color=\"secondary-tint-2\"\n >\n Load examples:\n </Typography>\n <select onChange={this.handleChangeExample}>\n <option value=\"\">None</option>\n {this.certificateExamples.map((example) => (\n <option value={example.value}>\n {example.title}\n </option>\n ))}\n </select>\n </div>\n )}\n <div class=\"control_row\">\n <Button\n onClick={this.handleClickDecode}\n >\n Decode\n </Button>\n <Button\n onClick={this.handleClickClear}\n >\n Clear\n </Button>\n </div>\n </div>\n {this.renderCertificate()}\n </Host>\n );\n }\n}\n"],"names":["Convert"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YACO,MAAM,OAAO,GAAG,sBAAsB;YACtC,MAAM,aAAa,GAAG,sBAAsB;;YCc7C,MAAO,gBAAiB,SAAQ,KAAsB,CAAA;YAC1D,IAAA,WAAA,CAAY,GAAW,EAAA;YACrB,QAAA,KAAK,EAAE;YAEP,QAAA,MAAM,QAAQ,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG;0BACnC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,KAAKA,oBAAO,CAAC,WAAW,CAAC,KAAK,CAAC;YACpE,cAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;YAElB,QAAA,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YACvB,YAAA,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC;;YAGjF,QAAA,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE;wBAC3B,IAAI,CAAC,IAAI,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;;;YAIxC,IAAA,IAAW,UAAU,GAAA;YACnB,QAAA,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI;yBACnB,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU;yBACvB,IAAI,CAAC,GAAG,CAAC;;YAGd,IAAA,IAAW,GAAG,GAAA;YACZ,QAAA,MAAM,UAAU,GAAG,IAAI,UAAU,EA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,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,MAAM,MAC/B,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,aAAa,EAAA,EACtB,CAAC,CAAA,UAAU,qDACT,OAAO,EAAC,IAAI,EACZ,KAAK,EAAC,kBAAkB,EAGb,EAAA,gBAAA,CAAA,EACb,CAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAQ,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAAA,EACxC,CAAQ,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,EAAE,EAAc,EAAA,MAAA,CAAA,EAC7B,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,OAAO,MACpC,CAAQ,CAAA,QAAA,EAAA,EAAA,KAAK,EAAE,OAAO,CAAC,KAAK,EAAA,EACzB,OAAO,CAAC,KAAK,CACP,CACV,CAAC,CACK,CACL,CACP,EACD,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,aAAa,EAAA,EACtB,CAAA,CAAC,MAAM,EACL,EAAA,GAAA,EAAA,0CAAA,EAAA,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAGxB,EAAA,QAAA,CAAA,EACT,CAAC,CAAA,MAAM,qDACL,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAGvB,EAAA,OAAA,CAAA,CACL,CACF,EACL,IAAI,CAAC,iBAAiB,EAAE,CACpB;;;;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,369 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{h as e}from"./p-CwgZaF40.js";import{_ as a,Y as n,Z as t,b as c,a5 as o,a9 as s,r,aa as i,ab as f,ac as u,ad as l,ae as d,af as b,ag as m,ah as v,ai as x,aj as p,ak as g,al as y,am as h,an as C,ao as S,ap as N,aq as A,ar as D,as as I,at as j,au as O,av as T,aw as G,ax as L,ay as k,az as P,aA as R,aB as V,aC as B,aD as U,aE as E,aF as $,aG as K,aH as M,aI as H,aJ as w,aK as Y,a6 as q,aL as X,aM as F,aN as z,aO as Q,aP as W,aQ as Z,aR as J,aS as _,aT as ee,aU as ae,aV as ne,aW as te}from"./p-PeMaLTUD.js";import{L as ce}from"./p-DMZr5ztF.js";import{T as oe,B as se}from"./p-CutTi-2B.js";import{D as re}from"./p-JyD6URnB.js";
|
|
5
|
-
/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/function ie(e){const n=a[e];if(n){return`${n} (${e})`}return e}
|
|
12
|
-
/**
|
|
13
|
-
* @license
|
|
14
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/function fe(e){const a=e.replace(/([A-Z])/g," $1");return a.charAt(0).toUpperCase()+a.slice(1)}
|
|
19
|
-
/**
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/const ue=e=>`https://search.gleif.org/#/record/${e}`;const le=e=>`https://search.censys.io/search?resource=hosts&q=dns.names%3A${e}`;const de=e=>`https://search.censys.io/search?resource=hosts&q=ip%3A${e}`
|
|
26
|
-
/**
|
|
27
|
-
* @license
|
|
28
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
29
|
-
*
|
|
30
|
-
* This source code is licensed under the MIT license found in the
|
|
31
|
-
* LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/;function be(e){return e.indexOf("http")===0}
|
|
33
|
-
/**
|
|
34
|
-
* @license
|
|
35
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the MIT license found in the
|
|
38
|
-
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/const me=(a,n)=>e("tr",null,e("td",{colSpan:2},e("table",null,n)));const ve=a=>{const{value:n}=a;if(!n){return null}return[e("tr",{class:"title"},e("td",{colSpan:2},e(oe,{variant:"s1",color:"black"},n))),e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",null)))]};const xe=a=>{const{name:n,value:t,monospace:c,collapse:o,href:s,extraValue:r}=a;if(!n){return null}if(t===undefined||t===null){return null}let i;if(o){i=e("peculiar-text-hider",null,t)}else{i=t}const f=!!t.toString();return e("tr",null,e("td",{colSpan:f?1:2},e(oe,{variant:"b2",color:"gray-9"},n)),f&&e("td",{class:{monospace:c}},be(t.toString())||s?e(ce,{variant:"b2",href:s||t.toString()},t):e(oe,{variant:"b2",color:"black"},i,r)))};
|
|
40
|
-
/**
|
|
41
|
-
* @license
|
|
42
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the MIT license found in the
|
|
45
|
-
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const pe=a=>{const{serialNumber:c,version:o,validity:s,notBefore:r,notAfter:i,lastUpdate:f,nextUpdate:u,type:l}=a;return[e(ve,{value:n.getString("basicInformation")}),e(xe,{name:n.getString("type"),value:l}),e(xe,{name:n.getString("serialNumber"),value:c,monospace:true}),e(xe,{name:n.getString("version"),value:o}),e(xe,{name:n.getString("validity"),value:s}),e(xe,{name:n.getString("issued"),value:r?t(r):undefined}),e(xe,{name:n.getString("expired"),value:i?t(i):undefined}),e(xe,{name:n.getString("lastUpdate"),value:f?t(f):undefined}),e(xe,{name:n.getString("nextUpdate"),value:u?t(u):undefined})]};
|
|
47
|
-
/**
|
|
48
|
-
* @license
|
|
49
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
50
|
-
*
|
|
51
|
-
* This source code is licensed under the MIT license found in the
|
|
52
|
-
* LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/function ge(e){if(e.params&&"modulus"in e.params){let a=e.params.modulus.byteLength;if(a%2){a-=1}return a*8}return null}function ye(e){if(e.params&&"publicExponent"in e.params){return e.params.publicExponent.byteLength===3?65537:3}return null}const he=a=>{const{publicKey:t}=a;if(!t){return null}function o(a){return[e(xe,{name:n.getString("algorithm"),value:ie(a.algorithm)}),e(xe,{name:n.getString("namedCurve"),value:ie(a.params&&"namedCurve"in a.params?a.params.namedCurve:undefined)}),e(xe,{name:n.getString("exponent"),value:ye(a)}),e(xe,{name:n.getString("modulus"),value:ge(a)}),e(xe,{name:n.getString("value"),value:c.Convert.ToHex(a.value),monospace:true,collapse:true})]}return[e(ve,{value:n.getString("publicKeyInfo")}),o(t),Array.isArray(t.params)&&t.params.length&&t.params.map((a=>e(me,null,o(a))))]};
|
|
54
|
-
/**
|
|
55
|
-
* @license
|
|
56
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the MIT license found in the
|
|
59
|
-
* LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/const Ce=a=>{const{name:t}=a;return[e(ve,{value:n.getString("subjectName")}),t.map((a=>e(xe,{name:a.name||a.type,value:a.value})))]};
|
|
61
|
-
/**
|
|
62
|
-
* @license
|
|
63
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
64
|
-
*
|
|
65
|
-
* This source code is licensed under the MIT license found in the
|
|
66
|
-
* LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/const Se=a=>{const{name:t,issuerDnLink:c}=a;const o=n.getString("issuerName");return[e(ve,{value:c?e(ce,{href:c},o):o}),t.map((a=>e(xe,{name:a.name||a.type,value:a.value})))]};
|
|
68
|
-
/**
|
|
69
|
-
* @license
|
|
70
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the MIT license found in the
|
|
73
|
-
* LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/const Ne=a=>{const{signature:t}=a;if(!t){return null}function o(a){return[e(xe,{name:n.getString("algorithm"),value:ie(a.algorithm)}),e(xe,{name:n.getString("value"),value:c.Convert.ToHex(a.value),monospace:true,collapse:true})]}return[e(ve,{value:n.getString("signature")}),o(t),t.params&&t.params.length&&t.params.map((a=>e(me,null,o(a))))]};
|
|
75
|
-
/**
|
|
76
|
-
* @license
|
|
77
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the MIT license found in the
|
|
80
|
-
* LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const Ae=a=>{const{thumbprints:t}=a;if(!t){return null}const c=Object.keys(t);if(!c.length){return null}return[e(ve,{value:n.getString("fingerprints")}),c.map((a=>e(xe,{name:a,value:t[a],monospace:true})))]};
|
|
82
|
-
/**
|
|
83
|
-
* @license
|
|
84
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the MIT license found in the
|
|
87
|
-
* LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/const De=(a,t)=>{const{extension:c}=a;return[e(xe,{name:"Name",value:ie(c.asn.extnID)}),e(xe,{name:"Critical",value:c.asn.critical?n.getString("yes"):n.getString("no")}),t,e("tr",null,e("td",{colSpan:2,class:"divider"},e("span",null)))]};
|
|
89
|
-
/**
|
|
90
|
-
* @license
|
|
91
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the MIT license found in the
|
|
94
|
-
* LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const Ie=a=>{const{extension:n}=a;return e(De,{extension:n},e(xe,{name:"Usage",value:n.value.toJSON().join(", ")}))};
|
|
96
|
-
/**
|
|
97
|
-
* @license
|
|
98
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
99
|
-
*
|
|
100
|
-
* This source code is licensed under the MIT license found in the
|
|
101
|
-
* LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/const je=a=>{const{extension:t}=a;return e(De,{extension:t},e(xe,{name:"Certificate Authority",value:t.value.cA?n.getString("yes"):n.getString("no")}),e(xe,{name:"Path Length Constraint",value:t.value.pathLenConstraint}))};
|
|
103
|
-
/**
|
|
104
|
-
* @license
|
|
105
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the MIT license found in the
|
|
108
|
-
* LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const Oe=a=>{const{extension:n}=a;return e(De,{extension:n},Boolean(n.value.length)&&[e(xe,{name:"Purposes",value:""}),n.value.map((a=>e(me,null,e(xe,{name:"Purpose",value:ie(a)}))))])};
|
|
110
|
-
/**
|
|
111
|
-
* @license
|
|
112
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
113
|
-
*
|
|
114
|
-
* This source code is licensed under the MIT license found in the
|
|
115
|
-
* LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const Te=a=>{const{extension:n,getSubjectKeyIdChildrenLink:t,getSubjectKeyIdSiblingsLink:o}=a;const s=c.Convert.ToHex(n.value.buffer);const r=t(s);const i=o(s);return e(De,{extension:n},e(xe,{name:"Key ID",value:s,monospace:true,extraValue:[r&&e("span",null," [",e(ce,{href:r},"children"),"]"),i&&e("span",null," [",e(ce,{href:i},"siblings"),"]")]}))};
|
|
117
|
-
/**
|
|
118
|
-
* @license
|
|
119
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
120
|
-
*
|
|
121
|
-
* This source code is licensed under the MIT license found in the
|
|
122
|
-
* LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/const Ge=a=>{const{extension:n,getAuthKeyIdParentLink:t,getAuthKeyIdSiblingsLink:o}=a;const s=c.Convert.ToHex(n.value.keyIdentifier.buffer);const r=t(s);const i=o(s);return e(De,{extension:n},e(xe,{name:"Key ID",value:s,monospace:true,extraValue:[r&&e("span",null," [",e(ce,{href:r},"parents"),"]"),i&&e("span",null," [",e(ce,{href:i},"siblings"),"]")]}))};
|
|
124
|
-
/**
|
|
125
|
-
* @license
|
|
126
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the MIT license found in the
|
|
129
|
-
* LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const Le={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"};const ke=n=>{const{generalName:t,getDNSNameLink:l,getIPAddressLink:d}=n;if(!t){return null}return Object.keys(t).map((n=>{const b=t[n];if(b instanceof o){return[e(xe,{name:Le[n]||n,value:""}),e(me,null,b.map((n=>n.map((n=>e(xe,{name:a[n.type]||n.type,value:n.value.toString()}))))))]}if(b instanceof s){try{const n=r.parse(b.value,i);return e(xe,{name:a[b.typeId]||b.typeId,value:n.toString()})}catch(e){}try{const n=r.parse(b.value,f);if(n.explicitText){return e(xe,{name:a[b.typeId]||b.typeId,value:n.explicitText.toString()})}}catch(e){}return e(xe,{name:a[b.typeId]||b.typeId,value:c.Convert.ToHex(b.value),monospace:true})}if(c.BufferSourceConverter.isBufferSource(b)){return e(xe,{name:Le[n]||n,value:c.Convert.ToString(b)})}if(b instanceof u){return e(xe,{name:Le[n]||n,value:b.partyName.toString()})}if(n==="dNSName"){return e(xe,{name:Le[n]||n,value:b,href:l(b)})}if(n==="iPAddress"){return e(xe,{name:Le[n]||n,value:b,href:d(b)})}return e(xe,{name:Le[n]||n,value:b})}))};
|
|
131
|
-
/**
|
|
132
|
-
* @license
|
|
133
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
134
|
-
*
|
|
135
|
-
* This source code is licensed under the MIT license found in the
|
|
136
|
-
* LICENSE file in the root directory of this source tree.
|
|
137
|
-
*/const Pe=a=>{const{extension:n}=a;return e(De,{extension:n},n.value.map((n=>{var t,c;return[(t=n.distributionPoint)===null||t===void 0?void 0:t.fullName.map((n=>e(ke,Object.assign({generalName:n},a)))),(c=n.cRLIssuer)===null||c===void 0?void 0:c.map((n=>e(ke,Object.assign({generalName:n},a))))]})))};
|
|
138
|
-
/**
|
|
139
|
-
* @license
|
|
140
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
141
|
-
*
|
|
142
|
-
* This source code is licensed under the MIT license found in the
|
|
143
|
-
* LICENSE file in the root directory of this source tree.
|
|
144
|
-
*/const Re=a=>{const{extension:n}=a;return e(De,{extension:n},Boolean(n.value.length)&&[e(xe,{name:"Descriptions",value:""}),n.value.map((n=>e(me,null,e(xe,{name:"Method",value:ie(n.accessMethod)}),e(ke,Object.assign({generalName:n.accessLocation},a)))))])};
|
|
145
|
-
/**
|
|
146
|
-
* @license
|
|
147
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
148
|
-
*
|
|
149
|
-
* This source code is licensed under the MIT license found in the
|
|
150
|
-
* LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const Ve=a=>{const{extension:n}=a;return e(De,{extension:n},n.value.map((n=>e(ke,Object.assign({generalName:n},a)))))};
|
|
152
|
-
/**
|
|
153
|
-
* @license
|
|
154
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
155
|
-
*
|
|
156
|
-
* This source code is licensed under the MIT license found in the
|
|
157
|
-
* LICENSE file in the root directory of this source tree.
|
|
158
|
-
*/const Be=a=>{const{extension:n}=a;return e(De,{extension:n},Boolean(n.value.length)&&[e(xe,{name:"Policies",value:""}),n.value.map((a=>e(me,null,e(xe,{name:"Policy ID",value:ie(a.policyIdentifier)}),a.policyQualifiers&&Boolean(a.policyQualifiers.length)&&[e(xe,{name:"Qualifiers",value:""}),a.policyQualifiers.map((a=>{const n=[e(xe,{name:"Qualifier ID",value:ie(a.policyQualifierId)})];if(a.policyQualifierId==="1.3.6.1.5.5.7.2.1"){const t=r.parse(a.qualifier,i);n.push(e(xe,{name:"Value",value:t.toString()}))}if(a.policyQualifierId==="1.3.6.1.5.5.7.2.2"){const t=r.parse(a.qualifier,f);if(t.explicitText){n.push(e(xe,{name:"Value",value:t.explicitText.toString()}))}}return e(me,null,n)}))])))])};
|
|
159
|
-
/**
|
|
160
|
-
* @license
|
|
161
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the MIT license found in the
|
|
164
|
-
* LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/var Ue={"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”",e83ed0da3ef5063532e75728bc896bc903d3cbd1116beceb69e1777d6d06bd6e:"Google “Argon2023”","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"};
|
|
166
|
-
/**
|
|
167
|
-
* @license
|
|
168
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
169
|
-
*
|
|
170
|
-
* This source code is licensed under the MIT license found in the
|
|
171
|
-
* LICENSE file in the root directory of this source tree.
|
|
172
|
-
*/const Ee=a=>{const{extension:n}=a;return e(De,{extension:n},Boolean(n.value.items.length)&&[e(xe,{name:"Signed Certificate Timestamps",value:""}),n.value.toJSON().map((a=>e(me,null,e(xe,{name:"Version",value:a.version+1}),e(xe,{name:"Log Operator",value:Ue[a.logId]||a.logId}),e(xe,{name:"Log Key ID",value:a.logId,monospace:true}),e(xe,{name:"Timestamp",value:t(a.timestamp)}),e(xe,{name:"Signature Algorithm",value:`${a.hashAlgorithm} ${a.signatureAlgorithm}`.toUpperCase()}),e(xe,{name:"Signature",value:a.signature,monospace:true}))))])};
|
|
173
|
-
/**
|
|
174
|
-
* @license
|
|
175
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
176
|
-
*
|
|
177
|
-
* This source code is licensed under the MIT license found in the
|
|
178
|
-
* LICENSE file in the root directory of this source tree.
|
|
179
|
-
*/const $e=a=>{var n,t;const{extension:c}=a;return e(De,{extension:c},(n=c.value.excludedSubtrees)===null||n===void 0?void 0:n.map((n=>e(ke,Object.assign({generalName:n.base},a)))),(t=c.value.permittedSubtrees)===null||t===void 0?void 0:t.map((n=>e(ke,Object.assign({generalName:n.base},a)))))};
|
|
180
|
-
/**
|
|
181
|
-
* @license
|
|
182
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
183
|
-
*
|
|
184
|
-
* This source code is licensed under the MIT license found in the
|
|
185
|
-
* LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const Ke=a=>{const{extension:n}=a;return e(De,{extension:n},e(xe,{name:"Template ID",value:n.value.templateID}),e(xe,{name:"Template Major Version",value:n.value.templateMajorVersion}),e(xe,{name:"Template Minor Version",value:n.value.templateMinorVersion}))};
|
|
187
|
-
/**
|
|
188
|
-
* @license
|
|
189
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
190
|
-
*
|
|
191
|
-
* This source code is licensed under the MIT license found in the
|
|
192
|
-
* LICENSE file in the root directory of this source tree.
|
|
193
|
-
*/const Me=a=>{const{extension:n}=a;return e(De,{extension:n},e(xe,{name:"Name",value:n.value.toString()}))};
|
|
194
|
-
/**
|
|
195
|
-
* @license
|
|
196
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
197
|
-
*
|
|
198
|
-
* This source code is licensed under the MIT license found in the
|
|
199
|
-
* LICENSE file in the root directory of this source tree.
|
|
200
|
-
*/const He=a=>{const{extension:n}=a;const t=n.value.getVersion();return e(De,{extension:n},e(xe,{name:"Certificate Index",value:t.certificateIndex}),e(xe,{name:"Key Index",value:t.keyIndex}))};var we,Ye,qe,Xe;let Fe=class e{constructor(e){if(typeof e==="string"){this.alphabetic=e}else if(typeof e==="number"){this.numeric=e}}};l([d({type:b.PrintableString})],Fe.prototype,"alphabetic",void 0);l([d({type:b.PrintableString})],Fe.prototype,"numeric",void 0);Fe=l([m({type:v.Choice})],Fe);class ze{constructor(e={}){this.currency=new Fe;this.amount=0;this.exponent=0;Object.assign(this,e)}}l([d({type:Fe})],ze.prototype,"currency",void 0);l([d({type:b.Integer})],ze.prototype,"amount",void 0);l([d({type:b.Integer})],ze.prototype,"exponent",void 0);let Qe=class e extends ze{};Qe=l([m({type:v.Sequence})],Qe);let We=class e{constructor(e=0){this.value=e}};l([d({type:b.Integer})],We.prototype,"value",void 0);We=l([m({type:v.Choice})],We);let Ze=class e{constructor(e={}){this.url="";this.language="";Object.assign(this,e)}};l([d({type:b.IA5String})],Ze.prototype,"url",void 0);l([d({type:b.PrintableString})],Ze.prototype,"language",void 0);Ze=l([m({type:v.Sequence})],Ze);let Je=we=class e extends x{constructor(e){super(e);Object.setPrototypeOf(this,we.prototype)}};Je=we=l([m({type:v.Sequence,itemType:Ze})],Je);let _e=Ye=class e extends Je{constructor(e){super(e);Object.setPrototypeOf(this,Ye.prototype)}};_e=Ye=l([m({type:v.Sequence,itemType:Ze})],_e);let ea=qe=class e extends x{constructor(e){super(e);Object.setPrototypeOf(this,qe.prototype)}};ea=qe=l([m({type:v.Sequence,itemType:b.ObjectIdentifier})],ea);let aa=Xe=class e extends x{constructor(e){super(e);Object.setPrototypeOf(this,Xe.prototype)}};aa=Xe=l([m({type:v.Sequence,itemType:b.PrintableString})],aa);const na="0.4.0.1862.1";const ta=`${na}.3`;const ca=`${na}.5`;const oa=`${na}.6`
|
|
201
|
-
/**
|
|
202
|
-
* @license
|
|
203
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
204
|
-
*
|
|
205
|
-
* This source code is licensed under the MIT license found in the
|
|
206
|
-
* LICENSE file in the root directory of this source tree.
|
|
207
|
-
*/;const sa=a=>{const{extension:n}=a;function t(a,n){if(!n.byteLength){return null}if(a===p){const a=r.parse(n,g);return e(xe,{name:"Semantics Identifier",value:ie(a.semanticsIdentifier)})}if(a===oa){const a=r.parse(n,ea);return e(xe,{name:"QC Types",value:a.map((e=>ie(e))).join(", ")})}if(a===ta){const a=r.parse(n,We);return e(xe,{name:"Retention Period",value:`${a.value} years`})}if(a===ca){const a=r.parse(n,Je);return[e(xe,{name:"PDS Locations",value:""}),a.map((a=>e(me,null,e(xe,{name:"URL",value:a.url}),e(xe,{name:"Language",value:a.language}))))]}return e(xe,{name:"Info",value:c.Convert.ToHex(n),monospace:true})}return e(De,{extension:n},Boolean(n.value.length)&&[e(xe,{name:"Statements",value:""}),n.value.map((a=>e(me,null,e(xe,{name:"Statement ID",value:ie(a.statementId)}),t(a.statementId,a.statementInfo))))])};
|
|
208
|
-
/**
|
|
209
|
-
* @license
|
|
210
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
211
|
-
*
|
|
212
|
-
* This source code is licensed under the MIT license found in the
|
|
213
|
-
* LICENSE file in the root directory of this source tree.
|
|
214
|
-
*/const ra=a=>{const{extension:n}=a;return e(De,{extension:n},e(xe,{name:"Comment",value:n.value.value}))};
|
|
215
|
-
/**
|
|
216
|
-
* @license
|
|
217
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the MIT license found in the
|
|
220
|
-
* LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const ia=a=>{const{extension:n}=a;return e(De,{extension:n},e(xe,{name:"Type",value:n.value.toJSON().join(", ")}))};
|
|
222
|
-
/**
|
|
223
|
-
* @license
|
|
224
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
225
|
-
*
|
|
226
|
-
* This source code is licensed under the MIT license found in the
|
|
227
|
-
* LICENSE file in the root directory of this source tree.
|
|
228
|
-
*/const fa=a=>{const{extension:n}=a;return e(De,{extension:n},e(xe,{name:"Role",value:n.value.text}))};
|
|
229
|
-
/**
|
|
230
|
-
* @license
|
|
231
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
232
|
-
*
|
|
233
|
-
* This source code is licensed under the MIT license found in the
|
|
234
|
-
* LICENSE file in the root directory of this source tree.
|
|
235
|
-
*/const ua=a=>{const{extension:n,getLEILink:t}=a;return e(De,{extension:n},e(xe,{name:"Identifier",value:n.value.text,href:t(n.value.text)}))};
|
|
236
|
-
/**
|
|
237
|
-
* @license
|
|
238
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
239
|
-
*
|
|
240
|
-
* This source code is licensed under the MIT license found in the
|
|
241
|
-
* LICENSE file in the root directory of this source tree.
|
|
242
|
-
*/const la=a=>{const{extension:t}=a;return e(De,{extension:t},e(xe,{name:"Version",value:t.value.version}),e(ke,Object.assign({generalName:t.value.location},a)),e(xe,{name:"Requires Auth",value:t.value.requiresAuth?n.getString("yes"):n.getString("no")}))};
|
|
243
|
-
/**
|
|
244
|
-
* @license
|
|
245
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
246
|
-
*
|
|
247
|
-
* This source code is licensed under the MIT license found in the
|
|
248
|
-
* LICENSE file in the root directory of this source tree.
|
|
249
|
-
*/const da=a=>{const{extension:n}=a;return e(De,{extension:n},e(xe,{name:"Version",value:n.value.version}))};
|
|
250
|
-
/**
|
|
251
|
-
* @license
|
|
252
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
253
|
-
*
|
|
254
|
-
* This source code is licensed under the MIT license found in the
|
|
255
|
-
* LICENSE file in the root directory of this source tree.
|
|
256
|
-
*/const ba=a=>{const{extension:n}=a;return e(De,{extension:n},e(xe,{name:"Reason",value:n.value.toJSON()}))};
|
|
257
|
-
/**
|
|
258
|
-
* @license
|
|
259
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
260
|
-
*
|
|
261
|
-
* This source code is licensed under the MIT license found in the
|
|
262
|
-
* LICENSE file in the root directory of this source tree.
|
|
263
|
-
*/function ma(e){return c.Convert.ToString(e.values[0])}
|
|
264
|
-
/**
|
|
265
|
-
* @license
|
|
266
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
267
|
-
*
|
|
268
|
-
* This source code is licensed under the MIT license found in the
|
|
269
|
-
* LICENSE file in the root directory of this source tree.
|
|
270
|
-
*/const va=a=>{const{extension:n}=a;return e(De,{extension:n},Boolean(n.value.length)&&[e(xe,{name:"Attributes",value:""}),n.value.map((a=>e(me,null,e(xe,{name:"Type",value:ie(a.type)}),e(xe,{name:"Value",value:ma(a)}))))])};
|
|
271
|
-
/**
|
|
272
|
-
* @license
|
|
273
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
274
|
-
*
|
|
275
|
-
* This source code is licensed under the MIT license found in the
|
|
276
|
-
* LICENSE file in the root directory of this source tree.
|
|
277
|
-
*/const xa=a=>{const{extension:n}=a;return e(De,{extension:n},e(xe,{name:"Value",value:n.value,monospace:true}))};
|
|
278
|
-
/**
|
|
279
|
-
* @license
|
|
280
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
281
|
-
*
|
|
282
|
-
* This source code is licensed under the MIT license found in the
|
|
283
|
-
* LICENSE file in the root directory of this source tree.
|
|
284
|
-
*/const pa=a=>{const{extension:n}=a;return e(De,{extension:n},e(xe,{name:"Not Before",value:t(n.value.notBefore)}),e(xe,{name:"Not After",value:t(n.value.notAfter)}))};
|
|
285
|
-
/**
|
|
286
|
-
* @license
|
|
287
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
288
|
-
*
|
|
289
|
-
* This source code is licensed under the MIT license found in the
|
|
290
|
-
* LICENSE file in the root directory of this source tree.
|
|
291
|
-
*/const ga=a=>{const{extension:n}=a;return e(De,{extension:n},e(xe,{name:"Version",value:n.value.entrustVers}),e(xe,{name:"Info Flags",value:n.value.entrustInfoFlags.toJSON().join(", ")}))};
|
|
292
|
-
/**
|
|
293
|
-
* @license
|
|
294
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
295
|
-
*
|
|
296
|
-
* This source code is licensed under the MIT license found in the
|
|
297
|
-
* LICENSE file in the root directory of this source tree.
|
|
298
|
-
*/const ya=a=>{const{extension:n}=a;return e(De,{extension:n},Boolean(n.value.length)&&[e(xe,{name:"Biometrics",value:""}),n.value.map((a=>e(me,null,e(xe,{name:"OID",value:ie(a.typeOfBiometricData.biometricDataOid)}),e(xe,{name:"Type",value:a.typeOfBiometricData.predefinedBiometricType}),e(xe,{name:"Algorithm",value:ie(a.hashAlgorithm.algorithm)}),e(xe,{name:"Hash",value:c.Convert.ToHex(a.biometricDataHash.buffer),monospace:true}),e(xe,{name:"Source Uri",value:a.sourceDataUri}))))])};
|
|
299
|
-
/**
|
|
300
|
-
* @license
|
|
301
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
302
|
-
*
|
|
303
|
-
* This source code is licensed under the MIT license found in the
|
|
304
|
-
* LICENSE file in the root directory of this source tree.
|
|
305
|
-
*/const ha=a=>{const{extension:n}=a;const t=a=>{if(!a){return null}return a.map((a=>{const{imageDetails:n}=a;return[e(xe,{name:"Image Type",value:n.mediaType}),e(xe,{name:"Image Hash",value:c.Convert.ToHex(n.logotypeHash[0].hashValue),monospace:true}),e(xe,{name:"Image URL",value:n.logotypeURI[0],monospace:true,collapse:true}),e(xe,{name:"Image Hash Algorithm",value:ie(n.logotypeHash[0].hashAlg.algorithm)})]}))};const o=a=>{if(!a){return null}return a.map((a=>{const{audioDetails:n}=a;return[e(xe,{name:"Audio Type",value:n.mediaType}),e(xe,{name:"Audio Hash",value:c.Convert.ToHex(n.logotypeHash[0].hashValue),monospace:true}),e(xe,{name:"Audio URL",value:n.logotypeURI[0],monospace:true,collapse:true}),e(xe,{name:"Audio Hash Algorithm",value:ie(n.logotypeHash[0].hashAlg.algorithm)})]}))};const s=(a,n)=>{if(!n||!n.direct){return null}const{image:c,audio:s}=n.direct;return[e(xe,{name:"Type",value:a}),t(c),o(s),e("tr",null,e("td",null),e("td",null))]};return e(De,{extension:n},s("Subject",n.value.subjectLogo),s("Issuer",n.value.issuerLogo))};
|
|
306
|
-
/**
|
|
307
|
-
* @license
|
|
308
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
309
|
-
*
|
|
310
|
-
* This source code is licensed under the MIT license found in the
|
|
311
|
-
* LICENSE file in the root directory of this source tree.
|
|
312
|
-
*/const Ca=a=>{const{extension:n}=a;return e(De,{extension:n},n.value.length>0&&[e(xe,{name:"Entries",value:""}),n.value.map((a=>e(me,null,e(xe,{name:"SPC",value:a.spc}),e(xe,{name:"Range",value:a.range?`start=${a.range.start} count==${a.range.count}`:null}),e(xe,{name:"One",value:a.one}))))])};
|
|
313
|
-
/**
|
|
314
|
-
* @license
|
|
315
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
316
|
-
*
|
|
317
|
-
* This source code is licensed under the MIT license found in the
|
|
318
|
-
* LICENSE file in the root directory of this source tree.
|
|
319
|
-
*/const Sa=a=>{const{extension:n}=a;return e(De,{extension:n},n.value.requireExplicitPolicy&&e(xe,{name:"Require Explicit Policy",value:y.toASN(n.value.requireExplicitPolicy).valueBlock.toString()}),n.value.inhibitPolicyMapping&&e(xe,{name:"Inhibit Policy Mapping",value:y.toASN(n.value.inhibitPolicyMapping).valueBlock.toString()}))};
|
|
320
|
-
/**
|
|
321
|
-
* @license
|
|
322
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
323
|
-
*
|
|
324
|
-
* This source code is licensed under the MIT license found in the
|
|
325
|
-
* LICENSE file in the root directory of this source tree.
|
|
326
|
-
*/const Na=a=>{const{extension:n}=a;return e(De,{extension:n},n.value.length>0&&[e(xe,{name:"Policies",value:""}),n.value.map((a=>e(me,null,e(xe,{name:"Issuer Domain",value:ie(a.issuerDomainPolicy)}),e(xe,{name:"Subject Domain",value:ie(a.subjectDomainPolicy)}))))])};
|
|
327
|
-
/**
|
|
328
|
-
* @license
|
|
329
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
330
|
-
*
|
|
331
|
-
* This source code is licensed under the MIT license found in the
|
|
332
|
-
* LICENSE file in the root directory of this source tree.
|
|
333
|
-
*/const Aa=a=>{const{extension:t}=a;return e(De,{extension:t},e(xe,{name:n.getString("value"),value:t.value.value}))};
|
|
334
|
-
/**
|
|
335
|
-
* @license
|
|
336
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
337
|
-
*
|
|
338
|
-
* This source code is licensed under the MIT license found in the
|
|
339
|
-
* LICENSE file in the root directory of this source tree.
|
|
340
|
-
*/const Da=a=>{var t;const{extension:c}=a;return e(De,{extension:c},(t=c.value.distributionPoint)===null||t===void 0?void 0:t.fullName.map((n=>e(ke,Object.assign({generalName:n},a)))),c.value.onlySomeReasons&&e(xe,{name:n.getString("onlyReasons"),value:c.value.onlySomeReasons.toJSON().join(", ")}),c.value.indirectCRL&&e(xe,{name:n.getString("indirectCRL"),value:n.getString("yes")}),c.value.onlyContainsUserCerts&&e(xe,{name:n.getString("onlyUserCertificates"),value:n.getString("yes")}),c.value.onlyContainsAttributeCerts&&e(xe,{name:n.getString("onlyAttributeCertificates"),value:n.getString("yes")}),c.value.onlyContainsCACerts&&e(xe,{name:n.getString("onlyCACertificates"),value:n.getString("yes")}))};
|
|
341
|
-
/**
|
|
342
|
-
* @license
|
|
343
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
344
|
-
*
|
|
345
|
-
* This source code is licensed under the MIT license found in the
|
|
346
|
-
* LICENSE file in the root directory of this source tree.
|
|
347
|
-
*/const Ia=a=>{const{extension:t}=a;const o=a=>Object.keys(a).map((t=>{const s=a[t];let i="";switch(true){case typeof s==="string"||typeof s==="number":i=s;break;case s instanceof S:i=s.join(", ");break;case typeof s==="boolean":i=s?n.getString("yes"):n.getString("no");break;case Object.is(s,null):i="NULL";break;case s instanceof C:return[e(xe,{name:fe(t),value:""}),e(me,null,o(s))];case c.BufferSourceConverter.isBufferSource(s):if(t==="attestationApplicationId"){try{const a=r.parse(s,h);if(a.packageInfos.length||a.signatureDigests.length){return[e(xe,{name:fe(t),value:""}),Boolean(a.packageInfos)&&e(me,null,e(xe,{name:fe("packageInfos"),value:""}),a.packageInfos.map((a=>e(me,null,o(a)))))]}}catch(e){}}try{i=c.Convert.ToString(s)}catch(e){i=c.Convert.ToHex(s)}break}return e(xe,{name:fe(t),value:i})}));const s=(a,n)=>{if(n.length===0){return null}return[e(xe,{name:a,value:""}),e(me,null,n.map(o))]};return e(De,{extension:t},e(xe,{name:fe("attestationVersion"),value:t.value.attestationVersion}),e(xe,{name:fe("attestationSecurityLevel"),value:t.value.attestationSecurityLevel}),e(xe,{name:fe("keymasterVersion"),value:t.value.keymasterVersion}),e(xe,{name:fe("keymasterSecurityLevel"),value:t.value.keymasterSecurityLevel}),e(xe,{name:fe("attestationChallenge"),value:c.Convert.ToString(t.value.attestationChallenge)}),e(xe,{name:fe("uniqueId"),value:c.Convert.ToString(t.value.uniqueId)||undefined}),s(fe("softwareEnforced"),t.value.softwareEnforced),s(fe("teeEnforced"),t.value.teeEnforced))};
|
|
348
|
-
/**
|
|
349
|
-
* @license
|
|
350
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
351
|
-
*
|
|
352
|
-
* This source code is licensed under the MIT license found in the
|
|
353
|
-
* LICENSE file in the root directory of this source tree.
|
|
354
|
-
*/const ja=a=>{const{extension:n}=a;return e(De,{extension:n},Object.keys(n.value).map((a=>e(xe,{name:fe(a),value:n.value[a]}))))};
|
|
355
|
-
/**
|
|
356
|
-
* @license
|
|
357
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
358
|
-
*
|
|
359
|
-
* This source code is licensed under the MIT license found in the
|
|
360
|
-
* LICENSE file in the root directory of this source tree.
|
|
361
|
-
*/const Oa=a=>{const{extensions:n,title:t}=a;if(!n||!n.length){return null}return[e(ve,{value:t||"Extensions"}),n.map((n=>{try{if(n.value instanceof N){return e(Ie,{extension:n})}if(n.value instanceof A){return e(je,{extension:n})}if(n.value instanceof D){return e(Oe,{extension:n})}if(n.value instanceof I){return e(Te,Object.assign({extension:n},a))}if(n.value instanceof j){return e(Ge,Object.assign({extension:n},a))}if(n.value instanceof O){return e(Pe,Object.assign({extension:n},a))}if(n.value instanceof T||n.value instanceof G){return e(Re,Object.assign({extension:n},a))}if(n.value instanceof L){return e(Ve,Object.assign({extension:n},a))}if(n.value instanceof k){return e(Be,{extension:n})}if(n.value instanceof P){return e(Ee,{extension:n})}if(n.value instanceof R){return e($e,Object.assign({extension:n},a))}if(n.value instanceof V){return e(Ke,{extension:n})}if(n.value instanceof B){return e(Me,{extension:n})}if(n.value instanceof U){return e(He,{extension:n})}if(n.value instanceof E){return e(sa,{extension:n})}if(n.value instanceof $){return e(ra,{extension:n})}if(n.value instanceof K){return e(ia,{extension:n})}if(n.value instanceof M){return e(fa,{extension:n})}if(n.value instanceof H){return e(ua,Object.assign({extension:n},a))}if(n.value instanceof w){return e(la,Object.assign({extension:n},a))}if(n.value instanceof Y){return e(da,{extension:n})}if(n.value instanceof q){return e(ba,{extension:n})}if(n.value instanceof X){return e(va,{extension:n})}if(n.value instanceof F){return e(pa,{extension:n})}if(n.value instanceof z){return e(ga,{extension:n})}if(n.value instanceof Q){return e(ya,{extension:n})}if(n.value instanceof W){return e(ha,{extension:n})}if(n.value instanceof Z){return e(Ca,{extension:n})}if(n.value instanceof J){return e(Sa,{extension:n})}if(n.value instanceof _){return e(Na,{extension:n})}if(n.value instanceof ee){return e(Aa,{extension:n})}if(n.value instanceof ae){return e(Da,Object.assign({extension:n},a))}if(n.value instanceof ne){return e(Ia,Object.assign({extension:n},a))}if(n.value instanceof te){return e(ja,Object.assign({extension:n},a))}if(typeof n.value==="string"){return e(xa,{extension:n})}return e(De,{extension:n})}catch(e){console.error("Error render extension:",n.asn.extnID);return null}}))]};
|
|
362
|
-
/**
|
|
363
|
-
* @license
|
|
364
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
365
|
-
*
|
|
366
|
-
* This source code is licensed under the MIT license found in the
|
|
367
|
-
* LICENSE file in the root directory of this source tree.
|
|
368
|
-
*/const Ta=a=>{const{certificate:t}=a;return[e(ve,{value:n.getString("miscellaneous")}),e("tr",null,e("td",null,e(se,{startIcon:e(re,null),onClick:()=>t.downloadAsPEM()},n.getString("download.pem")))),e("tr",null,e("td",null,e(se,{startIcon:e(re,null),onClick:()=>t.downloadAsDER()},n.getString("download.der"))))]};export{pe as B,Oa as E,ke as G,Se as I,Ta as M,he as P,xe as R,Ce as S,Ae as T,Ne as a,le as b,ue as c,ie as d,fe as e,me as f,de as g,ve as h};
|
|
369
|
-
//# sourceMappingURL=p-CGRNSrHk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"p-CZwhKPgb.system.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{A as s,q as t,r as a,s as i,U as e,t as r,V as n,I as h,W as o,u as c,T as u,v as l,w as f,x as g,y as m,b as p,z as b,B as d,F as w,G as A,H as E,J as y,K as P,L as x,M as R,O as q,Q as D,S as K,c as S,X as v,P as C,N as I,i as M,e as N,f as T,g as j,R as H,n as L,E as O,D as U}from"./p-PeMaLTUD.js";
|
|
5
|
-
/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const V={[K]:m,[D]:g,[q]:f,[R]:l,[x]:u,[P]:c,[y]:o,[E]:h,[A]:n,[w]:r,[d]:e,[b]:i};class $ extends s{getAsnExtnValue(){return this.asn.values[0]}constructor(s){super(s,t);const i=this.getAsnExtnValue();try{const s=V[this.asn.type];if(s){this.value=a.parse(i,s)}else{console.warn(`Didn't detect parser for "${this.asn.type}" attribute.`);this.value=p.Convert.ToHex(i)}}catch(s){console.error(`Error parse "${this.asn.type}" attribute:`,s.message);this.value=p.Convert.ToHex(i)}}}
|
|
12
|
-
/**
|
|
13
|
-
* @license
|
|
14
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/class z extends s{constructor(s){super(S(s),v);this.thumbprints={};this.type="PKCS#10 Certificate Request";this.tag=C.CertificateRequestTag;const{certificationRequestInfo:t}=this.asn;this.subject=new I(t.subject).toJSON();this.version=t.version}get publicKey(){const{subjectPublicKey:s,algorithm:t}=this.asn.certificationRequestInfo.subjectPKInfo;let a;if(t.algorithm===M&&t.parameters){a=N.parse(t.parameters,T)}if(t.algorithm===j){a=N.parse(s,H)}const i=N.serialize(this.asn.certificationRequestInfo.subjectPKInfo);return{params:a,value:i,algorithm:t.algorithm}}get signature(){const{signature:s,signatureAlgorithm:t}=this.asn;return{value:s,algorithm:t.algorithm}}get commonName(){if(!this.subject){return""}for(let s=0;s<this.subject.length;s+=1){const t=this.subject[s];if(t.shortName==="CN"||t.shortName==="E"||t.shortName==="O"){return t.value}}return""}async getThumbprint(s="SHA-1"){try{const t=await L(s,this.raw);if(t){this.thumbprints[s]=p.Convert.ToHex(t)}}catch(s){console.error("Error thumbprint get:",s)}}parseAttributes(){const{certificationRequestInfo:s}=this.asn;if(s.attributes){this.attributes=s.attributes.map((s=>new $(N.serialize(s))));const t=this.attributes.find((s=>s.asn.type===b));if(t){this.extensions=t.value.map((s=>new O(N.serialize(s))))}}}toString(s="pem"){switch(s){case"pem":return C.encode(this.raw,this.tag);case"base64url":return p.Convert.ToBase64Url(this.raw);default:return p.Convert.ToBase64(this.raw)}}downloadAsPEM(s){U.csr.asPEM(this.toString("pem"),s||this.commonName)}downloadAsDER(s){U.csr.asDER(this.raw,s||this.commonName)}}export{$ as A,z as P};
|
|
19
|
-
//# sourceMappingURL=p-D1eNnGDF.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"p-D1eNnGDF.js","sources":["src/crypto/attribute.ts","src/crypto/pkcs10_certificate_request.ts"],"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 { AsnParser } from '@peculiar/asn1-schema';\nimport { Attribute as AsnAttribute } from '@peculiar/asn1-x509';\nimport {\n id_DomainNameBeneficiary,\n DomainNameBeneficiary,\n\n id_DomainNameLegalRepresentative,\n DomainNameLegalRepresentative,\n\n id_DomainNameOwner,\n DomainNameOwner,\n\n id_DomainNameTechnicalOperator,\n DomainNameTechnicalOperator,\n\n id_TypeRelationship,\n TypeRelationship,\n\n id_ActivityDescription,\n ActivityDescription,\n\n id_WebGDPR,\n WebGDPR,\n\n id_InsuranceValue,\n InsuranceValue,\n\n id_ValuationRanking,\n ValuationRanking,\n} from '@peculiar/asn1-ntqwac';\nimport {\n id_pkcs9_at_extensionRequest,\n ExtensionRequest,\n\n id_pkcs9_at_challengePassword,\n ChallengePassword,\n\n id_pkcs9_at_unstructuredName,\n UnstructuredName,\n} from '@peculiar/asn1-pkcs9';\nimport { AsnData } from './asn_data';\n\nconst attributesParsers = {\n [id_DomainNameBeneficiary]: DomainNameBeneficiary,\n [id_DomainNameLegalRepresentative]: DomainNameLegalRepresentative,\n [id_DomainNameOwner]: DomainNameOwner,\n [id_DomainNameTechnicalOperator]: DomainNameTechnicalOperator,\n [id_TypeRelationship]: TypeRelationship,\n [id_ActivityDescription]: ActivityDescription,\n [id_WebGDPR]: WebGDPR,\n [id_InsuranceValue]: InsuranceValue,\n [id_ValuationRanking]: ValuationRanking,\n [id_pkcs9_at_challengePassword]: ChallengePassword,\n [id_pkcs9_at_unstructuredName]: UnstructuredName,\n [id_pkcs9_at_extensionRequest]: ExtensionRequest,\n};\n\ntype TAttributeKeys = keyof typeof attributesParsers;\n\nexport type TAttributeValue = InstanceType<typeof attributesParsers[TAttributeKeys]> | string;\n\nexport class Attribute<T extends TAttributeValue> extends AsnData<AsnAttribute> {\n public readonly value: T;\n\n private getAsnExtnValue() {\n return this.asn.values[0];\n }\n\n constructor(raw: BufferSource) {\n super(raw, AsnAttribute);\n\n const asnExtnValue = this.getAsnExtnValue();\n\n try {\n const target = attributesParsers[this.asn.type];\n\n if (target) {\n this.value = AsnParser.parse<T>(asnExtnValue, target);\n } else {\n console.warn(`Didn't detect parser for \"${this.asn.type}\" attribute.`);\n\n this.value = Convert.ToHex(asnExtnValue) as T;\n }\n } catch (error) {\n console.error(`Error parse \"${this.asn.type}\" attribute:`, error.message);\n\n this.value = Convert.ToHex(asnExtnValue) as T;\n }\n }\n}\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { AsnConvert } from '@peculiar/asn1-schema';\nimport { ECParameters, id_ecPublicKey } from '@peculiar/asn1-ecc';\nimport { id_rsaEncryption, RSAPublicKey } from '@peculiar/asn1-rsa';\nimport { CertificationRequest } from '@peculiar/asn1-csr';\nimport {\n id_pkcs9_at_extensionRequest,\n ExtensionRequest,\n} from '@peculiar/asn1-pkcs9';\nimport { Convert } from 'pvtsutils';\nimport { Download } from '../utils';\nimport { AsnData } from './asn_data';\nimport { Name, INameJSON } from './name';\nimport { Attribute, TAttributeValue } from './attribute';\nimport { Extension, TExtensionValue } from './extension';\nimport { PemConverter } from './pem_converter';\nimport {\n certificateRawToBuffer,\n getCertificateThumbprint,\n} from './utils';\n\ninterface ISignature {\n algorithm: string;\n value: BufferSource;\n}\n\ninterface IPublicKey {\n algorithm: string;\n value: BufferSource;\n params?: ECParameters | RSAPublicKey;\n}\n\nexport class Pkcs10CertificateRequest extends AsnData<CertificationRequest> {\n public readonly subject: INameJSON[];\n\n public readonly version: number;\n\n public attributes: Attribute<TAttributeValue>[];\n\n public extensions: Extension<TExtensionValue>[];\n\n public thumbprints: Record<string, string> = {};\n\n public readonly type = 'PKCS#10 Certificate Request';\n\n public readonly tag = PemConverter.CertificateRequestTag;\n\n constructor(raw: string) {\n super(certificateRawToBuffer(raw), CertificationRequest);\n\n const { certificationRequestInfo } = this.asn;\n\n this.subject = new Name(certificationRequestInfo.subject).toJSON();\n this.version = certificationRequestInfo.version;\n }\n\n public get publicKey(): IPublicKey {\n const { subjectPublicKey, algorithm } = this.asn.certificationRequestInfo.subjectPKInfo;\n let params;\n\n if (algorithm.algorithm === id_ecPublicKey && algorithm.parameters) {\n params = AsnConvert.parse(algorithm.parameters, ECParameters);\n }\n\n if (algorithm.algorithm === id_rsaEncryption) {\n params = AsnConvert.parse(subjectPublicKey, RSAPublicKey);\n }\n\n const spki = AsnConvert.serialize(this.asn.certificationRequestInfo.subjectPKInfo);\n\n return {\n params,\n value: spki,\n algorithm: algorithm.algorithm,\n };\n }\n\n public get signature(): ISignature {\n const { signature, signatureAlgorithm } = this.asn;\n\n return {\n value: signature,\n algorithm: signatureAlgorithm.algorithm,\n };\n }\n\n public get commonName(): string {\n if (!this.subject) {\n return '';\n }\n\n for (let i = 0; i < this.subject.length; i += 1) {\n const name = this.subject[i];\n\n if (name.shortName === 'CN' || name.shortName === 'E' || name.shortName === 'O') {\n return name.value;\n }\n }\n\n return '';\n }\n\n public async getThumbprint(\n algorithm = 'SHA-1',\n ): Promise<void> {\n try {\n const thumbprint = await getCertificateThumbprint(algorithm, this.raw);\n\n if (thumbprint) {\n this.thumbprints[algorithm] = Convert.ToHex(thumbprint);\n }\n } catch (error) {\n console.error('Error thumbprint get:', error);\n }\n }\n\n public parseAttributes() {\n const { certificationRequestInfo } = this.asn;\n\n if (certificationRequestInfo.attributes) {\n this.attributes = certificationRequestInfo.attributes\n .map((e) => new Attribute(AsnConvert.serialize(e)));\n\n const extensionRequestAttribute = this.attributes.find(\n (attribute) => attribute.asn.type === id_pkcs9_at_extensionRequest,\n ) as Attribute<ExtensionRequest>;\n\n if (extensionRequestAttribute) {\n this.extensions = extensionRequestAttribute.value\n .map((e) => new Extension(AsnConvert.serialize(e)));\n }\n }\n }\n\n public toString(format: 'pem' | 'base64' | 'base64url' = 'pem'): string {\n switch (format) {\n case 'pem':\n return PemConverter.encode(this.raw, this.tag);\n case 'base64url':\n return Convert.ToBase64Url(this.raw);\n default:\n return Convert.ToBase64(this.raw);\n }\n }\n\n public downloadAsPEM(name?: string) {\n Download.csr.asPEM(\n this.toString('pem'),\n name || this.commonName,\n );\n }\n\n public downloadAsDER(name?: string) {\n Download.csr.asDER(\n this.raw,\n name || this.commonName,\n );\n }\n}\n"],"names":["AsnAttribute","Convert"],"mappings":";;;;;AAAA;;;;;;AAMG;AA6CH,MAAM,iBAAiB,GAAG;IACxB,CAAC,wBAAwB,GAAG,qBAAqB;IACjD,CAAC,gCAAgC,GAAG,6BAA6B;IACjE,CAAC,kBAAkB,GAAG,eAAe;IACrC,CAAC,8BAA8B,GAAG,2BAA2B;IAC7D,CAAC,mBAAmB,GAAG,gBAAgB;IACvC,CAAC,sBAAsB,GAAG,mBAAmB;IAC7C,CAAC,UAAU,GAAG,OAAO;IACrB,CAAC,iBAAiB,GAAG,cAAc;IACnC,CAAC,mBAAmB,GAAG,gBAAgB;IACvC,CAAC,6BAA6B,GAAG,iBAAiB;IAClD,CAAC,4BAA4B,GAAG,gBAAgB;IAChD,CAAC,4BAA4B,GAAG,gBAAgB;CACjD;AAMK,MAAO,SAAqC,SAAQ,OAAqB,CAAA;IAGrE,eAAe,GAAA;QACrB,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;;AAG3B,IAAA,WAAA,CAAY,GAAiB,EAAA;AAC3B,QAAA,KAAK,CAAC,GAAG,EAAEA,WAAY,CAAC;AAExB,QAAA,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE;AAE3C,QAAA,IAAI;YACF,MAAM,MAAM,GAAG,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;YAE/C,IAAI,MAAM,EAAE;gBACV,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAI,YAAY,EAAE,MAAM,CAAC;;iBAChD;gBACL,OAAO,CAAC,IAAI,CAAC,CAA6B,0BAAA,EAAA,IAAI,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