Compartir a través de


X509Certificates Clase

Definición

Representación de un único certificado principal y secundario de Device Provisioning Service X509.

public class X509Certificates
type X509Certificates = class
Public Class X509Certificates
Herencia
X509Certificates

Ejemplos

El siguiente json es un ejemplo del resultado de esta clase.

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

Después de enviar un certificado X509 correctamente, el servicio de aprovisionamiento devolverá para el X509CertificateInfo certificado principal y secundario. El usuario puede obtener esta información de esta clase y, una vez más, solo la información principal es obligatoria. El siguiente JSON es un ejemplo de la información que devolverá el servicio de aprovisionamiento para 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
         }
    }
}

Comentarios

Esta clase crea una representación de un certificado X509. Puede recibir el certificado principal y secundario, pero solo el principal es obligatorio.

Propiedades

Primary

Certificado principal.

Secondary

Certificado secundario.

Se aplica a