CLI command for RSA-2048 bit key in AWS IOT

0

Hi AWS,

There is CLI command for private key and public key in AWS IOT on cloud9 as

aws iot create-keys-and-certificate --set-as-active --certificate-pem-outfile certificate.pem.crt --private-key-outfile private.pem.key

But if I need to get the RSA-2048 bit key I am downloading it manually from Certificate section. Is there a CLI command for RSA-2048 bit key generation, I am unable to view one.

Please help me to get CLI command for RSA-2048 bit key in AWS IOT

2 回答
0

Hi Balaji,

with the above command you are mentioning you are storing the RSA private key in the file private.pem.key. Or are you looking for something else?

Cheers,
Philipp

AWS
专家
已回答 5 个月前
  • Hi AWS team, Please help me to get CLI command for RSA-2048 bit key in AWS IOT?

0

Hi Balaji,

in case you are looking for an option to download the private key from the AWS IoT Core service, that's not possible. The private key is only issued once when you call the command and never stored. This is also mentioned in the documentation:

Note This is the only time IoT issues the private key for this certificate, so it is important to keep it in a secure location.

Cheers,
Philipp

AWS
专家
已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则