jwk-to-pem
Version:
Convert a JSON Web Key to a PEM
14 lines (11 loc) • 397 B
JavaScript
;
var AlgorithmIdentifier = require('./algorithm-identifier');
var Version = require('./version');
module.exports = require('asn1.js').define('PrivateKeyInfo', /* @this */ function() {
this.seq().obj(
this.key('version').use(Version),
this.key('privateKeyAlgorithm').use(AlgorithmIdentifier),
this.key('privateKey').octstr(),
this.key('attributes').optional().any()
);
});