Skip to content

jsrsasign Add On

Kenji Urushima edited this page Feb 15, 2022 · 11 revisions

Jsrsasign starts to support Add-On feature from 10.5.2. When you need extra OID definitions, private extensions or functions, you may use add-on's.

Current List of Add-On NPM packages

  • jsrsasign-oid-jpki - extra object identifier definitions for JPKI Japanese citizen card
  • jsrsasign-oid-jpcomreg - extra object identifier definitions for Japanese Commercial Registry certificate
  • jsrsasign-oid-psd2 - extra object identifier definitions for EU Payment Services Directive(PSD2)

If you find or develop "add-on", please let me know. I'll add it to this list.

Sample usage for add-on

% npm install -g jsrsasign-oid-jpki

In your Node script, you can add "jsrsasign-oid-jpki" add-on like this:

var jsrsasign = require("jsrsasign");
require("jsrsasign-oid-jpki").addon(jsrsasign);
// Then you can use JPKI OID definitions
console.log(jsrsasign.KJUR.asn1.x509.OID.name2oid("jpki-pd-commonName"));
// -> "1.2.392.200149.8.5.5.1"

You can see JPKI OID definitions by the code.

Clone this wiki locally