Skip to content

Instantly share code, notes, and snippets.

@kaz3w
Created April 24, 2019 12:51
Show Gist options
  • Save kaz3w/1d62c01141f8ec58b6f0992a5d391288 to your computer and use it in GitHub Desktop.
Save kaz3w/1d62c01141f8ec58b6f0992a5d391288 to your computer and use it in GitHub Desktop.
Generating an RS256 key for Google Cloud IoT Core
#!/bin/sh
openssl genpkey -algorithm RSA -out rsa_private.pem -pkeyopt rsa_keygen_bits:2048
openssl rsa -in rsa_private.pem -pubout -out rsa_public.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment