jsrsasign-addon-leioor
Version:
jsrsasign add-on for LEI(Legal Entity Identifier) and Role certificate extensions
28 lines (20 loc) • 960 B
JavaScript
/*
NodeJSのDynamic Import
https://himenon.github.io/docs/javascript/dynamic-import/
*/
(async () => {
//const jsrsasign = await import("https://cdn.jsdelivr.net/npm/jsrsasign@10.7.0/+esm");
const jsrsasign = await import("../../jsrsa/_git/jsrsasign/npm/lib/jsrsasign.js");
const addon1 = await import("../index.js");
addon1.register(jsrsasign);
//console.log(jsrsasign.VERSION_FULL);
let x = new jsrsasign.X509();
console.log(JSON.stringify(x.getExtParam("302306092b0601040183982a01041613143132333435363738393031323334353637384142")));
console.log(JSON.stringify(x.getExtParam("301206092b0601040183982a020405130343454f")));
})();
/*
06 09 2B 06 01 04 01 83 98 2A 02 04 05 13 03 43 45 4F
30 23 06 09 2B 06 01 04 01 83 98 2A 01 04 16 13 14 31 32 33 34 35 36 37
06 09 2B 06 01 04 01 83 98 2A 01
04 16 13 14 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 41 42
*/