你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

X509CertificateWithInfo 类

定义

表示单个设备预配服务 X509 证书及其信息。

public class X509CertificateWithInfo
type X509CertificateWithInfo = class
Public Class X509CertificateWithInfo
继承
X509CertificateWithInfo

示例

以下 JSON 是此类的结果示例。

{
    "certificate": "-----BEGIN CERTIFICATE-----\n" +
                   "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n" +
                   "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n" +
                   "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n" +
                   "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n" +
                   "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n" +
                   "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n" +
                   "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n" +
                   "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n" +
                   "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n" +
                   "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n" +
                   "-----END CERTIFICATE-----\n";
}

将 X509 证书发送到预配服务后,它将返回 X509CertificateInfo。 用户可以从此类获取此信息,

以下 JSON 是预配服务将为 X509 返回的信息的示例。

{
    "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
    }
}

注解

此类创建可包含证书和/或证书信息的 X509 证书的表示形式。

属性

Certificate

证书

Info

证书属性。

适用于