Initializes a new instance of the Certificate class
Initialization parameters
Optional
extensionsIf present, this field is a SEQUENCE of one or more certificate extensions
The issuer field identifies the entity that has signed and issued the certificate
Optional
issuerThe subject and issuer unique identifiers are present in the certificate to handle the possibility of reuse of subject and/or issuer names over time
The date on which the certificate validity period ends
The date on which the certificate validity period begins
Serial number of the certificate
This field contains the algorithm identifier for the algorithm used by the CA to sign the certificate
The signatureAlgorithm field contains the identifier for the cryptographic algorithm used by the CA to sign this certificate
The signatureValue field contains a digital signature computed upon the ASN.1 DER encoded tbsCertificate
The subject field identifies the entity associated with the public key stored in the subject public key field
This field is used to carry the public key and identify the algorithm with which the key is used
Optional
subjectThe subject and issuer unique identifiers are present in the certificate to handle the possibility of reuse of subject and/or issuer names over time
Version number
Static
CLASS_Name of the class
Since version 3.0.0
Since version 3.0.0
Get hash value for subject public key (default SHA-1)
Computed hash value from Certificate.tbsCertificate.subjectPublicKeyInfo.subjectPublicKey
Hashing algorithm name
Crypto engine
Importing public key for current certificate
WebCrypto public key
Optional
parameters: CryptoEnginePublicKeyParamsPublic key export parameters
Crypto engine
Make a signature for current value from TBS section
Private key for SUBJECT_PUBLIC_KEY_INFO structure
Hashing algorithm
Crypto engine
Converts the class to JSON object
JSON object
Converts current object to ASN.1 object and sets correct values
ASN.1 object
If param equal to false
then creates schema via decoding stored value. In other case creates schema via assembling from cached parts
Verifies the certificate signature
Optional
issuerCertificate: CertificateCrypto engine
Static
blockStatic
defaultReturn default values for all class members
Predefined default value
String name for a class member
Static
fromBERCreates PKI object from the raw data
Initialized and filled current class object
ASN.1 encoded raw data
Static
schemaReturns value of pre-defined ASN.1 schema for current class
ASN.1 schema object
Input parameters for the schema
Generated using TypeDoc
Represents an X.509 certificate described in RFC5280 Section 4.
Example
The following example demonstrates how to parse X.509 Certificate
Example
The following example demonstrates how to create self-signed certificate