Creating Code Signing Certificate for ESP32

I am following “Creating a Code-Signing Certificate for the Espressif ESP32” of the freertos user guide. I followed instruction to the letter. Created cert_config.txt. Ran the commands to produce the ECDSA code-signing private key and certificate using openssl v1.1.1.

When I try run import-certificate I get:

Invalid base64: "-----BEGIN CERTIFICATE-----
MIIBbTCCARSgAwIBAgIUKjasRmpogUX1by954zbUITPmx8kwCgYIKoZIzj0EAwIw
JDEiMCAGA1UEAwwZZGV2b24udmVobG93QHJvYm90aWNhbC5pbzAeFw0yMDAzMDUy
MDAwMjRaFw0yMTAzMDUyMDAwMjRaMCQxIjAgBgNNAAMMGWRldm9uLnZlaGxvd0By
b2JvdGljYWwuaW8wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQ8K6SgwPX53e0T
eNw3MrOsWF762aHcjnm8TY4H1zs9KWkxw0hrJXKm6Sg6XpiFgA1j5XSs32o2KOQG
apY9YpFgoyQwIjALBgNVHQ8EBAMCB4AwEwYDVR0lBAwwCgYIKwYBBQUHAwMwCgYI
KoZIzj0EAwIDRwAwRAIgA2FOtMm2fZXLwz3+LXUkBRCjKl6bnTaiFJnQdaRfCToC
IDStWaB9zGjv00+0oPY3VS9yr80npgp65VVKUD2QknD7
-----END CERTIFICATE-----
"

Not sure where to go from here, any advise or pointers would be great.

1 Like

@DevVeh,

Thanks for bringing this issue to our attention. By looking at similar issues faced by others, it seems like an issue with aws cli. This forum post may help you. Please let us know if you are facing any more issues.

1 Like