Comments (4)
Sorry to reply late.
After verifying the Token, you can check the corresponding certArn field based on seriaNumber. If the certArn field is not empty, the certificate is refused to be issued to the device. If the certArn field is empty, it proves that no certificate has been requested. Use this method to ensure that a seriaNumber has only one certificate.
from aws-iot-certificate-vending-machine.
Hi, the lastest version have realize my requirement which ensure one serialNumber only has one Certificate.
When one serialNumer apply one Certificate successfully, the next time I reqeust the same url, it will reply "null", same as this issure #6
My question is which function check the serialNumber has apply for one certificate.
As I know:
- fucntion applycert focus on "create Apply cert & Attach thing, policy"
- function putCertinfo focus on "Put IoT cert info into Dynamodb"
from aws-iot-certificate-vending-machine.
There is no check for that. I've implemented that kind of checks by myself. By the way, we should discuss that should it response an error or the certs again? Maybe the device lost its certs and asking for them again.
I'll create a PR today for some checks, covers #6 and #7. Keep in mind that this lambda implementation isn't production-ready. There are lots of things to do and discuss for an healthy IoT device lifecycle.
from aws-iot-certificate-vending-machine.
@eercanayar , so much agree with you.
Maybe the device lost its cert or saved its cert failed, we should consider more abnormal scenarios.
For the topic of healthy IoT device lifecycle, can you give some best practices?
from aws-iot-certificate-vending-machine.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-iot-certificate-vending-machine.