@peculiar/certificates-viewer 3.8.0 → 3.10.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-6eb7ef37.js → certification_request-d5c6e32d.js} +9 -5
- package/dist/cjs/{crl-75106e2e.js → crl-5bce64c4.js} +6 -6
- package/dist/cjs/{download-a97f4cb2.js → download-93f7b773.js} +9 -5
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{l10n-17c96aba.js → l10n-ddc7cff9.js} +1 -1
- package/dist/cjs/{miscellaneous-0eade914.js → miscellaneous-cac1cd8b.js} +9 -12
- package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +7 -5
- package/dist/cjs/peculiar-button-split_4.cjs.entry.js +2 -2
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +5 -5
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +5 -5
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +4 -4
- package/dist/cjs/{x509_certificate-9e7652cf.js → x509_certificate-3760e0a8.js} +4 -4
- package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js +2 -2
- package/dist/collection/components/certificate-details-parts/public_key.js +5 -8
- package/dist/collection/components/csr-viewer/csr-viewer.js +2 -0
- package/dist/collection/constants/oids.js +5 -2
- package/dist/collection/crypto/crl.js +1 -1
- package/dist/collection/crypto/csr.js +1 -1
- package/dist/collection/crypto/provider.js +2 -1
- package/dist/collection/crypto/x509_attribute_certificate.js +1 -1
- package/dist/collection/crypto/x509_certificate.js +1 -1
- package/dist/collection/utils/download_from_buffer.js +9 -5
- package/dist/esm/{certification_request-4adeae0c.js → certification_request-23cd5124.js} +9 -5
- package/dist/esm/{crl-2857d300.js → crl-7f23c111.js} +6 -6
- package/dist/esm/{download-67ac9120.js → download-91511aeb.js} +9 -5
- package/dist/esm/index.js +1 -1
- package/dist/esm/{l10n-a68d5748.js → l10n-d48f35ff.js} +1 -1
- package/dist/esm/{miscellaneous-91256fd3.js → miscellaneous-c7c0d04a.js} +9 -12
- package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +7 -5
- package/dist/esm/peculiar-button-split_4.entry.js +2 -2
- package/dist/esm/peculiar-certificate-decoder.entry.js +5 -5
- package/dist/esm/peculiar-certificate-viewer.entry.js +5 -5
- package/dist/esm/peculiar-certificates-viewer.entry.js +4 -4
- package/dist/esm/{x509_certificate-e7b4d8d1.js → x509_certificate-d8e0af2d.js} +4 -4
- package/dist/peculiar/index.esm.js +1 -1
- package/dist/peculiar/{p-40808c02.entry.js → p-01cea5c0.entry.js} +2 -2
- package/dist/peculiar/{p-5fb5f008.entry.js → p-3bfefa4a.entry.js} +1 -1
- package/dist/peculiar/{p-22d8ae9c.entry.js → p-4e8169cb.entry.js} +1 -1
- package/dist/peculiar/{p-7de0bfb3.entry.js → p-5b4eed12.entry.js} +1 -1
- package/dist/peculiar/p-711b4e1e.js +18 -0
- package/dist/peculiar/p-81a88a33.js +11 -0
- package/dist/peculiar/p-a050e184.js +69 -0
- package/dist/peculiar/{p-e7518804.js → p-c24c26c2.js} +5 -5
- package/dist/peculiar/{p-893659f4.entry.js → p-df53fbcc.entry.js} +1 -1
- package/dist/peculiar/{p-fec9d812.js → p-ec250cc4.js} +1 -1
- package/dist/peculiar/{p-b44dc7c9.js → p-fe05f51e.js} +5 -5
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/constants/oids.d.ts +4 -1
- package/dist/types/crypto/crl.d.ts +1 -1
- package/dist/types/crypto/csr.d.ts +1 -1
- package/dist/types/crypto/x509_attribute_certificate.d.ts +1 -1
- package/dist/types/crypto/x509_certificate.d.ts +1 -1
- package/dist/types/interface.d.ts +1 -0
- package/package.json +2 -2
- package/dist/peculiar/p-05f4713f.js +0 -11
- package/dist/peculiar/p-77121cf7.js +0 -69
- package/dist/peculiar/p-cff9655c.js +0 -18
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const download = require('./download-
|
|
7
|
-
require('./l10n-
|
|
6
|
+
const download = require('./download-93f7b773.js');
|
|
7
|
+
require('./l10n-ddc7cff9.js');
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -1318,6 +1318,7 @@ const OIDs = {
|
|
|
1318
1318
|
'1.3.6.1.5.5.7.3.13': 'Eap Over PPP',
|
|
1319
1319
|
'1.3.6.1.5.5.7.3.14': 'Eap Over LAN',
|
|
1320
1320
|
'1.3.6.1.5.5.7.3.31': 'Brand Indicator for Message Identification',
|
|
1321
|
+
'1.3.6.1.5.5.7.3.46': 'Document Signing',
|
|
1321
1322
|
'1.3.6.1.5.5.7.4': 'Cmp Information Types',
|
|
1322
1323
|
'1.3.6.1.5.5.7.4.1': 'Ca Prot Enc Cert',
|
|
1323
1324
|
'1.3.6.1.5.5.7.4.2': 'Sign Key Pair Types',
|
|
@@ -1357,6 +1358,7 @@ const OIDs = {
|
|
|
1357
1358
|
'1.3.6.1.5.5.7.8.2': 'User Group',
|
|
1358
1359
|
'1.3.6.1.5.5.7.8.3': 'Permanent Identifier',
|
|
1359
1360
|
'1.3.6.1.5.5.7.8.5': 'Xmpp Addr',
|
|
1361
|
+
'1.3.6.1.5.5.7.8.9': 'SMTP UTF8 Mailbox',
|
|
1360
1362
|
'1.3.6.1.5.5.7.9': 'Personal Data',
|
|
1361
1363
|
'1.3.6.1.5.5.7.9.1': 'Date Of Birth',
|
|
1362
1364
|
'1.3.6.1.5.5.7.9.2': 'Place Of Birth',
|
|
@@ -2329,10 +2331,11 @@ const OIDs = {
|
|
|
2329
2331
|
'2.54.1775.7': 'Set Qualifier',
|
|
2330
2332
|
'2.54.1775.99': 'Set Data',
|
|
2331
2333
|
'1.3.6.1.4.1.11129.2.4.3': 'CT Pre-Certificate Poison',
|
|
2332
|
-
'2.23.140.1.2.2': 'CA/B Forum Organization Validated',
|
|
2333
2334
|
'2.23.140.1.2.1': 'CA/B Forum Domain Validated',
|
|
2335
|
+
'2.23.140.1.2.2': 'CA/B Forum Organization Validated',
|
|
2336
|
+
'2.23.140.1.5.2.2': 'CA/B Forum Organization Validated Multipurpose',
|
|
2334
2337
|
'1.3.6.1.4.1.44947.1.1.1': 'Let\'s Encrypt',
|
|
2335
|
-
'1.3.6.1.4.1.4329.7.2.4': '
|
|
2338
|
+
'1.3.6.1.4.1.4329.7.2.4': 'SSL TLS Certs',
|
|
2336
2339
|
'1.3.6.1.4.1.4329.7': 'Siemens Public Key Infrastructure',
|
|
2337
2340
|
'1.3.6.1.4.1.52266.1': 'Legal Entity Identifier',
|
|
2338
2341
|
'1.3.6.1.4.1.52266.2': 'Role',
|
|
@@ -10378,7 +10381,8 @@ class Extension extends AsnData {
|
|
|
10378
10381
|
class CryptoProvider {
|
|
10379
10382
|
constructor() {
|
|
10380
10383
|
this.providers = new Map();
|
|
10381
|
-
|
|
10384
|
+
// @ts-ignore
|
|
10385
|
+
const crypto = window.crypto || window.msCrypto;
|
|
10382
10386
|
if (typeof crypto !== 'undefined') {
|
|
10383
10387
|
this.set(CryptoProvider.DEFAULT, crypto);
|
|
10384
10388
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const certification_request = require('./certification_request-
|
|
7
|
-
const download = require('./download-
|
|
8
|
-
const l10n = require('./l10n-
|
|
6
|
+
const certification_request = require('./certification_request-d5c6e32d.js');
|
|
7
|
+
const download = require('./download-93f7b773.js');
|
|
8
|
+
const l10n = require('./l10n-ddc7cff9.js');
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @license
|
|
@@ -122,7 +122,7 @@ class X509AttributeCertificate extends certification_request.AsnData {
|
|
|
122
122
|
try {
|
|
123
123
|
const thumbprint = await certification_request.getCertificateThumbprint(algorithm, this.raw);
|
|
124
124
|
if (thumbprint) {
|
|
125
|
-
this.thumbprints[algorithm
|
|
125
|
+
this.thumbprints[algorithm] = download.build.Convert.ToHex(thumbprint);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
catch (error) {
|
|
@@ -204,7 +204,7 @@ class CSR extends certification_request.AsnData {
|
|
|
204
204
|
try {
|
|
205
205
|
const thumbprint = await certification_request.getCertificateThumbprint(algorithm, this.raw);
|
|
206
206
|
if (thumbprint) {
|
|
207
|
-
this.thumbprints[algorithm
|
|
207
|
+
this.thumbprints[algorithm] = download.build.Convert.ToHex(thumbprint);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
catch (error) {
|
|
@@ -266,7 +266,7 @@ class CRL extends certification_request.AsnData {
|
|
|
266
266
|
try {
|
|
267
267
|
const thumbprint = await certification_request.getCertificateThumbprint(algorithm, this.raw);
|
|
268
268
|
if (thumbprint) {
|
|
269
|
-
this.thumbprints[algorithm
|
|
269
|
+
this.thumbprints[algorithm] = download.build.Convert.ToHex(thumbprint);
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
catch (error) {
|
|
@@ -26,7 +26,9 @@ function downloadFromBuffer(value, name, extension, mime = 'application/octet-st
|
|
|
26
26
|
if (navigator.msSaveBlob) { // IE10+ : (has Blob, but not a[download] or URL)
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
navigator.msSaveBlob(blob, `${name}.${extension}`);
|
|
29
|
-
return new Promise((
|
|
29
|
+
return new Promise((resolve) => {
|
|
30
|
+
setTimeout(resolve, 100);
|
|
31
|
+
});
|
|
30
32
|
}
|
|
31
33
|
const blobURL = window.URL.createObjectURL(blob);
|
|
32
34
|
const link = document.createElement('a');
|
|
@@ -41,10 +43,12 @@ function downloadFromBuffer(value, name, extension, mime = 'application/octet-st
|
|
|
41
43
|
document.body.appendChild(link);
|
|
42
44
|
link.dispatchEvent(new MouseEvent('click'));
|
|
43
45
|
document.body.removeChild(link);
|
|
44
|
-
return new Promise((
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
return new Promise((resolve) => {
|
|
47
|
+
setTimeout(() => {
|
|
48
|
+
document.body.removeChild(frame);
|
|
49
|
+
resolve();
|
|
50
|
+
}, 100);
|
|
51
|
+
});
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const download$1 = require('./download-
|
|
6
|
+
const download$1 = require('./download-93f7b773.js');
|
|
7
7
|
|
|
8
8
|
var dayjs_min = download$1.createCommonjsModule(function (module, exports) {
|
|
9
9
|
!function(t,e){module.exports=e();}(download$1.commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case c:return r?l(1,0):l(31,11);case f:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,l=this;r=Number(r);var $=O.p(h),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===f)return this.set(f,this.$M+r);if($===c)return this.set(c,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||$[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,v=this-M,g=O.m(this,M);return g=($={},$[c]=g/12,$[f]=g,$[h]=g/3,$[o]=(v-m)/6048e5,$[a]=(v-m)/864e5,$[u]=v/n,$[s]=v/e,$[i]=v/t,$)[y]||v,l?g:O.a(g)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
6
|
const index = require('./index-064e95c7.js');
|
|
7
|
-
const l10n = require('./l10n-
|
|
8
|
-
const download = require('./download-
|
|
9
|
-
const certification_request = require('./certification_request-
|
|
7
|
+
const l10n = require('./l10n-ddc7cff9.js');
|
|
8
|
+
const download = require('./download-93f7b773.js');
|
|
9
|
+
const certification_request = require('./certification_request-d5c6e32d.js');
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
@@ -122,9 +122,8 @@ const BasicInformation = (props) => {
|
|
|
122
122
|
* LICENSE file in the root directory of this source tree.
|
|
123
123
|
*/
|
|
124
124
|
function getPublicKeyModulus(publicKey) {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
let length = publicKey.params['modulus'].byteLength;
|
|
125
|
+
if ('modulus' in publicKey.params) {
|
|
126
|
+
let length = publicKey.params.modulus.byteLength;
|
|
128
127
|
if (length % 2) {
|
|
129
128
|
length -= 1;
|
|
130
129
|
}
|
|
@@ -133,9 +132,8 @@ function getPublicKeyModulus(publicKey) {
|
|
|
133
132
|
return null;
|
|
134
133
|
}
|
|
135
134
|
function getPublicKeyExponent(publicKey) {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
return publicKey.params['publicExponent'].byteLength === 3
|
|
135
|
+
if ('publicExponent' in publicKey.params) {
|
|
136
|
+
return publicKey.params.publicExponent.byteLength === 3
|
|
139
137
|
? 65537
|
|
140
138
|
: 3;
|
|
141
139
|
}
|
|
@@ -147,10 +145,9 @@ const PublicKey = (props) => {
|
|
|
147
145
|
return null;
|
|
148
146
|
}
|
|
149
147
|
function renderKeyDetails(key) {
|
|
150
|
-
var _a;
|
|
151
148
|
return [
|
|
152
149
|
index.h(RowValue, { name: l10n.l10n.getString('algorithm'), value: getStringByOID(key.algorithm) }),
|
|
153
|
-
index.h(RowValue, { name: l10n.l10n.getString('namedCurve'), value: getStringByOID(
|
|
150
|
+
index.h(RowValue, { name: l10n.l10n.getString('namedCurve'), value: getStringByOID('namedCurve' in key.params ? key.params.namedCurve : undefined) }),
|
|
154
151
|
index.h(RowValue, { name: l10n.l10n.getString('exponent'), value: getPublicKeyExponent(key) }),
|
|
155
152
|
index.h(RowValue, { name: l10n.l10n.getString('modulus'), value: getPublicKeyModulus(key) }),
|
|
156
153
|
index.h(RowValue, { name: l10n.l10n.getString('value'), value: download.build.Convert.ToHex(key.value), monospace: true, collapse: true }),
|
|
@@ -381,7 +378,7 @@ const GeneralNamePart = (props) => {
|
|
|
381
378
|
if (value instanceof certification_request.Name$1) {
|
|
382
379
|
return [
|
|
383
380
|
index.h(RowValue, { name: names[name] || name, value: "" }),
|
|
384
|
-
value.map((relativeDistinguishedName) => (relativeDistinguishedName.map((attributeTypeAndValue) => (index.h(RowValue, { name: certification_request.OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type, value: attributeTypeAndValue.value.toString() }))))),
|
|
381
|
+
index.h(TableRowTable, null, value.map((relativeDistinguishedName) => (relativeDistinguishedName.map((attributeTypeAndValue) => (index.h(RowValue, { name: certification_request.OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type, value: attributeTypeAndValue.value.toString() })))))),
|
|
385
382
|
];
|
|
386
383
|
}
|
|
387
384
|
if (value instanceof certification_request.OtherName) {
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-064e95c7.js');
|
|
9
|
-
const certification_request = require('./certification_request-
|
|
10
|
-
const download = require('./download-
|
|
11
|
-
const l10n = require('./l10n-
|
|
12
|
-
const crl = require('./crl-
|
|
13
|
-
const miscellaneous = require('./miscellaneous-
|
|
9
|
+
const certification_request = require('./certification_request-d5c6e32d.js');
|
|
10
|
+
const download = require('./download-93f7b773.js');
|
|
11
|
+
const l10n = require('./l10n-ddc7cff9.js');
|
|
12
|
+
const crl = require('./crl-5bce64c4.js');
|
|
13
|
+
const miscellaneous = require('./miscellaneous-cac1cd8b.js');
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @license
|
|
@@ -514,7 +514,9 @@ const CsrViewer = class {
|
|
|
514
514
|
constructor(hostRef) {
|
|
515
515
|
index.registerInstance(this, hostRef);
|
|
516
516
|
this.isDecodeInProcess = true;
|
|
517
|
+
// eslint-disable-next-line class-methods-use-this
|
|
517
518
|
this.getAuthKeyIdParentLink = (value) => value;
|
|
519
|
+
// eslint-disable-next-line class-methods-use-this
|
|
518
520
|
this.getAuthKeyIdSiblingsLink = (value) => value;
|
|
519
521
|
this.getSubjectKeyIdChildrenLink = (value) => {
|
|
520
522
|
var _a;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-064e95c7.js');
|
|
9
|
-
const l10n = require('./l10n-
|
|
10
|
-
require('./download-
|
|
9
|
+
const l10n = require('./l10n-ddc7cff9.js');
|
|
10
|
+
require('./download-93f7b773.js');
|
|
11
11
|
|
|
12
12
|
const buttonSplitCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:inline-block;vertical-align:top;position:relative;white-space:nowrap;font-size:0}.button_split_icon{width:7px;height:5px;display:inline-block;vertical-align:middle}.button_split_with_icon{width:25px;border-bottom-left-radius:0;border-top-left-radius:0}.button_split_with_icon.m_open::part(base):before{position:fixed;width:100%;height:100%;top:0;left:0;content:\"\"}.button_split_action{width:100%}.button_split_container{position:absolute;bottom:calc(100% + 1px);left:0;width:100%;border-radius:2px;-webkit-box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);z-index:1}.button_split>peculiar-button:first-of-type::part(base){border-top-right-radius:0;border-bottom-right-radius:0}.button_split>peculiar-button:last-of-type::part(base){border-top-left-radius:0;border-bottom-left-radius:0}.button_split>peculiar-button:not(:first-child){margin-left:-1px}";
|
|
13
13
|
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-064e95c7.js');
|
|
9
|
-
const certification_request = require('./certification_request-
|
|
10
|
-
require('./l10n-
|
|
11
|
-
require('./download-
|
|
12
|
-
const x509_certificate = require('./x509_certificate-
|
|
13
|
-
const crl = require('./crl-
|
|
9
|
+
const certification_request = require('./certification_request-d5c6e32d.js');
|
|
10
|
+
require('./l10n-ddc7cff9.js');
|
|
11
|
+
require('./download-93f7b773.js');
|
|
12
|
+
const x509_certificate = require('./x509_certificate-3760e0a8.js');
|
|
13
|
+
const crl = require('./crl-5bce64c4.js');
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @license
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-064e95c7.js');
|
|
9
|
-
const x509_certificate = require('./x509_certificate-
|
|
10
|
-
require('./certification_request-
|
|
11
|
-
require('./download-
|
|
12
|
-
require('./l10n-
|
|
13
|
-
const miscellaneous = require('./miscellaneous-
|
|
9
|
+
const x509_certificate = require('./x509_certificate-3760e0a8.js');
|
|
10
|
+
require('./certification_request-d5c6e32d.js');
|
|
11
|
+
require('./download-93f7b773.js');
|
|
12
|
+
require('./l10n-ddc7cff9.js');
|
|
13
|
+
const miscellaneous = require('./miscellaneous-cac1cd8b.js');
|
|
14
14
|
|
|
15
15
|
const certificateViewerCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table table{margin-bottom:0}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";
|
|
16
16
|
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-064e95c7.js');
|
|
9
|
-
const x509_certificate = require('./x509_certificate-
|
|
10
|
-
const certification_request = require('./certification_request-
|
|
11
|
-
require('./download-
|
|
12
|
-
const l10n = require('./l10n-
|
|
9
|
+
const x509_certificate = require('./x509_certificate-3760e0a8.js');
|
|
10
|
+
const certification_request = require('./certification_request-d5c6e32d.js');
|
|
11
|
+
require('./download-93f7b773.js');
|
|
12
|
+
const l10n = require('./l10n-ddc7cff9.js');
|
|
13
13
|
|
|
14
14
|
const certificatesViewerCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;min-width:280px;overflow:auto;position:relative;background:white;background:rgba(var(--pv-color-light-rgb), 1)}table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0}table thead{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07)}table tr td{vertical-align:middle}table tbody tr:not(.expanded_summary){cursor:pointer}table tr{border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table th{padding:15px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table td{padding:8px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table .col_issuer,table .col_name,table .col_public_key{width:16%}table .col_actions,table .col_tests{width:18%}table.m_extra .col_issuer,table.m_extra .col_name,table.m_extra .col_public_key{width:12%}table.m_extra .col_actions,table.m_extra .col_tests{width:17%}table tr.expanded td:not(:last-child){border-right-color:transparent}table tr.expanded td{border-bottom-color:transparent}.expanded{border-bottom-color:transparent;background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary td{vertical-align:top;padding:10px 20px 26px}@-webkit-keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}.modal_wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:auto;text-align:center;-webkit-animation:fadeIn 200ms;animation:fadeIn 200ms;padding:30px 10px}.modal_wrapper:before{display:inline-block;vertical-align:middle;width:0;height:100%;content:\"\"}.modal_backdrop{background:rgba(42, 49, 52, 0.5);background:rgba(var(--pv-color-dark-rgb), 0.5);z-index:-1;position:fixed;top:0;right:0;bottom:0;left:0}.modal_container{position:relative;display:inline-block;vertical-align:middle;width:100%;max-width:900px;text-align:left;border-radius:3px;overflow:hidden;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);height:100%}.modal_title{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);border-bottom-width:1px;border-bottom-style:solid;padding:20px 60px 16px 20px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:60px}.modal_content{height:calc(100% - 60px);overflow-y:auto}.modal_close{cursor:pointer;border:none;background-color:transparent;position:absolute;top:0;bottom:0;right:0;padding:0 12px;-webkit-transition:opacity 100ms;transition:opacity 100ms;outline:none}.modal_close:hover{opacity:0.6}.modal_close svg{fill:#2a3134;fill:rgba(var(--pv-color-dark-rgb), 1)}.button_table_action{margin:2px}.mobile_title{display:none}.status_wrapper{height:85px;text-align:center;pointer-events:none}.search_section{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);height:50px;padding:10px;border-width:1px 1px 0 1px;border-style:solid}.input_search{height:100%;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:0 14px;font-size:12px;outline:none;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.input_search::-webkit-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-moz-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search:-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.loading_container{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(42, 49, 52, 0.3);background:rgba(var(--pv-color-dark-rgb), 0.3);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.align_center{text-align:center}@media (hover: hover){table tbody tr:not(.expanded_summary):hover{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}}@media (max-width: 900px){table,tbody,tr,td{display:block}thead{display:none}tr{padding:0 15px;border-width:1px;border-style:solid}tr:not(:first-child){margin-top:-1px}tr:not(.expanded_summary) td:first-child{border:none !important}table td{padding-left:0;padding-right:0;border-width:1px 0 0 0 !important;border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr.expanded_summary td{padding:15px 0}.mobile_title{display:inline-block;width:90px;vertical-align:middle}.modal_title{padding:17px 60px 17px 15px}.content{display:inline-block;width:calc(100% - 90px);vertical-align:middle;text-align:left}.expanded_summary{border-top-color:transparent;padding-bottom:10px}.expanded_summary td:before{content:none}.status_wrapper{height:266px;display:table-cell}.search_section{height:60px;padding:15px}.align_center{text-align:inherit}}";
|
|
15
15
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const certification_request = require('./certification_request-
|
|
7
|
-
const download = require('./download-
|
|
8
|
-
const l10n = require('./l10n-
|
|
6
|
+
const certification_request = require('./certification_request-d5c6e32d.js');
|
|
7
|
+
const download = require('./download-93f7b773.js');
|
|
8
|
+
const l10n = require('./l10n-ddc7cff9.js');
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @license
|
|
@@ -95,7 +95,7 @@ class X509Certificate extends certification_request.AsnData {
|
|
|
95
95
|
try {
|
|
96
96
|
const thumbprint = await certification_request.getCertificateThumbprint(algorithm, this.raw);
|
|
97
97
|
if (thumbprint) {
|
|
98
|
-
this.thumbprints[algorithm
|
|
98
|
+
this.thumbprints[algorithm] = download.build.Convert.ToHex(thumbprint);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
catch (error) {
|
package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js
CHANGED
|
@@ -13,7 +13,7 @@ import { Name, OtherName, DisplayText, EDIPartyName, UserNotice, } from '@peculi
|
|
|
13
13
|
import { Convert, BufferSourceConverter } from 'pvtsutils';
|
|
14
14
|
import { AsnParser } from '@peculiar/asn1-schema';
|
|
15
15
|
import { OIDs } from '../../../constants/oids';
|
|
16
|
-
import { RowValue } from '../row';
|
|
16
|
+
import { RowValue, TableRowTable } from '../row';
|
|
17
17
|
const names = {
|
|
18
18
|
otherName: 'Other Name',
|
|
19
19
|
rfc822Name: 'RFC 822 Name',
|
|
@@ -35,7 +35,7 @@ export const GeneralNamePart = (props) => {
|
|
|
35
35
|
if (value instanceof Name) {
|
|
36
36
|
return [
|
|
37
37
|
h(RowValue, { name: names[name] || name, value: "" }),
|
|
38
|
-
value.map((relativeDistinguishedName) => (relativeDistinguishedName.map((attributeTypeAndValue) => (h(RowValue, { name: OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type, value: attributeTypeAndValue.value.toString() }))))),
|
|
38
|
+
h(TableRowTable, null, value.map((relativeDistinguishedName) => (relativeDistinguishedName.map((attributeTypeAndValue) => (h(RowValue, { name: OIDs[attributeTypeAndValue.type] || attributeTypeAndValue.type, value: attributeTypeAndValue.value.toString() })))))),
|
|
39
39
|
];
|
|
40
40
|
}
|
|
41
41
|
if (value instanceof OtherName) {
|
|
@@ -13,9 +13,8 @@ import { Convert } from 'pvtsutils';
|
|
|
13
13
|
import { l10n, getStringByOID } from '../../utils';
|
|
14
14
|
import { RowTitle, RowValue, TableRowTable } from './row';
|
|
15
15
|
function getPublicKeyModulus(publicKey) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
let length = publicKey.params['modulus'].byteLength;
|
|
16
|
+
if ('modulus' in publicKey.params) {
|
|
17
|
+
let length = publicKey.params.modulus.byteLength;
|
|
19
18
|
if (length % 2) {
|
|
20
19
|
length -= 1;
|
|
21
20
|
}
|
|
@@ -24,9 +23,8 @@ function getPublicKeyModulus(publicKey) {
|
|
|
24
23
|
return null;
|
|
25
24
|
}
|
|
26
25
|
function getPublicKeyExponent(publicKey) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return publicKey.params['publicExponent'].byteLength === 3
|
|
26
|
+
if ('publicExponent' in publicKey.params) {
|
|
27
|
+
return publicKey.params.publicExponent.byteLength === 3
|
|
30
28
|
? 65537
|
|
31
29
|
: 3;
|
|
32
30
|
}
|
|
@@ -38,10 +36,9 @@ export const PublicKey = (props) => {
|
|
|
38
36
|
return null;
|
|
39
37
|
}
|
|
40
38
|
function renderKeyDetails(key) {
|
|
41
|
-
var _a;
|
|
42
39
|
return [
|
|
43
40
|
h(RowValue, { name: l10n.getString('algorithm'), value: getStringByOID(key.algorithm) }),
|
|
44
|
-
h(RowValue, { name: l10n.getString('namedCurve'), value: getStringByOID(
|
|
41
|
+
h(RowValue, { name: l10n.getString('namedCurve'), value: getStringByOID('namedCurve' in key.params ? key.params.namedCurve : undefined) }),
|
|
45
42
|
h(RowValue, { name: l10n.getString('exponent'), value: getPublicKeyExponent(key) }),
|
|
46
43
|
h(RowValue, { name: l10n.getString('modulus'), value: getPublicKeyModulus(key) }),
|
|
47
44
|
h(RowValue, { name: l10n.getString('value'), value: Convert.ToHex(key.value), monospace: true, collapse: true }),
|
|
@@ -15,7 +15,9 @@ import { BasicInformation, SubjectName, Signature, Thumbprints, Extensions, Misc
|
|
|
15
15
|
export class CsrViewer {
|
|
16
16
|
constructor() {
|
|
17
17
|
this.isDecodeInProcess = true;
|
|
18
|
+
// eslint-disable-next-line class-methods-use-this
|
|
18
19
|
this.getAuthKeyIdParentLink = (value) => value;
|
|
20
|
+
// eslint-disable-next-line class-methods-use-this
|
|
19
21
|
this.getAuthKeyIdSiblingsLink = (value) => value;
|
|
20
22
|
this.getSubjectKeyIdChildrenLink = (value) => {
|
|
21
23
|
var _a;
|
|
@@ -1283,6 +1283,7 @@ export const OIDs = {
|
|
|
1283
1283
|
'1.3.6.1.5.5.7.3.13': 'Eap Over PPP',
|
|
1284
1284
|
'1.3.6.1.5.5.7.3.14': 'Eap Over LAN',
|
|
1285
1285
|
'1.3.6.1.5.5.7.3.31': 'Brand Indicator for Message Identification',
|
|
1286
|
+
'1.3.6.1.5.5.7.3.46': 'Document Signing',
|
|
1286
1287
|
'1.3.6.1.5.5.7.4': 'Cmp Information Types',
|
|
1287
1288
|
'1.3.6.1.5.5.7.4.1': 'Ca Prot Enc Cert',
|
|
1288
1289
|
'1.3.6.1.5.5.7.4.2': 'Sign Key Pair Types',
|
|
@@ -1322,6 +1323,7 @@ export const OIDs = {
|
|
|
1322
1323
|
'1.3.6.1.5.5.7.8.2': 'User Group',
|
|
1323
1324
|
'1.3.6.1.5.5.7.8.3': 'Permanent Identifier',
|
|
1324
1325
|
'1.3.6.1.5.5.7.8.5': 'Xmpp Addr',
|
|
1326
|
+
'1.3.6.1.5.5.7.8.9': 'SMTP UTF8 Mailbox',
|
|
1325
1327
|
'1.3.6.1.5.5.7.9': 'Personal Data',
|
|
1326
1328
|
'1.3.6.1.5.5.7.9.1': 'Date Of Birth',
|
|
1327
1329
|
'1.3.6.1.5.5.7.9.2': 'Place Of Birth',
|
|
@@ -2294,10 +2296,11 @@ export const OIDs = {
|
|
|
2294
2296
|
'2.54.1775.7': 'Set Qualifier',
|
|
2295
2297
|
'2.54.1775.99': 'Set Data',
|
|
2296
2298
|
'1.3.6.1.4.1.11129.2.4.3': 'CT Pre-Certificate Poison',
|
|
2297
|
-
'2.23.140.1.2.2': 'CA/B Forum Organization Validated',
|
|
2298
2299
|
'2.23.140.1.2.1': 'CA/B Forum Domain Validated',
|
|
2300
|
+
'2.23.140.1.2.2': 'CA/B Forum Organization Validated',
|
|
2301
|
+
'2.23.140.1.5.2.2': 'CA/B Forum Organization Validated Multipurpose',
|
|
2299
2302
|
'1.3.6.1.4.1.44947.1.1.1': 'Let\'s Encrypt',
|
|
2300
|
-
'1.3.6.1.4.1.4329.7.2.4': '
|
|
2303
|
+
'1.3.6.1.4.1.4329.7.2.4': 'SSL TLS Certs',
|
|
2301
2304
|
'1.3.6.1.4.1.4329.7': 'Siemens Public Key Infrastructure',
|
|
2302
2305
|
'1.3.6.1.4.1.52266.1': 'Legal Entity Identifier',
|
|
2303
2306
|
'1.3.6.1.4.1.52266.2': 'Role',
|
|
@@ -40,7 +40,7 @@ export class CRL extends AsnData {
|
|
|
40
40
|
try {
|
|
41
41
|
const thumbprint = await getCertificateThumbprint(algorithm, this.raw);
|
|
42
42
|
if (thumbprint) {
|
|
43
|
-
this.thumbprints[algorithm
|
|
43
|
+
this.thumbprints[algorithm] = Convert.ToHex(thumbprint);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
catch (error) {
|
|
@@ -66,7 +66,7 @@ export class CSR extends AsnData {
|
|
|
66
66
|
try {
|
|
67
67
|
const thumbprint = await getCertificateThumbprint(algorithm, this.raw);
|
|
68
68
|
if (thumbprint) {
|
|
69
|
-
this.thumbprints[algorithm
|
|
69
|
+
this.thumbprints[algorithm] = Convert.ToHex(thumbprint);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
catch (error) {
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
export class CryptoProvider {
|
|
12
12
|
constructor() {
|
|
13
13
|
this.providers = new Map();
|
|
14
|
-
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
const crypto = window.crypto || window.msCrypto;
|
|
15
16
|
if (typeof crypto !== 'undefined') {
|
|
16
17
|
this.set(CryptoProvider.DEFAULT, crypto);
|
|
17
18
|
}
|
|
@@ -64,7 +64,7 @@ export class X509AttributeCertificate extends AsnData {
|
|
|
64
64
|
try {
|
|
65
65
|
const thumbprint = await getCertificateThumbprint(algorithm, this.raw);
|
|
66
66
|
if (thumbprint) {
|
|
67
|
-
this.thumbprints[algorithm
|
|
67
|
+
this.thumbprints[algorithm] = Convert.ToHex(thumbprint);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
catch (error) {
|
|
@@ -100,7 +100,7 @@ export class X509Certificate extends AsnData {
|
|
|
100
100
|
try {
|
|
101
101
|
const thumbprint = await getCertificateThumbprint(algorithm, this.raw);
|
|
102
102
|
if (thumbprint) {
|
|
103
|
-
this.thumbprints[algorithm
|
|
103
|
+
this.thumbprints[algorithm] = Convert.ToHex(thumbprint);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
catch (error) {
|
|
@@ -24,7 +24,9 @@ export function downloadFromBuffer(value, name, extension, mime = 'application/o
|
|
|
24
24
|
if (navigator.msSaveBlob) { // IE10+ : (has Blob, but not a[download] or URL)
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
navigator.msSaveBlob(blob, `${name}.${extension}`);
|
|
27
|
-
return new Promise((
|
|
27
|
+
return new Promise((resolve) => {
|
|
28
|
+
setTimeout(resolve, 100);
|
|
29
|
+
});
|
|
28
30
|
}
|
|
29
31
|
const blobURL = window.URL.createObjectURL(blob);
|
|
30
32
|
const link = document.createElement('a');
|
|
@@ -39,8 +41,10 @@ export function downloadFromBuffer(value, name, extension, mime = 'application/o
|
|
|
39
41
|
document.body.appendChild(link);
|
|
40
42
|
link.dispatchEvent(new MouseEvent('click'));
|
|
41
43
|
document.body.removeChild(link);
|
|
42
|
-
return new Promise((
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
return new Promise((resolve) => {
|
|
45
|
+
setTimeout(() => {
|
|
46
|
+
document.body.removeChild(frame);
|
|
47
|
+
resolve();
|
|
48
|
+
}, 100);
|
|
49
|
+
});
|
|
46
50
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { b as build, c as createCommonjsModule, a as commonjsGlobal } from './download-
|
|
5
|
-
import './l10n-
|
|
4
|
+
import { b as build, c as createCommonjsModule, a as commonjsGlobal } from './download-91511aeb.js';
|
|
5
|
+
import './l10n-d48f35ff.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
@@ -1316,6 +1316,7 @@ const OIDs = {
|
|
|
1316
1316
|
'1.3.6.1.5.5.7.3.13': 'Eap Over PPP',
|
|
1317
1317
|
'1.3.6.1.5.5.7.3.14': 'Eap Over LAN',
|
|
1318
1318
|
'1.3.6.1.5.5.7.3.31': 'Brand Indicator for Message Identification',
|
|
1319
|
+
'1.3.6.1.5.5.7.3.46': 'Document Signing',
|
|
1319
1320
|
'1.3.6.1.5.5.7.4': 'Cmp Information Types',
|
|
1320
1321
|
'1.3.6.1.5.5.7.4.1': 'Ca Prot Enc Cert',
|
|
1321
1322
|
'1.3.6.1.5.5.7.4.2': 'Sign Key Pair Types',
|
|
@@ -1355,6 +1356,7 @@ const OIDs = {
|
|
|
1355
1356
|
'1.3.6.1.5.5.7.8.2': 'User Group',
|
|
1356
1357
|
'1.3.6.1.5.5.7.8.3': 'Permanent Identifier',
|
|
1357
1358
|
'1.3.6.1.5.5.7.8.5': 'Xmpp Addr',
|
|
1359
|
+
'1.3.6.1.5.5.7.8.9': 'SMTP UTF8 Mailbox',
|
|
1358
1360
|
'1.3.6.1.5.5.7.9': 'Personal Data',
|
|
1359
1361
|
'1.3.6.1.5.5.7.9.1': 'Date Of Birth',
|
|
1360
1362
|
'1.3.6.1.5.5.7.9.2': 'Place Of Birth',
|
|
@@ -2327,10 +2329,11 @@ const OIDs = {
|
|
|
2327
2329
|
'2.54.1775.7': 'Set Qualifier',
|
|
2328
2330
|
'2.54.1775.99': 'Set Data',
|
|
2329
2331
|
'1.3.6.1.4.1.11129.2.4.3': 'CT Pre-Certificate Poison',
|
|
2330
|
-
'2.23.140.1.2.2': 'CA/B Forum Organization Validated',
|
|
2331
2332
|
'2.23.140.1.2.1': 'CA/B Forum Domain Validated',
|
|
2333
|
+
'2.23.140.1.2.2': 'CA/B Forum Organization Validated',
|
|
2334
|
+
'2.23.140.1.5.2.2': 'CA/B Forum Organization Validated Multipurpose',
|
|
2332
2335
|
'1.3.6.1.4.1.44947.1.1.1': 'Let\'s Encrypt',
|
|
2333
|
-
'1.3.6.1.4.1.4329.7.2.4': '
|
|
2336
|
+
'1.3.6.1.4.1.4329.7.2.4': 'SSL TLS Certs',
|
|
2334
2337
|
'1.3.6.1.4.1.4329.7': 'Siemens Public Key Infrastructure',
|
|
2335
2338
|
'1.3.6.1.4.1.52266.1': 'Legal Entity Identifier',
|
|
2336
2339
|
'1.3.6.1.4.1.52266.2': 'Role',
|
|
@@ -10376,7 +10379,8 @@ class Extension extends AsnData {
|
|
|
10376
10379
|
class CryptoProvider {
|
|
10377
10380
|
constructor() {
|
|
10378
10381
|
this.providers = new Map();
|
|
10379
|
-
|
|
10382
|
+
// @ts-ignore
|
|
10383
|
+
const crypto = window.crypto || window.msCrypto;
|
|
10380
10384
|
if (typeof crypto !== 'undefined') {
|
|
10381
10385
|
this.set(CryptoProvider.DEFAULT, crypto);
|
|
10382
10386
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { A as AsnData, s as Attribute$1, t as id_pkcs9_at_extensionRequest, u as AsnParser, v as ExtensionRequest, E as Extension, f as AsnConvert, w as id_pkcs9_at_unstructuredName, U as UnstructuredName, x as id_pkcs9_at_challengePassword, y as ChallengePassword, z as id_ValuationRanking, V as ValuationRanking, B as id_InsuranceValue, I as InsuranceValue, D as id_WebGDPR, W as WebGDPR, F as id_ActivityDescription, G as ActivityDescription, H as id_TypeRelationship, T as TypeRelationship, J as id_DomainNameTechnicalOperator, K as DomainNameTechnicalOperator, L as id_DomainNameOwner, M as DomainNameOwner, O as id_DomainNameLegalRepresentative, P as DomainNameLegalRepresentative, Q as id_DomainNameBeneficiary, S as DomainNameBeneficiary, e as certificateRawToBuffer, X as AttributeCertificate, r as getCertificateThumbprint, p as hexFormat, q as base64Format, Y as CertificationRequest, N as Name, g as id_ecPublicKey, h as ECParameters, j as id_rsaEncryption, R as RSAPublicKey, Z as CertificateList } from './certification_request-
|
|
5
|
-
import { b as build, D as Download } from './download-
|
|
6
|
-
import { d as dateDiff } from './l10n-
|
|
4
|
+
import { A as AsnData, s as Attribute$1, t as id_pkcs9_at_extensionRequest, u as AsnParser, v as ExtensionRequest, E as Extension, f as AsnConvert, w as id_pkcs9_at_unstructuredName, U as UnstructuredName, x as id_pkcs9_at_challengePassword, y as ChallengePassword, z as id_ValuationRanking, V as ValuationRanking, B as id_InsuranceValue, I as InsuranceValue, D as id_WebGDPR, W as WebGDPR, F as id_ActivityDescription, G as ActivityDescription, H as id_TypeRelationship, T as TypeRelationship, J as id_DomainNameTechnicalOperator, K as DomainNameTechnicalOperator, L as id_DomainNameOwner, M as DomainNameOwner, O as id_DomainNameLegalRepresentative, P as DomainNameLegalRepresentative, Q as id_DomainNameBeneficiary, S as DomainNameBeneficiary, e as certificateRawToBuffer, X as AttributeCertificate, r as getCertificateThumbprint, p as hexFormat, q as base64Format, Y as CertificationRequest, N as Name, g as id_ecPublicKey, h as ECParameters, j as id_rsaEncryption, R as RSAPublicKey, Z as CertificateList } from './certification_request-23cd5124.js';
|
|
5
|
+
import { b as build, D as Download } from './download-91511aeb.js';
|
|
6
|
+
import { d as dateDiff } from './l10n-d48f35ff.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
@@ -120,7 +120,7 @@ class X509AttributeCertificate extends AsnData {
|
|
|
120
120
|
try {
|
|
121
121
|
const thumbprint = await getCertificateThumbprint(algorithm, this.raw);
|
|
122
122
|
if (thumbprint) {
|
|
123
|
-
this.thumbprints[algorithm
|
|
123
|
+
this.thumbprints[algorithm] = build.Convert.ToHex(thumbprint);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
catch (error) {
|
|
@@ -202,7 +202,7 @@ class CSR extends AsnData {
|
|
|
202
202
|
try {
|
|
203
203
|
const thumbprint = await getCertificateThumbprint(algorithm, this.raw);
|
|
204
204
|
if (thumbprint) {
|
|
205
|
-
this.thumbprints[algorithm
|
|
205
|
+
this.thumbprints[algorithm] = build.Convert.ToHex(thumbprint);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
catch (error) {
|
|
@@ -264,7 +264,7 @@ class CRL extends AsnData {
|
|
|
264
264
|
try {
|
|
265
265
|
const thumbprint = await getCertificateThumbprint(algorithm, this.raw);
|
|
266
266
|
if (thumbprint) {
|
|
267
|
-
this.thumbprints[algorithm
|
|
267
|
+
this.thumbprints[algorithm] = build.Convert.ToHex(thumbprint);
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
catch (error) {
|