Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

I got some error when executing aws-iot-setup.

I got some error below when executing aws-iot-setup. please let me know how to fix this security error.

$ ../../../mos aws-iot-setup --aws-region ap-northeast-2
Using port COM10
AWS region: ap-northeast-2
Connecting to the device...
esp8266 BEDDC214787C running temp_humidity
Current MQTT config: {
"clean_session": true,
"client_id": "",
"cloud_events": true,
"enable": false,
"keep_alive": 60,
"max_qos": 2,
"pass": "",
"reconnect_timeout_max": 60,
"reconnect_timeout_min": 2,
"recv_mbuf_limit": 3072,
"require_time": false,
"server": "iot.eclipse.org:1883",
"ssl_ca_cert": "",
"ssl_cert": "",
"ssl_cipher_suites": "",
"ssl_key": "",
"ssl_psk_identity": "",
"ssl_psk_key": "",
"user": "",
"will_message": "",
"will_topic": ""
}
Current AWS Greengrass config: {
"enable": false,
"reconnect_timeout_max": 60,
"reconnect_timeout_min": 2
}
Generating ECDSA private key
Generating certificate request, CN: esp8266_14787C
Asking AWS for a certificate...
Error: UnrecognizedClientException: The security token included in the request is invalid.
status code: 403, request id: f2c270ce-5504-11e9-a6d3-97cb1edb9164
/go/src/cesanta.com/mos/aws/aws.go:201: failed to obtain certificate from AWS
/go/src/cesanta.com/mos/aws/aws.go:373: failed to generate certificate
/go/src/cesanta.com/mos/main.go:178: aws-iot-setup failed

Sign In or Register to comment.