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.
Constructor Attributes | Constructor Name and Description |
---|---|
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:
|
- Fields borrowed from class KJUR.asn1.ASN1Object:
- hL, hT, hTLV, hV, isModified
Method Attributes | Method Name and Description |
---|---|
<static> |
KJUR.asn1.x509.CRL.getPEMString()
get PEM formatted CRL string after signed
|
<static> |
KJUR.asn1.x509.CRL.setRsaPrvKeyByPEMandPass(rsaPEM, passPEM)
set PKCS#5 encrypted RSA PEM private key as CA key
EXAMPLES |
<static> |
KJUR.asn1.x509.CRL.sign()
sign TBSCertList and set signature value internally
|
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:
As for argument 'params' for constructor, you can specify one of following properties:
- tbsobj - specify KJUR.asn1.x509.TBSCertList object to be signed
- rsaprvkey - specify RSAKey object CA private key
EXAMPLE
var prvKey = new RSAKey(); // CA's private key prvKey.readPrivateKeyFromASN1HexString("3080..."); var crl = new KJUR.asn1x509.CRL({'tbsobj': tbs, 'rsaprvkey': 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
<static>
KJUR.asn1.x509.CRL.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
<static>
KJUR.asn1.x509.CRL.setRsaPrvKeyByPEMandPass(rsaPEM, passPEM)
set PKCS#5 encrypted RSA PEM private key as CA key
EXAMPLES
- Parameters:
- {String} rsaPEM
- string of PKCS#5 encrypted RSA PEM private key
- {String} passPEM
- passcode string to decrypt private key
<static>
KJUR.asn1.x509.CRL.sign()
sign TBSCertList and set signature value internally
var cert = new KJUR.asn1.x509.CRL({'tbsobj': tbs, 'rsaprvkey': prvKey}); cert.sign();