How to use the asn1.js-rfc5280.Extensions function in asn1

To help you get started, we’ve selected a few asn1 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mendersoftware / gui / node_modules / asn1.js / rfc / 2560 / index.js View on Github external
var TBSRequest = asn1.define('TBSRequest', function() {
  this.seq().obj(
    this.key('version').def('v1').explicit(0).use(rfc5280.Version),
    this.key('requestorName').optional().explicit(1).use(rfc5280.GeneralName),
    this.key('requestList').seqof(Request),
    this.key('requestExtensions').optional().explicit(2).use(rfc5280.Extensions)
  );
});
exports.TBSRequest = TBSRequest;
github jamesshore / automatopia / node_modules / browserify / node_modules / crypto-browserify / node_modules / browserify-sign / node_modules / parse-asn1 / node_modules / asn1.js / rfc / 2560 / index.js View on Github external
var TBSRequest = asn1.define('TBSRequest', function() {
  this.seq().obj(
    this.key('version').def('v1').explicit(0).use(rfc5280.Version),
    this.key('requestorName').optional().explicit(1).use(rfc5280.GeneralName),
    this.key('requestList').seqof(Request),
    this.key('requestExtensions').optional().explicit(2).use(rfc5280.Extensions)
  );
});
exports.TBSRequest = TBSRequest;
github jamesshore / automatopia / node_modules / browserify / node_modules / crypto-browserify / node_modules / browserify-sign / node_modules / parse-asn1 / node_modules / asn1.js / rfc / 2560 / index.js View on Github external
var ResponseData = asn1.define('ResponseData', function() {
  this.seq().obj(
    this.key('version').def('v1').explicit(0).use(rfc5280.Version),
    this.key('responderID').use(ResponderID),
    this.key('producedAt').gentime(),
    this.key('responses').seqof(SingleResponse),
    this.key('responseExtensions').optional().explicit(0)
        .use(rfc5280.Extensions)
  );
});
exports.ResponseData = ResponseData;
github tpadjen / ng2-prism / jspm_packages / npm / asn1.js@4.5.0 / rfc / 2560 / index.js View on Github external
var Request = asn1.define('Request', function() {
  this.seq().obj(this.key('reqCert').use(CertID), this.key('singleRequestExtensions').optional().explicit(0).use(rfc5280.Extensions));
});
exports.Request = Request;
github mendersoftware / gui / node_modules / asn1.js / rfc / 2560 / index.js View on Github external
var Request = asn1.define('Request', function() {
  this.seq().obj(
    this.key('reqCert').use(CertID),
    this.key('singleRequestExtensions').optional().explicit(0).use(
      rfc5280.Extensions)
  );
});
exports.Request = Request;