Use our own CA cert with Greengrass aws.greengrass.FleetProvisioningByClaim.jar

0

Hi, I've create and registered a CA certificate in IoT core. When I use this for greengrass fleet provisioning it fails with

java.lang.RuntimeException: software.amazon.awssdk.crt.mqtt.MqttException: TLS (SSL) negotiation failed

The documentation is not very clear about how to use it with Greengrass. But the existence of "Automatic certificate registration" when doing "Register CA certificate" suggests it should work and I'm missing something. Any advice much appreciated.

ncarn
질문됨 2년 전540회 조회
2개 답변
0

UPDATE - Looked into this a bit more, seems like you're trying to use your own CA because you'd register your own client certificates signed by that CA to use for your devices, in which case, the Greengrass aws.greengrass.FleetProvisioningPlugin will not help, you can use this plugin if you're okay using the Amazon Root CA and let IoT Core generate client certificates for you from the claim certificate and provisioning template. If that doesn't work for you, you may be looking for JITP/JITR options IoT Core provides https://docs.aws.amazon.com/iot/latest/developerguide/jit-provisioning.html and https://docs.aws.amazon.com/iot/latest/developerguide/auto-register-device-cert.html

AWS
답변함 2년 전
  • Thanks @shagupta-aws for the information. If we bake the claim cert and key into lots of devices and then it is deleted or revoked (accidently) is there a way to restore it if it's an Amazon issued certificate? I guess that was my only reason for using a custom CA.

0

Hi @ncarn,

Thanks for using Greengrass. It's hard to tell just by the error message why it failed, but common reasons for this issue are using the incorrect IoT data endpoint or the root CA certificate, could you tell us what configuration options you provided while installing Greengrass using the aws.greengrass.FleetProvisioningByClaim plugin? https://docs.aws.amazon.com/greengrass/v2/developerguide/fleet-provisioning.html As described here, please ensure that you're using the ATS IoT data endpoint and placing the Amazon Root CA certificate on the device you're trying to provision. Did you see the private key and certificate files downloaded on the device, if not, were there any other failure logs in greengrass.log file? It will be helpful if you can share the logs too.

You could also try enabling monitoring for connection failures in CloudWatch to get logs in your AWS account https://docs.aws.amazon.com/iot/latest/developerguide/cloud-watch-logs.html It might not provide information for client side issues but will make troubleshooting easier overall.

AWS
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인