Class Index | File Index

Classes


Class KJUR.asn1.x509.CRL


Extends KJUR.asn1.ASN1Object.
X.509 CRL class to sign and generate hex encoded certificate
Defined in: asn1x509-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
X.509 CRL class to sign and generate hex encoded CRL
As for argument 'params' for constructor, you can specify one of following properties: NOTE: 'params' can be omitted.
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified
Method Summary
Method Attributes Method Name and Description
 
get PEM formatted CRL string after signed
 
sign()
sign TBSCertList and set signature value internally
Methods borrowed from class KJUR.asn1.ASN1Object:
getEncodedHex, getLengthHexFromValue, getValueHex
Class Detail
KJUR.asn1.x509.CRL(params)
X.509 CRL class to sign and generate hex encoded CRL
As for argument 'params' for constructor, you can specify one of following properties: NOTE: 'params' can be omitted.

EXAMPLE

var prvKey = new RSAKey(); // CA's private key
prvKey.readPrivateKeyFromASN1HexString("3080...");
var crl = new KJUR.asn1x509.CRL({'tbsobj': tbs, 'prvkeyobj': prvKey});
crl.sign(); // issue CRL by CA's private key
var hCRL = crl.getEncodedHex();

// CertificateList  ::=  SEQUENCE  {
//     tbsCertList          TBSCertList,
//     signatureAlgorithm   AlgorithmIdentifier,
//     signatureValue       BIT STRING  }
Parameters:
{Array} params
associative array of parameters (ex. {'tbsobj': obj, 'rsaprvkey': key})
Since:
1.0.3
Method Detail
getPEMString()
get PEM formatted CRL string after signed
var cert = new KJUR.asn1.x509.CRL({'tbsobj': tbs, 'rsaprvkey': prvKey});
cert.sign();
var sPEM =  cert.getPEMString();
Returns:
PEM formatted string of certificate

sign()
sign TBSCertList and set signature value internally
var cert = new KJUR.asn1.x509.CRL({'tbsobj': tbs, 'prvkeyobj': prvKey});
cert.sign();

© 2012-2017 Kenji Urushima, All rights reserved
Documentation generated by JsDoc Toolkit 2.4.0