Skip to content

IoT Custom Domain Configuration for iot:CredentialProvider endpoint

1

I have had success with registering a custom domain for the iot:Data-ATS endpoint and connecting a device with X509 certificates to domain: iot.example.com For that process I requested an ACM certificate to iot.example.com, created an IoT Domain Configuration, and added a Route 53 record from iot.example.com to aws iot describe-endpoint --endpoint-type iot:Data-ATS --output text

Now I am trying to do a similar custom domain for the iot:CredentialProvider endpoint to domain: creds.example.com. I followed the same steps as above, substituting credential provider endpoint values in place of data endpoint values. When I try to assume a role using this credential provider endpoint, I run into an error:

Server certificate:
  subject: CN=*.credentials.iot.us-east-2.amazonaws.com
  start date: Oct 14 00:00:00 2024 GMT
  expire date: Oct 14 23:59:59 2025 GMT
  subjectAltName does not match creds.example.com
 SSL: no alternative certificate subject name matches target host name 'creds.example.com'

Are custom domains supported for the iot credential provider?

1 Answer
2
Accepted Answer

Custom domains are not explicitly supported for the IoT credential provider endpoint (iot:CredentialProvider) in the same way they are for the data endpoint (iot:Data-ATS).

The process you followed for setting up a custom domain for the data endpoint cannot be directly applied to the credential provider endpoint. The error message you're receiving suggests that the SSL certificate being presented by the server does not match the custom domain name you're trying to use (creds.example.com).

Domain configurations in AWS IoT Core are primarily designed for data endpoints and custom authentication scenarios. The documentation and API descriptions focus on configuring domains for data transfer, MQTT connections, and custom authentication, but do not mention support for customizing the credential provider endpoint.

The credential provider endpoint is a specialized service within AWS IoT that is used for assuming roles and obtaining temporary credentials. It appears that this service may not support the same level of customization as the data endpoints.

Given the error you're encountering and the lack of specific documentation for customizing the credential provider endpoint, it's likely that custom domains are not supported for the iot:CredentialProvider endpoint at this time.

To resolve your issue, you may need to continue using the default AWS-provided endpoint for credential provider services. If a custom domain for credential provision is critical for your use case, you might want to contact AWS support for further clarification or to request this feature if it's not currently available.
Sources
What is a domain configuration? - AWS IoT Core
Domain configurations - AWS IoT Core
Creating and configuring customer managed domains - AWS IoT Core

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.