![Learning AWS IoT](https://wfqqreader-1252317822.image.myqcloud.com/cover/286/36700286/b_36700286.jpg)
上QQ阅读APP看书,第一时间看更新
Creating a security certificate
Before we use AWS IoT, we should create a security certificate. Then, this certificate will be attached to our registered IoT device. Follow these steps:
- On AWS IoT Management Console, open your IoT device. Click on the Security option on the left-hand menu. You should see a form, as shown in the following screenshot:
![](https://epubservercos.yuewen.com/0A2E58/19470398608911406/epubprivate/OEBPS/Images/0491bbe6-f6a4-432a-877e-016dca5b8046.png?sign=1738941370-njce56yMlOYHMz59MsnbL33N6GcnoDpc-0-accc867d64ef17a0d14466c90f2ef6e9)
- You should see a Create certificate button. Click on this button. Then, AWS IoT will generate private and public keys for your IoT device. Please download all certificate and key files:
![](https://epubservercos.yuewen.com/0A2E58/19470398608911406/epubprivate/OEBPS/Images/8f673261-e933-4318-a9fe-ae4e7b5dec12.png?sign=1738941370-XpTwp65jtdiWIpBSInxQfomdLj2aEwKm-0-c8e6e00c9c91cdfec5fedbd6b4531c84)
These certificate and key files will be used in our program to access the AWS IoT server. You should get four files, as follows:
-
- Certificate file (*.pem)
- Certificate public key file (*.key)
- Certificate private key file (*.key)
- Root certificate (*.pem) or (*.crt)
- Put all these files into a folder. Our program will access these files:
![](https://epubservercos.yuewen.com/0A2E58/19470398608911406/epubprivate/OEBPS/Images/946592e2-47ee-4b8f-9e2c-31e67cf362f5.png?sign=1738941370-QKvHh8KaXZnZt1qsKaYVmijLfiaOWZc5-0-b874272e7fef1a71a43c1c746c309e4d)
The next step is to write a program. We will do so in the next section.