m5stack / Core2-for-AWS-IoT-Kit

Accompanying code for use with AWS IoT Kit content. Works with PlatformIO and ESP-IDF v4.2.
https://m5stack.com/collections/m5-core/products/m5stack-core2-esp32-iot-development-kit-for-aws-iot-edukit
MIT License
127 stars 66 forks source link

Creating cert cannot just leave all values blank #6

Closed gherlein closed 3 years ago

gherlein commented 3 years ago

"A window will open asking for additional information to include into the certificate. For purposes of this tutorial, we will leave all fields blank."

147dda0c29e5:esp_cryptoauth_utility gherlein$ openssl req -new -x509 -key output_files/signerkey.pem -out output_files/signercert.crt -days 365 You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank.

Country Name (2 letter code) []: State or Province Name (full name) []: Locality Name (eg, city) []: Organization Name (eg, company) []: Organizational Unit Name (eg, section) []: Common Name (eg, fully qualified host name) []: Email Address []: error, no objects specified in config file problems making Certificate Request

gherlein commented 3 years ago

Works if you just enter a two digit country code

rashedtalukder commented 3 years ago

Might depend on your version of OpenSSL. We tried with multiple users and didn't see this issue arise. I've updated based on your comments: https://edukit.workshop.aws/en_uk/blinky-hello-world/device-provisioning.html