次の方法で共有


X509Certificates クラス

定義

単一の Device Provisioning Service X509 プライマリ証明書とセカンダリ証明書の表現。

public class X509Certificates
type X509Certificates = class
Public Class X509Certificates
継承
X509Certificates

次の JSON は、このクラスの結果の例です。

{
    "primary": {
        "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";
    },
    "secondary": {
        "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 に対して返す情報の例です。

{
    "primary": {
        "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
         }
    },
    "secondary": {
        "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 証明書の表現を作成します。 プライマリ証明書とセカンダリ証明書を受け取ることができますが、プライマリのみが必須です。

プロパティ

Primary

プライマリ証明書。

Secondary

セカンダリ証明書。

適用対象