N
N
Nodle Chain Wiki
Search…
Verifying Certificates
In order to verify the validity of a Child Certificate one has to:
  1. 1.
    Challenge the IoT device to make sure they own the key linked to the certificate, typically this means:
    1. 1.
      Sending a random byte array to sign.
    2. 2.
      Getting the signed bytes.
    3. 3.
      Making sure they are signed with the right key.
  2. 2.
    Verify it is not expired if your certificate includes an expiry date.
  3. 3.
    Verify its signature is correct.
  4. 4.
    Query the chain to make sure that:
    1. 1.
      The Child Key was not revoked.
    2. 2.
      The Root Key was not verified.
To simplify point 3 our nodes includes a JSON RPC call rootOfTrust_isChildCertificateValid to simplify the verification processus. We recommend you to check the demonstration code in JavaScript to see how we use the Polkadot JS SDK to do so.
Last modified 10mo ago
Copy link