Udostępnij za pośrednictwem


X509CertificateInfo Class

Definition

Representation of a single X509 Certificate Info and their accessors for the Device Provisioning Service.

public class X509CertificateInfo
type X509CertificateInfo = class
Public Class X509CertificateInfo
Inheritance
X509CertificateInfo

Examples

This info contains a set of parameters, The following JSON is an example of the X509 certificate info.

{
    "subjectName": "CN=ROOT_00000000-0000-0000-0000-000000000000, OU=Azure IoT, O=MSFT, C=US",
    "sha1Thumbprint": "0000000000000000000000000000000000",
    "sha256Thumbprint": "validEnrollmentGroupId",
    "issuerName": "CN=ROOT_00000000-0000-0000-0000-000000000000, OU=Azure IoT, O=MSFT, C=US",
    "notBeforeUtc": "2017-11-14T12:34:18Z",
    "notAfterUtc": "2017-11-20T12:34:18Z",
    "serialNumber": "000000000000000000",
    "version": 3
}

Remarks

User receive this info from the provisioning service as result of X509 operations.

Constructors

X509CertificateInfo()

For unit testing.

Properties

IssuerName

Issuer distinguished name.

NotAfterUtc

The date on which the certificate is no longer valid.

NotBeforeUtc

The date on which the certificate becomes valid.

SerialNumber

The serial number.

Sha1Thumbprint

SHA-1 hash value of the certificate as a hexadecimal string.

SHA1Thumbprint

SHA-1 hash value of the certificate as a hexadecimal string.

Sha256Thumbprint

SHA-256 hash value of the certificate as a hexadecimal string.

SHA256Thumbprint

SHA-256 hash value of the certificate as a hexadecimal string.

SubjectName

Distinguished name from the certificate.

Version

The X509 format version.

Applies to