CLI Provision a Security Certificate - is it working?

0 votes

When I use AWS's CLI to get a security certificate for a IoT Thing I enter:

aws iot​ describe-certificate --certificate-id myCertificateId --output text --query certificateDescription.certificatePem > cert.pem

but I get

usage: aws [options] [parameters] aws: error: argument command: Invalid choice, valid choices are: ...(something)

However, cert.pem file was created, but it's empty. Also, the certificate did show up in the AWS IoT console with the correct myCertificateId.

Did it work correctly? Is something wrong with the AWS CLI args parameter error handling?

Nov 14, 2018 in IoT (Internet of Things) by Shubham
• 13,190 points
19 views

1 answer to this question.

0 votes

There is a somewhat invisible typo in the code on the website, since there is a zero-width space in the command.

aws iot​ describe-certificate [...]

Just make sure that you delete/retype the beginning of the copy/paste command line and you'll be just fine! 

answered Nov 14, 2018 by Upasana
• 8,430 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

What is the maximum message length for a MQTT broker?

It's not entirely clear what you're asking ...READ MORE

answered Jul 17, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
153 views
0 votes
1 answer

AWS IoT login from android MQTT client using IAM is not working

Seeing your comments and questions. I had ...READ MORE

answered Jul 24, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
254 views
0 votes
1 answer

Is it possible to use .Net for the ESP8266?

You could write a C# marshaller, but ...READ MORE

answered Nov 19, 2018 in IoT (Internet of Things) by nirvana
• 3,060 points
109 views
0 votes
1 answer

Detecting when a sensor is not sending data to Orion CB in FiWARE

Orion in itself has no such mechanism ...READ MORE

answered Nov 21, 2018 in IoT (Internet of Things) by Shubham
• 13,190 points
25 views
0 votes
1 answer
0 votes
1 answer

AWS IOT Button Wifi network name

You can read about the complete setup ...READ MORE

answered Oct 12, 2018 in IoT (Internet of Things) by Annie97
• 2,190 points
40 views
0 votes
1 answer

What is the time taken by a 200 byte message for transmission in a beacon-enabled network?

Now, data rates of IEEE 802.15.4 are ...READ MORE

answered Aug 23, 2018 in IoT (Internet of Things) by Upasana
• 8,430 points
32 views
0 votes
1 answer

How safe is it to expose rabbitmq amqp port over the internet?

Talking about whether it is a good ...READ MORE

answered Nov 29, 2018 in IoT (Internet of Things) by Upasana
• 8,430 points
220 views