- Newest
- Most votes
- Most comments
Using ECC keys instead of RSA keys with AWS IoT Greengrass can indeed lead to some challenges, especially when running the AWS IoT Device Tester (IDT) for Greengrass. The issues you're experiencing are not uncommon when switching to ECC keys.
First, it's important to note that AWS IoT Greengrass does support ECC keys, so the core functionality should work. However, the IDT tests may not be fully optimized for ECC key usage, which could explain the failures you're seeing.
The failures you're encountering seem to be primarily related to deployment completion timeouts. This suggests that the system might be taking longer to process or validate the ECC certificates during various operations.
Here are some steps you can try to address these issues:
-
Increase timeouts: If possible, try to increase the timeout values in your IDT configuration. This might allow more time for operations to complete when using ECC keys.
-
Check Greengrass logs: Examine the Greengrass logs on your device for any specific errors or warnings related to certificate processing or TLS connections.
-
Verify certificate chain: Ensure that the full certificate chain is properly set up and accessible to the Greengrass core. This includes the device certificate, any intermediate certificates, and the root CA certificate.
-
Update Greengrass and IDT: Make sure you're using the latest versions of both the Greengrass nucleus and IDT. While you're already on a recent version (Nucleus 2.12.0 and IDT 4.9.4), it's worth checking if there are any newer versions available that might have improved ECC support.
-
AWS side configuration: On the AWS side, ensure that the IoT policies attached to your thing and certificate allow all necessary actions. The policy should include permissions for connecting, publishing, subscribing, and receiving messages.
-
IDT access policy: Review your IDT access policy to ensure it includes all necessary permissions for running tests with ECC certificates. You may need to add or modify permissions related to certificate operations.
-
Nucleus configuration: Double-check your nucleus configuration (generated_config.yml) to ensure it correctly references the ECC key and certificate locations.
-
Consider testing individual components: Instead of running the full IDT suite, try running individual test groups or tests to isolate which specific operations are failing with ECC keys.
If these steps don't resolve the issue, you may need to contact AWS support for further assistance. They might be able to provide more specific guidance on using ECC keys with Greengrass and IDT, or they may need to update the IDT tests to better accommodate ECC key usage.
Remember that while ECC keys offer some advantages, they're not as widely used as RSA keys in all scenarios. If the issues persist and are blocking your development or deployment, you might need to consider temporarily reverting to RSA keys for testing purposes while working with AWS to resolve the ECC-related issues.
Sources
Configure your device to run IDT tests - AWS IoT Greengrass
Configure the AWS IoT Greengrass core - AWS IoT Greengrass
Troubleshooting AWS IoT Greengrass - AWS IoT Greengrass
Relevant content
- asked 4 years ago
- asked 4 years ago
- AWS OFFICIALUpdated a year ago
