This represents a X.509 certificate.
Obtain a list of all email addresses
contained in the certificate.
length | The number of strings in the returned array. |
An array of email addresses. |
Check whether a given address is contained in the certificate.
The comparison will convert the email address to lowercase.
The behaviour for non ASCII characters is undefined.
aEmailAddress | The address to search for. |
True if the address is contained in the certificate. |
Obtain a list of certificates that contains this certificate
and the issuing certificates of all involved issuers,
up to the root issuer.
The chain of certifficates including the issuers. |
Obtain an array of human readable strings describing
the certificate’s certified usages.
localOnly | Do not hit the network, even if revocation information downloading is currently activated. |
verified | The certificate verification result, see constants. |
count | The number of human readable usages returned. |
usages | The array of human readable usages. |
Async version of nsIX509Cert::getUsagesArray()
Will not block, will request results asynchronously,
availability of results will be notified on the main thread.
Obtain a single comma separated human readable string describing
the certificate’s certified usages.
localOnly | Do not hit the network, even if revocation information downloading is currently activated. |
verified | The certificate verification result, see constants. |
purposes | The string listing the usages. |
Obtain a raw binary encoding of this certificate
in DER format.
length | The number of bytes in the binary encoding. |
data | The bytes representing the DER encoded certificate. |
Test whether two certificate instances represent the
same certificate.
Whether the certificates are equal |
Obtain the certificate wrapped in a PKCS#7 SignedData structure,
with or without the certificate chain
chainMode | Whether to include the chain (with or without the root), see CMS_CHAIN_MODE constants. |
length | The number of bytes of the PKCS#7 data. |
data | The bytes representing the PKCS#7 wrapped certificate. |
Retrieves the NSS certificate object wrapped by this interface
Human readable names identifying all hardware or
software tokens the certificate is stored on.
length | On success, the number of entries in the returned array. |
On success, an array containing the names of all tokens the certificate is stored on (may be empty). On failure the function throws/returns an error. |
Either delete the certificate from all cert databases,
or mark it as untrusted.
A nickname for the certificate.
The primary email address of the certificate, if present.
The subject owning the certificate.
The subject’s common name.
The subject’s organization.
The subject’s organizational unit.
The fingerprint of the certificate’s DER encoding,
calculated using the SHA-256 algorithm.
The fingerprint of the certificate’s DER encoding,
calculated using the SHA1 algorithm.
A human readable name identifying the hardware or
software token the certificate is stored on.
The subject identifying the issuer certificate.
The serial number the issuer assigned to this certificate.
The issuer subject’s common name.
The issuer subject’s organization.
The issuer subject’s organizational unit.
The certificate used by the issuer to sign this certificate.
This certificate’s validity period.
A unique identifier of this certificate within the local storage.
A human readable identifier to label this certificate.
Type of this certificate
True if the certificate is self-signed. CA issued
certificates are always self-signed.
This is the attribute which describes the ASN1 layout
of the certificate. This can be used when doing a
“pretty print” of the certificate’s ASN1 structure.
The base64 encoding of the DER encoded public key info using the specified
digest.
Constants to classify the type of a certificate.
Constants for certificate verification results.
Constants that describe the certified usages of a certificate.
Deprecated and unused
Constants for specifying the chain mode when exporting a certificate