Using Boto3 to get cups.crt, cups.key and cups.trust

0

I'm writing an IoT Wireless Gateway provisioning script using Boto3 and cannot figure out how to create, download, and update cups.key and cups.trust files.

I've managed to get the cups.crt file using describe_certificate() but I cannot figure out which Boto methods will get me the rest of the certs necessary to connect a gateway.

  • Digging a little deeper, I believe since these are only available once that I need to capture them when creating using create_keys_and_certificate(), which I have working now..

    However, a new question is create_keys_and_certificate() gives me:

    • certificatePem
    • PrivateKey
    • PublicKey

    And I'm not clear on how these correspond to cups.key, cups.trust and cups.crt. Is this correct? certificatePem = cups.crt PrivateKey = cups.key PublicKey = cups.trust? Or is cups.trust a different certificate not offered by the create_keys_and_certificate() response?

2개 답변
0
AWS
전문가
답변함 일 년 전
0

Hi. You can find a complete working example here: https://github.com/aws-samples/aws-iot-greengrass-component-lorawan-provisioning/blob/master/artifacts/main.py. It's a Greengrass component, but it does everything you need. In this case, the gateway self-provisions.

profile pictureAWS
전문가
Greg_B
답변함 일 년 전

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

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

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

관련 콘텐츠