Skip to content
Discussion options

You must be logged in to vote

Here is a full working example for creating self-signed RSA key and x509 certificate that works on an ESP8266 running micropython. See the attached config files, too.

This is confirmed to work with v1.27.0 for ESP8266, downloaded from micropython.org, running on an Adafruit Huzzah breakout. I have not tried it with the 1MiB or 512KiB versions of the firware; boards like the ESP-01 are so resource constrained, I don't touch them these days.

#generate the RSA private key
openssl genpkey -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out priv.key

#Convert the private key to PKCS#1 and DER
#THIS IS THE CRUCIAL STEP FOR THE KEY ON AN ESP8266
openssl rsa -inform PEM -outform DER -t…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@DoubleVee73
Comment options

@stonehippo
Comment options

@stonehippo
Comment options

@projectgus
Comment options

Answer selected by stonehippo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants