Error when Creating a Code-Signing Certificate for the Espressif ESP32

I encountered this problem too. It seems to be a problem with the openssl library that is preinstalled on your system. Here’s what worked for me:

  1. Install homebrew (if you haven’t already)
  2. brew install openssl
  3. Run brew --prefix openssl to get the location of the binary you just installed (for me this was /usr/local/opt/openssl@1.1/bin/openssl)
  4. Run the genpkey command using the path to the binary /usr/local/opt/openssl@1.1/bin/openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256 -pkeyopt ec_param_enc:named_curve -outform PEM -out ecdsasigner.key
2 Likes