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,490 points
639 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,620 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,240 points
9,459 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,240 points
2,345 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,130 points
2,525 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 22, 2018 in IoT (Internet of Things) by Shubham
• 13,490 points
744 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,160 points
754 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 24, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
879 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,620 points
3,012 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP