From a5b87347c8fff4482adcac06287cc3efa1a0aa34 Mon Sep 17 00:00:00 2001 From: anthonyvercolano Date: Mon, 13 Nov 2017 09:02:55 -0800 Subject: [PATCH] Fix for sample and documentation for attestation. --- provisioning/service/samples/create_enrollment_group.js | 4 ++-- provisioning/service/src/interfaces.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/provisioning/service/samples/create_enrollment_group.js b/provisioning/service/samples/create_enrollment_group.js index f6239ea17..329d17de8 100644 --- a/provisioning/service/samples/create_enrollment_group.js +++ b/provisioning/service/samples/create_enrollment_group.js @@ -9,13 +9,13 @@ var provisioningServiceClient = require('azure-iot-provisioning-service').Provis var serviceClient = provisioningServiceClient.fromConnectionString(process.argv[2]); var enrollment = { - registrationId: 'first', + enrollmentGroupId: 'first', attestation: { type: 'x509', x509: { signingCertificates: { primary: { - certificate: fs.readFileSync(process.argv[2], 'utf-8').toString() + certificate: fs.readFileSync(process.argv[3], 'utf-8').toString() } } } diff --git a/provisioning/service/src/interfaces.ts b/provisioning/service/src/interfaces.ts index 285fc0e0e..8ba5cd7bd 100644 --- a/provisioning/service/src/interfaces.ts +++ b/provisioning/service/src/interfaces.ts @@ -35,7 +35,7 @@ export interface TpmAttestation { * security hardware, generally at the time of manufacture. This private portion of the endorsement key is never * released outside of the TPM. The public portion of the endorsement key helps to recognize a genuine TPM. * - * The endorsement key is a base64 encoded. + * The endorsement key is a base64 encoded value. */ endorsementKey: string; /**