- Newest
- Most votes
- Most comments
Hi. Devices can perform discovery to retrieve the CA: https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-discover-api.html. So this is one way to ensure devices will keep working if you force rotation of the CA.
If you want more control over the CA (such as a longer validity than 5 years), and/or your devices can't perform discovery, you can use your own CA for the local broker: https://docs.aws.amazon.com/greengrass/v2/developerguide/connecting-to-mqtt.html#use-your-own-CA
Thank you for your clear and helpful answer.
To confirm my understanding: For rotating the self-generated CA, I need to redeploy the aws.greengrass.clientdevices.Auth component before its certificate expires. This action generates a new CA, which client devices can then retrieve via the Discovery API to reconnect.
Is this understanding correct? If so, I would appreciate any guidance on the best practices for this process, specifically: Monitoring: How can we best monitor the CA's expiration date? Timing: Is there a recommended window to perform the redeployment before expiration? Disruption: How can we minimize client disconnections during this rotation?
Any advice on these operational aspects would be greatly appreciated. Thanks again.
Hi there. Thanks for bring up this question.
Recommended approach: Bring your own CA, as this allows you to configure the CA's validity period for more than 5 years, which addresses your core requirement.
Alternative workaround: You can delete the entire Certificate Distribution Agent (CDA) work directory, which will force the CA to rotate on Greengrass restart. You could deploy a custom component that defines a bootstrap lifecycle to delete it, forcing CDA to generate a new CA. However, this workaround still requires two deployments: (1) deployment to deploy the custom component, and (2) deployment to remove the custom component. This makes it no better than simply redeploying the CDA component directly.
The custom CA approach remains the most efficient solution for your use case. Let me know if you need further guidance.
answered a year ago
Relevant content
- AWS OFFICIALUpdated 2 years ago

For which reasons do you need to rotate this certificate?
Thank you for your comment. My question is about proactive lifecycle management, based on my technical investigation.
Here's a brief summary of what I found: openssl Check: I used openssl on ca.pem and confirmed it has a fixed 5-year validity. Code Review: I reviewed the component's source code (e.g., CertificateStore.java) but found no built-in logic for a renewal process.
Hypothesis: This suggests the only way to get a new CA is to redeploy the component. My core concern is that this redeployment would instantly disconnect all client devices.
Based on this, I would appreciate your guidance. If there is a recommended procedure for a graceful rotation that I have missed, please let me know. Conversely, if my understanding of the risks or the component's intended behavior is incorrect, I would be grateful if you could correct me.