|
1 | 1 | # Fleet provisioning via CSR |
2 | 2 |
|
3 | | -[**Return to main sample list**](../../README.md) |
| 3 | +[**Return to main sample list**](../../../README.md) |
| 4 | + |
| 5 | +*__Jump To:__* |
| 6 | +* [Introduction](#introduction) |
| 7 | +* [Prerequisites](#prerequisites) |
| 8 | +* [Build and Run the Sample](#build-and-run-the-sample) |
| 9 | +* [Fleet Provisioning Detailed Instructions](#fleet-provisioning-detailed-instructions) |
| 10 | + * [Aws Resource Setup](#aws-resource-setup) |
| 11 | + * [Create a certificate-key set from a provisioning claim](#create-a-certificate-key-set-from-a-provisioning-claim) |
| 12 | + * [Create a certificate signing request](#create-a-certificate-signing-request) |
| 13 | + * [Running the sample using a certificate-key set](#running-the-sample-using-a-certificate-key-set) |
| 14 | +* [Usage disclaimer](#️-usage-disclaimer) |
| 15 | + |
4 | 16 | ## Introduction |
5 | 17 | This sample uses the AWS IoT [Fleet provisioning service](https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html) to provision devices using the CreateCertificateFromCsr and RegisterThing APIs. This allows you to create new AWS IoT Core thing resources using a Fleet Provisioning Template. The primary difference between this sample and the basic provisioning sample is that, by using the CreateCertificateFromCsr API, your provisioned certificates can be rooted to the certificate authority of your choice (as opposed to AmazonRootCA1) via the properties of the certificate signing request used. |
6 | 18 |
|
@@ -64,7 +76,7 @@ Note that in a real application, you may want to avoid the use of wildcards in y |
64 | 76 | </details> |
65 | 77 |
|
66 | 78 |
|
67 | | -## Build and run the sample |
| 79 | +## Build and Run the Sample |
68 | 80 |
|
69 | 81 | ### Install the SDK |
70 | 82 | Before building and running the sample, you must first build and install the SDK: |
@@ -254,7 +266,7 @@ And here is the same JSON document, but as a single line for easier copy-pasting |
254 | 266 |
|
255 | 267 | You can use this JSON document as the `<TemplateJSON>` in the AWS CLI command. This sample will assume you have used the template JSON above, so you may need to adjust if you are using a different template JSON. Thankfully, all of these steps need to only be done and, now that they are complete, you will need not perform them again. |
256 | 268 |
|
257 | | -#### Creating a certificate-key set from a provisioning claim |
| 269 | +#### Create a certificate-key set from a provisioning claim |
258 | 270 |
|
259 | 271 | To run the provisioning sample, you'll need a provisioning certificate and key set with sufficient permissions (see the policy at the top). Provisioning certificates are normally created ahead of time and placed on your device, but for this sample, we will just create them on the fly. This is primarily done for example purposes. |
260 | 272 |
|
|
0 commit comments