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 Answers
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
EXPERT
answered 4 months ago
  • 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
EXPERT
answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions