Implement X.509 Just-in-Time Provisioning (JITP) in AWS IoT Core with a CA-signed device certificate

domain: aws-iot · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Register your CA certificate in AWS IoT Core with the 'aws iot register-ca-certificate' command; enable automatic registration and choose JITP mode.
  2. Attach a provisioning template to the CA certificate (as a JSON string in --registration-config) that specifies the thing name pattern, policy ARN, and an optional IAM role for the provisioning service to assume.
  3. Pre-install each device with a unique X.509 certificate signed by the registered CA and the CA's root certificate chain.
  4. On first MQTT connect, AWS IoT Core detects the unregistered device certificate, triggers JITP, creates the thing and registers the certificate using the attached template — no Lambda function required.
  5. The initial connection is rejected (the device must reconnect) after provisioning completes; design device firmware to automatically reconnect after a short delay.
  6. For custom business logic (allow-list checks, database registration), use JITR instead: listen for registration lifecycle events on $aws/events/certificates/registered/CA_CERT_ID and route them to a Lambda via an IoT Rule.

Known gotchas

Related routes

Connect an IoT device to AWS IoT Core using MQTT over mutual TLS with an X.509 certificate
aws.amazon.com · 6 steps · unrated
Authenticate MQTT and HTTPS clients to AWS IoT Core using a Lambda-backed custom authorizer instead of X.509 certificates
docs.aws.amazon.com · 6 steps · unrated
Implement device attestation using X.509 certificates with a Hardware Security Module (HSM) binding
iot-security · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans