Class X509
Version
1.0.1 (08 May 2012).
X.509 certificate class
Defined in: x509-1.1.js.
Constructor Attributes | Constructor Name and Description |
---|---|
X509()
X.509 certificate class.
|
Field Attributes | Field Name and Description |
---|---|
hexacedimal string for X.509 certificate.
|
|
Tom Wu's RSAKey object
|
|
hexadecimal string for public exponent of RSA public key
|
|
hexadecimal string for modulus of RSA public key
|
Method Attributes | Method Name and Description |
---|---|
get hexadecimal string of issuer field TLV of certificate.
|
|
get string of issuer field of certificate.
|
|
get notAfter field string of certificate.
|
|
get notBefore field string of certificate.
|
|
<static> |
X509.getPublicKeyFromCertPEM(sCertPEM)
get RSAKey/ECDSA public key object from PEM certificate string
NOTE: DSA is also supported since x509 1.1.2.
|
<static> |
X509.getPublicKeyInfoPropOfCertPEM(sCertPEM)
get public key information from PEM certificate
Resulted associative array has following properties:
|
get hexadecimal string of serialNumber field of certificate.
|
|
get hexadecimal string of subject field of certificate.
|
|
get string of subject field of certificate.
|
|
readCertPEM(sCertPEM)
read PEM formatted X.509 certificate from string.
|
Field Detail
{String}
hex
hexacedimal string for X.509 certificate.
{RSAKey}
subjectPublicKeyRSA
Tom Wu's RSAKey object
{String}
subjectPublicKeyRSA_hE
hexadecimal string for public exponent of RSA public key
{String}
subjectPublicKeyRSA_hN
hexadecimal string for modulus of RSA public key
Method Detail
getIssuerHex()
get hexadecimal string of issuer field TLV of certificate.
getIssuerString()
get string of issuer field of certificate.
getNotAfter()
get notAfter field string of certificate.
getNotBefore()
get notBefore field string of certificate.
<static>
X509.getPublicKeyFromCertPEM(sCertPEM)
get RSAKey/ECDSA public key object from PEM certificate string
NOTE: DSA is also supported since x509 1.1.2.
- Parameters:
- {String} sCertPEM
- PEM formatted RSA/ECDSA/DSA X.509 certificate
- Since:
- x509 1.1.1
- Returns:
- returns RSAKey/KJUR.crypto.{ECDSA,DSA} object of public key
<static>
{Hash}
X509.getPublicKeyInfoPropOfCertPEM(sCertPEM)
get public key information from PEM certificate
Resulted associative array has following properties:
- algoid - hexadecimal string of OID of asymmetric key algorithm
- algparam - hexadecimal string of OID of ECC curve name or null
- keyhex - hexadecimal string of key in the certificate
- Parameters:
- {String} sCertPEM
- string of PEM formatted certificate
- Since:
- x509 1.1.1, x509 1.1.1
- Returns:
- {Hash} hash of information for public key
getSerialNumberHex()
get hexadecimal string of serialNumber field of certificate.
getSubjectHex()
get hexadecimal string of subject field of certificate.
getSubjectString()
get string of subject field of certificate.
readCertPEM(sCertPEM)
read PEM formatted X.509 certificate from string.
- Parameters:
- {String} sCertPEM
- string for PEM formatted X.509 certificate