name |
string |
Subject distinguished name as a single string, with components separated by slashes.
For example, /C=US/O=Example/CN=example.com.
|
subject |
array |
Subject distinguished name. Keys are short names such as
CN when short_names is
true, and long names such as commonName
otherwise. Each value is a UTF-8 string, or an array of UTF-8
strings when that component occurs more than once.
|
hash |
string |
Lowercase hexadecimal hash of the subject name, as used to look up
a certificate in an OpenSSL CA directory. This is an 8-digit value.
It is not the certificate fingerprint; see
openssl_x509_fingerprint().
|
issuer |
array |
Issuer distinguished name, in the same form as
subject.
|
version |
int |
Raw version field stored in the certificate. This value is one less
than the certificate version usually displayed: a version 1
certificate is 0, a version 2 certificate is
1, and a version 3 certificate is
2.
|
serialNumber |
string |
Decimal representation of the serial number. Large serial numbers are
returned as a hexadecimal string prefixed with 0x instead.
|
serialNumberHex |
string |
Uppercase hexadecimal representation of the serial number.
|
validFrom |
string |
Not-before time in ASN.1 form, either UTCTime
(YYMMDDHHMMSSZ) or GeneralizedTime
(YYYYMMDDHHMMSSZ).
|
validTo |
string |
Not-after time, in the same form as validFrom.
|
validFrom_time_t |
int |
Not-before time as a Unix timestamp, or -1 if the
time could not be parsed.
|
validTo_time_t |
int |
Not-after time as a Unix timestamp, or -1 if the
time could not be parsed.
|
alias |
string |
Certificate alias (friendly name). Only present when one is set.
|
signatureTypeSN |
string |
Short name of the signature algorithm.
|
signatureTypeLN |
string |
Long name of the signature algorithm.
|
signatureTypeNID |
int |
Numeric signature-algorithm identifier (OpenSSL NID).
|
purposes |
array |
Purpose checks, indexed by purpose id. The ids are the
X509_PURPOSE_*
constants. Each value is an array described below.
|
extensions |
array |
Certificate extensions, indexed by short name (for example
subjectAltName) or by OID when the extension has
no short name. Each value is text describing that extension, or the raw
extension data when it cannot be printed. Which keys are present depends on the certificate.
This array does not follow short_names.
|