@peculiar/certificates-viewer 3.6.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{certification_request-6cd86a69.js → certification_request-6eb7ef37.js} +6982 -6865
- package/dist/cjs/{crl-91c8642c.js → crl-75106e2e.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{public_key-dccd1cdf.js → miscellaneous-0eade914.js} +387 -225
- package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +87 -90
- package/dist/cjs/{peculiar-certificate-summary_3.cjs.entry.js → peculiar-button-split_4.cjs.entry.js} +35 -0
- package/dist/cjs/peculiar-button.cjs.entry.js +40 -0
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +3 -3
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +5 -5
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +2 -2
- package/dist/cjs/peculiar-link.cjs.entry.js +29 -0
- package/dist/cjs/peculiar-text-hider.cjs.entry.js +33 -0
- package/dist/cjs/peculiar-typography.cjs.entry.js +38 -0
- package/dist/cjs/peculiar.cjs.js +1 -1
- package/dist/cjs/{x509_certificate-87a3fdb6.js → x509_certificate-9e7652cf.js} +18 -4
- package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +1 -8
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/basic_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/basic_extension.js +1 -2
- package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js +27 -0
- package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js +43 -0
- package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js +28 -0
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/extended_key_usage_extension.js +7 -3
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/general_name_part.js +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js +24 -0
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/logotype_extension.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/policy_mappings_extension.js +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js +54 -0
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_directory_attributes_extension.js +8 -7
- package/dist/collection/components/{attribute-certificate-viewer → certificate-details-parts}/holder.js +3 -4
- package/dist/collection/components/certificate-details-parts/index.js +15 -0
- package/dist/collection/components/{attribute-certificate-viewer → certificate-details-parts}/issuer.js +2 -2
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/public_key.js +14 -9
- package/dist/collection/components/{crl-viewer → certificate-details-parts}/revoked_certificates.js +3 -7
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/row.js +3 -0
- package/dist/collection/components/certificate-details-parts/signature.js +31 -0
- package/dist/collection/components/certificate-viewer/certificate-viewer.css +4 -0
- package/dist/collection/components/certificate-viewer/certificate-viewer.js +1 -8
- package/dist/collection/components/crl-viewer/crl-viewer.js +1 -7
- package/dist/collection/components/csr-viewer/csr-viewer.js +1 -8
- package/dist/collection/constants/oids.js +21 -13
- package/dist/collection/crypto/x509_certificate.js +18 -3
- package/dist/collection/{components/certificate-viewer → utils}/get_string_by_oid.js +1 -1
- package/dist/collection/utils/index.js +1 -0
- package/dist/esm/{certification_request-5089bdb5.js → certification_request-4adeae0c.js} +6727 -6618
- package/dist/esm/{crl-cd78d029.js → crl-2857d300.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{public_key-081d831c.js → miscellaneous-91256fd3.js} +387 -226
- package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +54 -57
- package/dist/esm/{peculiar-certificate-summary_3.entry.js → peculiar-button-split_4.entry.js} +35 -1
- package/dist/esm/peculiar-button.entry.js +36 -0
- package/dist/esm/peculiar-certificate-decoder.entry.js +3 -3
- package/dist/esm/peculiar-certificate-viewer.entry.js +4 -4
- package/dist/esm/peculiar-certificates-viewer.entry.js +2 -2
- package/dist/esm/peculiar-link.entry.js +25 -0
- package/dist/esm/peculiar-text-hider.entry.js +29 -0
- package/dist/esm/peculiar-typography.entry.js +34 -0
- package/dist/esm/peculiar.js +1 -1
- package/dist/esm/{x509_certificate-69c7b972.js → x509_certificate-e7b4d8d1.js} +18 -4
- package/dist/peculiar/p-05f4713f.js +11 -0
- package/dist/peculiar/{p-39896604.entry.js → p-22d8ae9c.entry.js} +1 -1
- package/dist/peculiar/{p-72856c36.entry.js → p-40808c02.entry.js} +1 -1
- package/dist/peculiar/p-57b89412.entry.js +4 -0
- package/dist/peculiar/p-5fb5f008.entry.js +18 -0
- package/dist/peculiar/p-610b85e3.entry.js +4 -0
- package/dist/peculiar/p-6d37c8b5.entry.js +4 -0
- package/dist/peculiar/p-77121cf7.js +69 -0
- package/dist/peculiar/p-7de0bfb3.entry.js +4 -0
- package/dist/peculiar/p-893659f4.entry.js +4 -0
- package/dist/peculiar/p-918aeee4.entry.js +4 -0
- package/dist/peculiar/p-b44dc7c9.js +79 -0
- package/dist/peculiar/{p-85377ca1.js → p-e7518804.js} +3 -3
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/certificate-details-parts/index.d.ts +12 -0
- package/dist/types/components/{certificate-viewer → certificate-details-parts}/row.d.ts +1 -0
- package/dist/types/constants/oids.d.ts +7 -0
- package/dist/types/crypto/x509_certificate.d.ts +6 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +21 -19
- package/dist/cjs/peculiar-button_5.cjs.entry.js +0 -148
- package/dist/collection/components/certificate-viewer/extensions/biometric_syntax_extension.js +0 -26
- package/dist/collection/components/certificate-viewer/extensions/certificate_policies_extension.js +0 -43
- package/dist/collection/components/certificate-viewer/extensions/certificate_transparency_extension.js +0 -27
- package/dist/collection/components/certificate-viewer/extensions/info_access_syntax_extension.js +0 -23
- package/dist/collection/components/certificate-viewer/extensions/qc_statements_extension.js +0 -23
- package/dist/collection/components/certificate-viewer/signature.js +0 -26
- package/dist/esm/peculiar-button_5.entry.js +0 -140
- package/dist/peculiar/p-28d6119e.entry.js +0 -26
- package/dist/peculiar/p-3bd51c63.js +0 -87
- package/dist/peculiar/p-870c3592.entry.js +0 -4
- package/dist/peculiar/p-a7322c0b.js +0 -11
- package/dist/peculiar/p-ade86ece.entry.js +0 -4
- package/dist/peculiar/p-dafae164.entry.js +0 -4
- package/dist/peculiar/p-f8d68bc3.js +0 -63
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/activity_description_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/as_string_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/challenge_password_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/index.js +0 -0
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/insurance_value_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/name_attribute.js +0 -0
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/name_part.js +0 -0
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/type_relationship_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/unstructured_name_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/valuation_ranking_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/web_gdpr_attribute.js +1 -1
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/basic_information.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/archive_rev_info_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/as_string_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/attribute_value.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/authority_key_identifier_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/basic_constraints_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/ca_version_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_template_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_distribution_points_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_number_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_reason_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/enroll_cert_type_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/entrust_version_info_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/index.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/issuing_distribution_point_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/key_usage_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/lei_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/lei_role_extennsion.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/name_constraints_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_cert_type_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_comment_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/policy_constraints_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/private_key_usage_period_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_alternative_name_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_key_identifier_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/timestamp_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/tn_auth_list_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/issuer_name.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/miscellaneous.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/subject_name.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/thumbprints.js +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/activity_description_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/as_string_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/basic_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/challenge_password_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/index.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/insurance_value_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/name_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/name_part.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/type_relationship_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/unstructured_name_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/valuation_ranking_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/web_gdpr_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/basic_information.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/archive_rev_info_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/as_string_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/attribute_value.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/authority_key_identifier_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/basic_constraints_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/basic_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/biometric_syntax_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/ca_version_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_policies_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_template_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_transparency_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_distribution_points_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_number_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_reason_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/enroll_cert_type_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/entrust_version_info_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/extended_key_usage_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/general_name_part.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/index.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/info_access_syntax_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/issuing_distribution_point_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/key_usage_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/lei_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/lei_role_extennsion.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/logotype_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/name_constraints_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_cert_type_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_comment_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/policy_constraints_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/policy_mappings_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/private_key_usage_period_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/qc_statements_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_alternative_name_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_directory_attributes_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_key_identifier_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/timestamp_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/tn_auth_list_extension.d.ts +0 -0
- /package/dist/types/components/{attribute-certificate-viewer → certificate-details-parts}/holder.d.ts +0 -0
- /package/dist/types/components/{attribute-certificate-viewer → certificate-details-parts}/issuer.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/issuer_name.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/miscellaneous.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/public_key.d.ts +0 -0
- /package/dist/types/components/{crl-viewer → certificate-details-parts}/revoked_certificates.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/signature.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/subject_name.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/thumbprints.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/types.d.ts +0 -0
- /package/dist/types/{components/certificate-viewer → utils}/get_string_by_oid.d.ts +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
+
*/
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
|
+
|
|
8
|
+
const index = require('./index-064e95c7.js');
|
|
9
|
+
|
|
10
|
+
const typographyCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:block}.typography{font-family:\"Open Sans\", \"Arial\", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);font-weight:400;margin:0;padding:0;display:block}.typography_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.typography_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.typography_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.typography_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.typography_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.typography_color_dark{color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.typography_color_light{color:white;color:rgba(var(--pv-color-light-rgb), 1)}.typography_color_grey_3{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.typography_color_grey_5{color:#869196;color:rgba(var(--pv-color-grey_5-rgb), 1)}.typography_color_attention{color:#f7a831;color:rgba(var(--pv-color-attention-rgb), 1)}.typography_color_primary{color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1)}.typography_ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.typography_monospace{font-family:monospace}.typography_align_left{text-align:left}.typography_align_center{text-align:center}.typography_align_right{text-align:right}";
|
|
11
|
+
|
|
12
|
+
const PeculiarTypography = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
/**
|
|
16
|
+
* Typography type.
|
|
17
|
+
*/
|
|
18
|
+
this.type = 'b3';
|
|
19
|
+
/**
|
|
20
|
+
* Component color from theme.
|
|
21
|
+
*/
|
|
22
|
+
this.color = 'dark';
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
const TagType = this.type && this.type.includes('h') ? this.type : 'p';
|
|
26
|
+
return (index.h(TagType, { class: {
|
|
27
|
+
typography: true,
|
|
28
|
+
[`typography_type_${this.type || 'b3'}`]: true,
|
|
29
|
+
[`typography_color_${this.color || 'dark'}`]: true,
|
|
30
|
+
[`typography_align_${this.align}`]: !!this.align,
|
|
31
|
+
typography_ellipsis: this.ellipsis,
|
|
32
|
+
typography_monospace: this.monospace,
|
|
33
|
+
} }, index.h("slot", null)));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
PeculiarTypography.style = typographyCss;
|
|
37
|
+
|
|
38
|
+
exports.peculiar_typography = PeculiarTypography;
|
package/dist/cjs/peculiar.cjs.js
CHANGED
|
@@ -71,5 +71,5 @@ const patchDynamicImport = (base, orgScriptElm) => {
|
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
patchBrowser().then(options => {
|
|
74
|
-
return index.bootstrapLazy([["peculiar-
|
|
74
|
+
return index.bootstrapLazy([["peculiar-certificates-viewer.cjs",[[1,"peculiar-certificates-viewer",{"certificates":[16],"filterWithSearch":[4,"filter-with-search"],"highlightWithSearch":[4,"highlight-with-search"],"search":[32],"certificatesDecoded":[32],"expandedRow":[32],"certificateSelectedForDetails":[32],"isDecodeInProcess":[32]}]]],["peculiar-certificate-decoder.cjs",[[1,"peculiar-certificate-decoder",{"certificateExample":[1,"certificate-example"],"defaultCertificate":[1,"default-certificate"],"certificateDecoded":[32]}]]],["peculiar-text-hider.cjs",[[1,"peculiar-text-hider",{"opened":[1540]},[[0,"textExpand","textExpandHandler"]]]]],["peculiar-link.cjs",[[1,"peculiar-link",{"href":[513],"type":[513]}]]],["peculiar-typography.cjs",[[1,"peculiar-typography",{"type":[513],"color":[1],"align":[1],"ellipsis":[4],"monospace":[4]}]]],["peculiar-certificate-viewer.cjs",[[1,"peculiar-certificate-viewer",{"certificate":[513],"download":[516],"authKeyIdParentLink":[513,"auth-key-id-parent-link"],"authKeyIdSiblingsLink":[513,"auth-key-id-siblings-link"],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"issuerDnLink":[513,"issuer-dn-link"],"view":[513],"isDecodeInProcess":[32]}]]],["peculiar-attribute-certificate-viewer_3.cjs",[[1,"peculiar-attribute-certificate-viewer",{"certificate":[1],"download":[4],"authKeyIdParentLink":[513,"auth-key-id-parent-link"],"authKeyIdSiblingsLink":[513,"auth-key-id-siblings-link"],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"isDecodeInProcess":[32]}],[1,"peculiar-crl-viewer",{"certificate":[513],"download":[4],"authKeyIdParentLink":[513,"auth-key-id-parent-link"],"authKeyIdSiblingsLink":[513,"auth-key-id-siblings-link"],"issuerDnLink":[513,"issuer-dn-link"],"view":[513],"isDecodeInProcess":[32]}],[1,"peculiar-csr-viewer",{"certificate":[513],"download":[4],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"view":[513],"isDecodeInProcess":[32]}]]],["peculiar-button.cjs",[[1,"peculiar-button",{"fill":[1],"disabled":[516],"href":[1],"target":[1],"onClick":[16]}]]],["peculiar-button-split_4.cjs",[[1,"peculiar-button-split",{"onClick":[16],"fill":[1],"actions":[16],"open":[32]}],[1,"peculiar-certificate-summary",{"certificate":[16],"showIssuer":[4,"show-issuer"]}],[1,"peculiar-circular-progress",{"size":[2],"width":[2]}],[1,"peculiar-highlight-words",{"search":[1]}]]]], options);
|
|
75
75
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const certification_request = require('./certification_request-
|
|
6
|
+
const certification_request = require('./certification_request-6eb7ef37.js');
|
|
7
7
|
const download = require('./download-a97f4cb2.js');
|
|
8
8
|
const l10n = require('./l10n-17c96aba.js');
|
|
9
9
|
|
|
@@ -45,8 +45,8 @@ class X509Certificate extends certification_request.AsnData {
|
|
|
45
45
|
.map((e) => new certification_request.Extension(certification_request.AsnConvert.serialize(e)));
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
const { subjectPublicKey, algorithm } =
|
|
48
|
+
getPublicKeyInfo(publicKeyInfo) {
|
|
49
|
+
const { subjectPublicKey, algorithm } = publicKeyInfo;
|
|
50
50
|
let params;
|
|
51
51
|
if (algorithm.algorithm === certification_request.id_ecPublicKey && algorithm.parameters) {
|
|
52
52
|
params = certification_request.AsnConvert.parse(algorithm.parameters, certification_request.ECParameters);
|
|
@@ -54,16 +54,30 @@ class X509Certificate extends certification_request.AsnData {
|
|
|
54
54
|
if (algorithm.algorithm === certification_request.id_rsaEncryption) {
|
|
55
55
|
params = certification_request.AsnConvert.parse(subjectPublicKey, certification_request.RSAPublicKey);
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
if (algorithm.algorithm === certification_request.id_composite_key) {
|
|
58
|
+
params = certification_request.AsnConvert.parse(subjectPublicKey, certification_request.CompositePublicKey);
|
|
59
|
+
params = params.map((param) => this.getPublicKeyInfo(param));
|
|
60
|
+
}
|
|
61
|
+
const spki = certification_request.AsnConvert.serialize(publicKeyInfo);
|
|
58
62
|
return {
|
|
59
63
|
params,
|
|
60
64
|
value: spki,
|
|
61
65
|
algorithm: algorithm.algorithm,
|
|
62
66
|
};
|
|
63
67
|
}
|
|
68
|
+
get publicKey() {
|
|
69
|
+
return this.getPublicKeyInfo(this.asn.tbsCertificate.subjectPublicKeyInfo);
|
|
70
|
+
}
|
|
64
71
|
get signature() {
|
|
65
72
|
const { signatureValue, signatureAlgorithm } = this.asn;
|
|
73
|
+
let params;
|
|
74
|
+
if (signatureAlgorithm.algorithm === certification_request.id_alg_composite) {
|
|
75
|
+
const compositeSignatureValues = certification_request.AsnConvert.parse(signatureValue, certification_request.CompositeSignatureValue);
|
|
76
|
+
const compositeParams = certification_request.AsnConvert.parse(signatureAlgorithm.parameters, certification_request.CompositeParams);
|
|
77
|
+
params = compositeParams.map((param, index) => (Object.assign(Object.assign({}, param), { value: compositeSignatureValues[index] })));
|
|
78
|
+
}
|
|
66
79
|
return {
|
|
80
|
+
params,
|
|
67
81
|
value: signatureValue,
|
|
68
82
|
algorithm: signatureAlgorithm.algorithm,
|
|
69
83
|
};
|
package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js
CHANGED
|
@@ -10,15 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { Component, Host, h, Prop, State, Watch, } from '@stencil/core';
|
|
12
12
|
import { X509AttributeCertificate } from '../../crypto';
|
|
13
|
-
import { Signature } from '../certificate-viewer/signature';
|
|
14
|
-
import { Attributes } from '../certificate-viewer/attributes';
|
|
15
|
-
import { Thumbprints } from '../certificate-viewer/thumbprints';
|
|
16
|
-
import { Extensions } from '../certificate-viewer/extensions';
|
|
17
|
-
import { BasicInformation } from '../certificate-viewer/basic_information';
|
|
18
|
-
import { Miscellaneous } from '../certificate-viewer/miscellaneous';
|
|
19
13
|
import { getDNSNameLink, getIPAddressLink, getLEILink } from '../../utils/third_party_links';
|
|
20
|
-
import { Issuer } from '
|
|
21
|
-
import { Holder } from './holder';
|
|
14
|
+
import { BasicInformation, Signature, Thumbprints, Extensions, Miscellaneous, Attributes, Holder, Issuer, } from '../certificate-details-parts';
|
|
22
15
|
export class AttributeCertificateViewer {
|
|
23
16
|
constructor() {
|
|
24
17
|
this.isDecodeInProcess = true;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
-
import { getStringByOID } from '
|
|
12
|
+
import { getStringByOID } from '../../../utils';
|
|
13
13
|
import { RowValue } from '../row';
|
|
14
14
|
export const BasicAttribute = (props, children) => {
|
|
15
15
|
const { attribute } = props;
|
|
@@ -9,9 +9,8 @@
|
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
-
import { getStringByOID } from '
|
|
12
|
+
import { l10n, getStringByOID } from '../../../utils';
|
|
13
13
|
import { RowValue } from '../row';
|
|
14
|
-
import { l10n } from '../../../utils';
|
|
15
14
|
export const BasicExtension = (props, children) => {
|
|
16
15
|
const { extension } = props;
|
|
17
16
|
return ([
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
import { h } from '@stencil/core';
|
|
12
|
+
import { Convert } from 'pvtsutils';
|
|
13
|
+
import { getStringByOID } from '../../../utils';
|
|
14
|
+
import { RowValue, TableRowTable } from '../row';
|
|
15
|
+
import { BasicExtension } from './basic_extension';
|
|
16
|
+
export const BiometricSyntaxExtension = (props) => {
|
|
17
|
+
const { extension } = props;
|
|
18
|
+
return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
|
|
19
|
+
h(RowValue, { name: "Biometrics:", value: "" }),
|
|
20
|
+
extension.value.map((data) => (h(TableRowTable, null,
|
|
21
|
+
h(RowValue, { name: "OID", value: getStringByOID(data.typeOfBiometricData.biometricDataOid) }),
|
|
22
|
+
h(RowValue, { name: "Type", value: data.typeOfBiometricData.predefinedBiometricType }),
|
|
23
|
+
h(RowValue, { name: "Algorithm", value: getStringByOID(data.hashAlgorithm.algorithm) }),
|
|
24
|
+
h(RowValue, { name: "Hash", value: Convert.ToHex(data.biometricDataHash.buffer), monospace: true }),
|
|
25
|
+
h(RowValue, { name: "Source Uri", value: data.sourceDataUri })))),
|
|
26
|
+
])));
|
|
27
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
import { h } from '@stencil/core';
|
|
12
|
+
import { UserNotice, DisplayText } from '@peculiar/asn1-x509';
|
|
13
|
+
import { AsnParser } from '@peculiar/asn1-schema';
|
|
14
|
+
import { getStringByOID } from '../../../utils';
|
|
15
|
+
import { RowValue, TableRowTable } from '../row';
|
|
16
|
+
import { BasicExtension } from './basic_extension';
|
|
17
|
+
export const CertificatePoliciesExtension = (props) => {
|
|
18
|
+
const { extension } = props;
|
|
19
|
+
return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
|
|
20
|
+
h(RowValue, { name: "Policies:", value: "" }),
|
|
21
|
+
extension.value.map((policy) => (h(TableRowTable, null,
|
|
22
|
+
h(RowValue, { name: "Policy ID", value: getStringByOID(policy.policyIdentifier) }),
|
|
23
|
+
policy.policyQualifiers && Boolean(policy.policyQualifiers.length) && ([
|
|
24
|
+
h(RowValue, { name: "Qualifiers:", value: "" }),
|
|
25
|
+
policy.policyQualifiers.map((qualifierInfo) => {
|
|
26
|
+
const data = [
|
|
27
|
+
h(RowValue, { name: "Qualifier ID", value: getStringByOID(qualifierInfo.policyQualifierId) }),
|
|
28
|
+
];
|
|
29
|
+
if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.1') {
|
|
30
|
+
const value = AsnParser.parse(qualifierInfo.qualifier, DisplayText);
|
|
31
|
+
data.push(h(RowValue, { name: "Value", value: value.toString() }));
|
|
32
|
+
}
|
|
33
|
+
if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.2') {
|
|
34
|
+
const value = AsnParser.parse(qualifierInfo.qualifier, UserNotice);
|
|
35
|
+
if (value.explicitText) {
|
|
36
|
+
data.push(h(RowValue, { name: "Value", value: value.explicitText.toString() }));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return (h(TableRowTable, null, data));
|
|
40
|
+
}),
|
|
41
|
+
])))),
|
|
42
|
+
])));
|
|
43
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
import { h } from '@stencil/core';
|
|
12
|
+
import logs from '../../../constants/logs';
|
|
13
|
+
import { dateShort } from '../../../utils';
|
|
14
|
+
import { RowValue, TableRowTable } from '../row';
|
|
15
|
+
import { BasicExtension } from './basic_extension';
|
|
16
|
+
export const CertificateTransparencyExtension = (props) => {
|
|
17
|
+
const { extension } = props;
|
|
18
|
+
return (h(BasicExtension, { extension: extension }, Boolean(extension.value.items.length) && ([
|
|
19
|
+
h(RowValue, { name: "Signed Certificate Timestamps:", value: "" }),
|
|
20
|
+
extension.value.toJSON().map((signedCertificateTimestamp) => (h(TableRowTable, null,
|
|
21
|
+
h(RowValue, { name: "Version", value: signedCertificateTimestamp.version + 1 }),
|
|
22
|
+
h(RowValue, { name: "Log Operator", value: logs[signedCertificateTimestamp.logId] || signedCertificateTimestamp.logId }),
|
|
23
|
+
h(RowValue, { name: "Log Key ID", value: signedCertificateTimestamp.logId, monospace: true }),
|
|
24
|
+
h(RowValue, { name: "Timestamp", value: dateShort(signedCertificateTimestamp.timestamp) }),
|
|
25
|
+
h(RowValue, { name: "Signature Algorithm", value: `${signedCertificateTimestamp.hashAlgorithm} ${signedCertificateTimestamp.signatureAlgorithm}`.toUpperCase() }),
|
|
26
|
+
h(RowValue, { name: "Signature", value: signedCertificateTimestamp.signature, monospace: true })))),
|
|
27
|
+
])));
|
|
28
|
+
};
|
|
@@ -9,10 +9,14 @@
|
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { getStringByOID } from '../../../utils';
|
|
13
|
+
import { RowValue, TableRowTable } from '../row';
|
|
14
14
|
import { BasicExtension } from './basic_extension';
|
|
15
15
|
export const ExtendedKeyUsageExtension = (props) => {
|
|
16
16
|
const { extension } = props;
|
|
17
|
-
return (h(BasicExtension, { extension: extension }, extension.value.
|
|
17
|
+
return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
|
|
18
|
+
h(RowValue, { name: "Purposes:", value: "" }),
|
|
19
|
+
extension.value.map((usage) => (h(TableRowTable, null,
|
|
20
|
+
h(RowValue, { name: "Purpose", value: getStringByOID(usage) })))),
|
|
21
|
+
])));
|
|
18
22
|
};
|
|
@@ -61,7 +61,7 @@ export const GeneralNamePart = (props) => {
|
|
|
61
61
|
return (h(RowValue, { name: names[name] || name, value: Convert.ToString(value) }));
|
|
62
62
|
}
|
|
63
63
|
if (value instanceof EDIPartyName) {
|
|
64
|
-
return (h(RowValue, { name: names[name] || name, value:
|
|
64
|
+
return (h(RowValue, { name: names[name] || name, value: value.partyName.toString() }));
|
|
65
65
|
}
|
|
66
66
|
if (name === 'dNSName') {
|
|
67
67
|
return (h(RowValue, { name: names[name] || name, value: value, href: getDNSNameLink(value) }));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
import { h } from '@stencil/core';
|
|
12
|
+
import { getStringByOID } from '../../../utils';
|
|
13
|
+
import { RowValue, TableRowTable } from '../row';
|
|
14
|
+
import { BasicExtension } from './basic_extension';
|
|
15
|
+
import { GeneralNamePart } from './general_name_part';
|
|
16
|
+
export const InfoAccessSyntaxExtension = (props) => {
|
|
17
|
+
const { extension } = props;
|
|
18
|
+
return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
|
|
19
|
+
h(RowValue, { name: "Descriptions:", value: "" }),
|
|
20
|
+
extension.value.map((description) => (h(TableRowTable, null,
|
|
21
|
+
h(RowValue, { name: "Method", value: getStringByOID(description.accessMethod) }),
|
|
22
|
+
h(GeneralNamePart, Object.assign({ generalName: description.accessLocation }, props))))),
|
|
23
|
+
])));
|
|
24
|
+
};
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
12
|
import { Convert } from 'pvtsutils';
|
|
13
|
+
import { getStringByOID } from '../../../utils';
|
|
13
14
|
import { RowValue } from '../row';
|
|
14
|
-
import { getStringByOID } from '../get_string_by_oid';
|
|
15
15
|
import { BasicExtension } from './basic_extension';
|
|
16
16
|
export const LogotypeExtension = (props) => {
|
|
17
17
|
const { extension } = props;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
+
import { getStringByOID } from '../../../utils';
|
|
12
13
|
import { RowValue } from '../row';
|
|
13
|
-
import { getStringByOID } from '../get_string_by_oid';
|
|
14
14
|
import { BasicExtension } from './basic_extension';
|
|
15
15
|
export const PolicyMappingsExtension = (props) => {
|
|
16
16
|
const { extension } = props;
|
package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
import { h } from '@stencil/core';
|
|
12
|
+
import { id_qcs_pkixQCSyntax_v2, SemanticsInformation, } from '@peculiar/asn1-x509-qualified';
|
|
13
|
+
import { id_etsi_qcs_qcType, QcType, id_etsi_qcs_qcPDS, PdsLocations, id_etsi_qcs_qcRetentionPeriod, QcEuRetentionPeriod, } from '@peculiar/asn1-x509-qualified-etsi';
|
|
14
|
+
import { AsnParser } from '@peculiar/asn1-schema';
|
|
15
|
+
import { Convert } from 'pvtsutils';
|
|
16
|
+
import { getStringByOID } from '../../../utils';
|
|
17
|
+
import { RowValue, TableRowTable } from '../row';
|
|
18
|
+
import { BasicExtension } from './basic_extension';
|
|
19
|
+
export const QCStatementsExtension = (props) => {
|
|
20
|
+
const { extension } = props;
|
|
21
|
+
function renderStatementInfo(statementId, statementInfo) {
|
|
22
|
+
if (!statementInfo.byteLength) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
if (statementId === id_qcs_pkixQCSyntax_v2) {
|
|
26
|
+
const semanticsInformation = AsnParser.parse(statementInfo, SemanticsInformation);
|
|
27
|
+
return (h(RowValue, { name: "Semantics Identifier", value: getStringByOID(semanticsInformation.semanticsIdentifier) }));
|
|
28
|
+
}
|
|
29
|
+
if (statementId === id_etsi_qcs_qcType) {
|
|
30
|
+
const qcTypes = AsnParser.parse(statementInfo, QcType);
|
|
31
|
+
return (h(RowValue, { name: "QC Types", value: qcTypes.map((type) => getStringByOID(type)).join(', ') }));
|
|
32
|
+
}
|
|
33
|
+
if (statementId === id_etsi_qcs_qcRetentionPeriod) {
|
|
34
|
+
const retentionPeriod = AsnParser.parse(statementInfo, QcEuRetentionPeriod);
|
|
35
|
+
return (h(RowValue, { name: "Retention Period", value: `${retentionPeriod.value} years` }));
|
|
36
|
+
}
|
|
37
|
+
if (statementId === id_etsi_qcs_qcPDS) {
|
|
38
|
+
const pdsLocations = AsnParser.parse(statementInfo, PdsLocations);
|
|
39
|
+
return ([
|
|
40
|
+
h(RowValue, { name: "PDS Locations:", value: "" }),
|
|
41
|
+
pdsLocations.map((location) => (h(TableRowTable, null,
|
|
42
|
+
h(RowValue, { name: "URL", value: location.url }),
|
|
43
|
+
h(RowValue, { name: "Language", value: location.language })))),
|
|
44
|
+
]);
|
|
45
|
+
}
|
|
46
|
+
return (h(RowValue, { name: "Info", value: Convert.ToHex(statementInfo), monospace: true }));
|
|
47
|
+
}
|
|
48
|
+
return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
|
|
49
|
+
h(RowValue, { name: "Statements:", value: "" }),
|
|
50
|
+
extension.value.map((statement) => (h(TableRowTable, null,
|
|
51
|
+
h(RowValue, { name: "Statement ID", value: getStringByOID(statement.statementId) }),
|
|
52
|
+
renderStatementInfo(statement.statementId, statement.statementInfo)))),
|
|
53
|
+
])));
|
|
54
|
+
};
|
|
@@ -9,15 +9,16 @@
|
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { getStringByOID } from '../../../utils';
|
|
13
|
+
import { RowValue, TableRowTable } from '../row';
|
|
14
14
|
import { BasicExtension } from './basic_extension';
|
|
15
15
|
import { getAttributeValue } from './attribute_value';
|
|
16
16
|
export const SubjectDirectoryAttributesExtension = (props) => {
|
|
17
17
|
const { extension } = props;
|
|
18
|
-
return (h(BasicExtension, { extension: extension }, extension.value.
|
|
19
|
-
h(RowValue, { name:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
|
|
19
|
+
h(RowValue, { name: "Attributes:", value: "" }),
|
|
20
|
+
extension.value.map((attribute) => (h(TableRowTable, null,
|
|
21
|
+
h(RowValue, { name: "Type", value: getStringByOID(attribute.type) }),
|
|
22
|
+
h(RowValue, { name: "Value", value: getAttributeValue(attribute) })))),
|
|
23
|
+
])));
|
|
23
24
|
};
|
|
@@ -10,10 +10,9 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
12
|
import { Convert } from 'pvtsutils';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { GeneralNamePart } from '
|
|
16
|
-
import { l10n } from '../../utils';
|
|
13
|
+
import { l10n, getStringByOID } from '../../utils';
|
|
14
|
+
import { RowTitle, RowValue } from './row';
|
|
15
|
+
import { GeneralNamePart } from './extensions/general_name_part';
|
|
17
16
|
export const Holder = (props) => {
|
|
18
17
|
const { holder } = props;
|
|
19
18
|
if (!holder) {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
+
*/
|
|
4
|
+
export { BasicInformation } from './basic_information';
|
|
5
|
+
export { PublicKey } from './public_key';
|
|
6
|
+
export { SubjectName } from './subject_name';
|
|
7
|
+
export { IssuerName } from './issuer_name';
|
|
8
|
+
export { Signature } from './signature';
|
|
9
|
+
export { Thumbprints } from './thumbprints';
|
|
10
|
+
export { Extensions } from './extensions';
|
|
11
|
+
export { Attributes } from './attributes';
|
|
12
|
+
export { Miscellaneous } from './miscellaneous';
|
|
13
|
+
export { RevokedCertificates } from './revoked_certificates';
|
|
14
|
+
export { Holder } from './holder';
|
|
15
|
+
export { Issuer } from './issuer';
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
|
-
import { RowTitle } from '../certificate-viewer/row';
|
|
13
|
-
import { GeneralNamePart } from '../certificate-viewer/extensions/general_name_part';
|
|
14
12
|
import { l10n } from '../../utils';
|
|
13
|
+
import { RowTitle } from './row';
|
|
14
|
+
import { GeneralNamePart } from './extensions/general_name_part';
|
|
15
15
|
export const Issuer = (props) => {
|
|
16
16
|
const { issuer } = props;
|
|
17
17
|
if (!issuer) {
|
package/dist/collection/components/{certificate-viewer → certificate-details-parts}/public_key.js
RENAMED
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
12
|
import { Convert } from 'pvtsutils';
|
|
13
|
-
import { l10n } from '../../utils';
|
|
14
|
-
import {
|
|
15
|
-
import { RowTitle, RowValue } from './row';
|
|
13
|
+
import { l10n, getStringByOID } from '../../utils';
|
|
14
|
+
import { RowTitle, RowValue, TableRowTable } from './row';
|
|
16
15
|
function getPublicKeyModulus(publicKey) {
|
|
17
16
|
var _a;
|
|
18
17
|
if ((_a = publicKey.params) === null || _a === void 0 ? void 0 : _a['modulus']) {
|
|
@@ -34,17 +33,23 @@ function getPublicKeyExponent(publicKey) {
|
|
|
34
33
|
return null;
|
|
35
34
|
}
|
|
36
35
|
export const PublicKey = (props) => {
|
|
37
|
-
var _a;
|
|
38
36
|
const { publicKey } = props;
|
|
39
37
|
if (!publicKey) {
|
|
40
38
|
return null;
|
|
41
39
|
}
|
|
40
|
+
function renderKeyDetails(key) {
|
|
41
|
+
var _a;
|
|
42
|
+
return [
|
|
43
|
+
h(RowValue, { name: l10n.getString('algorithm'), value: getStringByOID(key.algorithm) }),
|
|
44
|
+
h(RowValue, { name: l10n.getString('namedCurve'), value: getStringByOID((_a = key.params) === null || _a === void 0 ? void 0 : _a['namedCurve']) }),
|
|
45
|
+
h(RowValue, { name: l10n.getString('exponent'), value: getPublicKeyExponent(key) }),
|
|
46
|
+
h(RowValue, { name: l10n.getString('modulus'), value: getPublicKeyModulus(key) }),
|
|
47
|
+
h(RowValue, { name: l10n.getString('value'), value: Convert.ToHex(key.value), monospace: true, collapse: true }),
|
|
48
|
+
];
|
|
49
|
+
}
|
|
42
50
|
return [
|
|
43
51
|
h(RowTitle, { value: l10n.getString('publicKeyInfo') }),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
h(RowValue, { name: l10n.getString('exponent'), value: getPublicKeyExponent(publicKey) }),
|
|
47
|
-
h(RowValue, { name: l10n.getString('modulus'), value: getPublicKeyModulus(publicKey) }),
|
|
48
|
-
h(RowValue, { name: l10n.getString('value'), value: Convert.ToHex(publicKey.value), monospace: true, collapse: true }),
|
|
52
|
+
renderKeyDetails(publicKey),
|
|
53
|
+
(Array.isArray(publicKey.params) && publicKey.params.length && publicKey.params.map((param) => (h(TableRowTable, null, renderKeyDetails(param))))),
|
|
49
54
|
];
|
|
50
55
|
};
|
package/dist/collection/components/{crl-viewer → certificate-details-parts}/revoked_certificates.js
RENAMED
|
@@ -11,13 +11,9 @@
|
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
12
|
import { CRLReason, InvalidityDate, CertificateIssuer } from '@peculiar/asn1-x509';
|
|
13
13
|
import { Convert } from 'pvtsutils';
|
|
14
|
-
import { dateShort, l10n } from '../../utils';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { RowTitle, RowValue } from '../certificate-viewer/row';
|
|
18
|
-
const TableRowTable = (_, children) => (h("tr", null,
|
|
19
|
-
h("td", { colSpan: 2 },
|
|
20
|
-
h("table", null, children))));
|
|
14
|
+
import { dateShort, l10n, getStringByOID } from '../../utils';
|
|
15
|
+
import { GeneralNamePart } from './extensions/general_name_part';
|
|
16
|
+
import { RowTitle, RowValue, TableRowTable } from './row';
|
|
21
17
|
export const RevokedCertificates = (props) => {
|
|
22
18
|
const { revokedCertificates, getDNSNameLink, getIPAddressLink, } = props;
|
|
23
19
|
if (!revokedCertificates || !revokedCertificates.length) {
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { h } from '@stencil/core';
|
|
12
12
|
import isLink from '../../utils/is_link';
|
|
13
|
+
export const TableRowTable = (_, children) => (h("tr", null,
|
|
14
|
+
h("td", { colSpan: 2 },
|
|
15
|
+
h("table", null, children))));
|
|
13
16
|
export const RowTitle = (props) => {
|
|
14
17
|
const { value } = props;
|
|
15
18
|
if (!value) {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
import { h } from '@stencil/core';
|
|
12
|
+
import { Convert } from 'pvtsutils';
|
|
13
|
+
import { l10n, getStringByOID } from '../../utils';
|
|
14
|
+
import { RowTitle, RowValue, TableRowTable } from './row';
|
|
15
|
+
export const Signature = (props) => {
|
|
16
|
+
const { signature } = props;
|
|
17
|
+
if (!signature) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
function renderSignatureDetails(data) {
|
|
21
|
+
return [
|
|
22
|
+
h(RowValue, { name: l10n.getString('algorithm'), value: getStringByOID(data.algorithm) }),
|
|
23
|
+
h(RowValue, { name: l10n.getString('value'), value: Convert.ToHex(data.value), monospace: true, collapse: true }),
|
|
24
|
+
];
|
|
25
|
+
}
|
|
26
|
+
return [
|
|
27
|
+
h(RowTitle, { value: l10n.getString('signature') }),
|
|
28
|
+
renderSignatureDetails(signature),
|
|
29
|
+
(signature.params && signature.params.length && signature.params.map((param) => (h(TableRowTable, null, renderSignatureDetails(param))))),
|
|
30
|
+
];
|
|
31
|
+
};
|
|
@@ -11,14 +11,7 @@
|
|
|
11
11
|
import { Component, h, Prop, State, Watch, Host, } from '@stencil/core';
|
|
12
12
|
import { X509Certificate, } from '../../crypto';
|
|
13
13
|
import { getDNSNameLink, getIPAddressLink, getLEILink } from '../../utils/third_party_links';
|
|
14
|
-
import { PublicKey } from '
|
|
15
|
-
import { Signature } from './signature';
|
|
16
|
-
import { Thumbprints } from './thumbprints';
|
|
17
|
-
import { Extensions } from './extensions';
|
|
18
|
-
import { Miscellaneous } from './miscellaneous';
|
|
19
|
-
import { SubjectName } from './subject_name';
|
|
20
|
-
import { IssuerName } from './issuer_name';
|
|
21
|
-
import { BasicInformation } from './basic_information';
|
|
14
|
+
import { BasicInformation, SubjectName, IssuerName, PublicKey, Signature, Thumbprints, Extensions, Miscellaneous, } from '../certificate-details-parts';
|
|
22
15
|
export class CertificateViewer {
|
|
23
16
|
constructor() {
|
|
24
17
|
this.isDecodeInProcess = true;
|
|
@@ -11,13 +11,7 @@
|
|
|
11
11
|
import { Component, Host, h, Prop, State, Watch, } from '@stencil/core';
|
|
12
12
|
import { CRL } from '../../crypto';
|
|
13
13
|
import { getDNSNameLink, getIPAddressLink, getLEILink } from '../../utils/third_party_links';
|
|
14
|
-
import { Signature } from '../certificate-
|
|
15
|
-
import { IssuerName } from '../certificate-viewer/issuer_name';
|
|
16
|
-
import { Thumbprints } from '../certificate-viewer/thumbprints';
|
|
17
|
-
import { Extensions } from '../certificate-viewer/extensions';
|
|
18
|
-
import { Miscellaneous } from '../certificate-viewer/miscellaneous';
|
|
19
|
-
import { BasicInformation } from '../certificate-viewer/basic_information';
|
|
20
|
-
import { RevokedCertificates } from './revoked_certificates';
|
|
14
|
+
import { BasicInformation, IssuerName, Signature, Thumbprints, Extensions, Miscellaneous, RevokedCertificates, } from '../certificate-details-parts';
|
|
21
15
|
export class CrlViewer {
|
|
22
16
|
constructor() {
|
|
23
17
|
this.isDecodeInProcess = true;
|
|
@@ -11,14 +11,7 @@
|
|
|
11
11
|
import { Component, Host, h, Prop, State, Watch, } from '@stencil/core';
|
|
12
12
|
import { CSR } from '../../crypto';
|
|
13
13
|
import { getDNSNameLink, getIPAddressLink, getLEILink } from '../../utils/third_party_links';
|
|
14
|
-
import { SubjectName } from '../certificate-
|
|
15
|
-
import { PublicKey } from '../certificate-viewer/public_key';
|
|
16
|
-
import { Signature } from '../certificate-viewer/signature';
|
|
17
|
-
import { Thumbprints } from '../certificate-viewer/thumbprints';
|
|
18
|
-
import { Attributes } from '../certificate-viewer/attributes';
|
|
19
|
-
import { Extensions } from '../certificate-viewer/extensions';
|
|
20
|
-
import { Miscellaneous } from '../certificate-viewer/miscellaneous';
|
|
21
|
-
import { BasicInformation } from '../certificate-viewer/basic_information';
|
|
14
|
+
import { BasicInformation, SubjectName, Signature, Thumbprints, Extensions, Miscellaneous, PublicKey, Attributes, } from '../certificate-details-parts';
|
|
22
15
|
export class CsrViewer {
|
|
23
16
|
constructor() {
|
|
24
17
|
this.isDecodeInProcess = true;
|