UNPKG

@peculiar/fortify-webcomponents

Version:

Web-components for creating CSR or Certificate and viewing certificates list using Fortify

25 lines 2.86 kB
/*! * © Peculiar Ventures https://peculiarventures.com/ - BSD 3-Clause License */ import{O as a,a2 as s,a3 as t,A as r,a4 as e,r as n,a5 as i,a6 as o,a7 as c,a8 as b,a9 as h,aa as u,ab as f,ac as p,ad as d,ae as l,af as x,ag as w,ah as g,ai as m,aj as y,ak as A,al as E,am as C,an as D,ao as J,ap as N,aq as O,ar as S,as as $,at as j,au as k,av as M,aw as P,ax as V,ay as q,az as v,aA as z,aB as B,aC as F,aD as G,aE as H,aF as I,aG as K,aH as L,b as Q,aI as R,aJ as T,aK as U,aL as W,aM as X,aN as Y,aO as Z,aP as _,aQ as aa,aR as sa,aS as ta,aT as ra,aU as ea,aV as na,aW as ia,aX as oa,aY as ca,aZ as ba,a_ as ha,a$ as ua,b0 as fa,b1 as pa,b2 as da,b3 as la,b4 as xa,b5 as wa,b6 as ga,b7 as ma,b8 as ya,b9 as Aa,ba as Ea,bb as Ca,bc as Da,bd as Ja,be as Na,bf as Oa,bg as Sa,bh as $a,P as ja,bi as ka}from"./p-CDwMJyak.js";const Ma="1.3.6.1.4.1.11129.2.4.2";class Pa extends a{constructor(){super(...arguments);this.items=[]}fromASN(a){super.fromASN(a);const r=new s(this.buffer);const e=r.readNumber(2);this.items=[];while(r.position<e){this.items.push(new t(r))}return this}toJSON(){return this.items.map((a=>a.toJSON()))}}const Va="1.3.6.1.5.5.7.1.12"; /*! * © Peculiar Ventures https://peculiarventures.com/ - MIT License */ /** * @license * Copyright (c) Peculiar Ventures, LLC. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */const qa={[$a]:L,[Sa]:K,[Oa]:I,[Na]:H,[Ja]:G,[Da]:F,"2.5.29.46":F,[Ca]:B,[Ea]:z,[Aa]:v,[ya]:q,[ma]:V,[ga]:P,[wa]:M,[xa]:k,[la]:j,[da]:$,[pa]:S,[fa]:O,[ua]:N,[ha]:J,[ba]:D,[ca]:C,[oa]:E,[ia]:A,[na]:y,[Ma]:Pa,[ea]:m,[ra]:g,[ta]:w,[sa]:x,[aa]:l,[_]:d,"2.16.724.1.2.2.4.1":p,[Z]:p,[Va]:f,[Y]:u,[X]:h,[W]:b,[U]:c,[T]:o,[R]:i};class va extends r{getAsnExtnValue(){return this.asn.extnValue.buffer}constructor(a){super(a,e);const s=this.getAsnExtnValue();try{const a=qa[this.asn.extnID];if(a){this.value=n.parse(s,a)}else{console.warn(`Didn't detect parser for "${this.asn.extnID}" extension.`);this.value=Q.Convert.ToHex(s)}}catch(a){console.error(`Error parse "${this.asn.extnID}" extension:`,a.message);this.value=Q.Convert.ToHex(s)}}} /*! * © Peculiar Ventures https://peculiarventures.com/ - MIT License */ /** * @license * Copyright (c) Peculiar Ventures, LLC. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */const za=a=>{if(ja.isPem(a)){return ja.decode(a)[0]}if(Q.Convert.isHex(a)){return Q.Convert.FromHex(a)}if(Q.Convert.isBase64(a)){return Q.Convert.FromBase64(a)}if(Q.Convert.isBase64Url(a)){return Q.Convert.FromBase64Url(a)}return Q.Convert.FromBinary(a)};const Ba=async(a,s)=>{const t=ka.get();if(t.subtle){return t.subtle.digest(a,s)}return undefined};export{Pa as C,va as E,za as c,Ba as g}; //# sourceMappingURL=p-Ou4nymEQ.js.map