An object describing a single X.509 certificate.
The SecurityInfo object returned from the webRequest.getSecurityInfo() API includes a certificates property which is an array of these objects.
Values of this type are objects. They contain the following properties:
fingerprintObject. An object with the following properties:
sha1String. SHA-1 hash of the certificate's DER encoding.sha256String. SHA-256 hash of the certificate's DER encoding.isBuiltInRootBoolean. true if the certificate is one of the trust roots installed in the browser, false otherwise.
issuerString. Name of the organization that issued this certificate, represented as a Distinguished Name and formatted as a comma-separated list of Relative Distinguished Names, each of the form "type=value".rawDERArray of Number. If webRequest.getSecurityInfo() was called with the rawDER option present and set to true, this will contain the DER encoding of the certificate.serialNumberString. The certificate's serial number.subjectString. Name of the organization that issued this certificate, represented as a Distinguished Name and formatted as a comma-separated list of Relative Distinguished Names, each of the form "type=value".subjectPublicKeyInfoDigestObject. An object containing the following properties:
sha256String. Base64 encoded SHA-256 hash of the DER-encoded public key info.validityObject. Validity period for the certificate. An object containing the following properties:
startNumber. The start of the certificate's validity period, in milliseconds since the epoch.endNumber. The end of the certificate's validity period, in milliseconds since the epoch.| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
CertificateInfo |
No |
No |
62 |
? |
No |
No |
? |
? |
62 |
? |
? |
? |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webRequest/CertificateInfo