![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=1738884746-cwWP6B7S0HbPEz6lhdR7Sah06IaO9wn6-0-b64c798dcee2da08e6717b7d2806efd8)
- 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=1738884746-92red5YlcuMGsU3LmBp1XzovbRN8SWAY-0-84da3b5406536973bba711e7aeba39bd)
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=1738884746-CV9CyougZnVR9CHk7zz5bRf0e6twRI2z-0-cb77ff887ca0af77b0995e1b12006c2c)
The next step is to write a program. We will do so in the next section.