Created
April 24, 2019 12:51
-
-
Save kaz3w/1d62c01141f8ec58b6f0992a5d391288 to your computer and use it in GitHub Desktop.
Generating an RS256 key for Google Cloud IoT Core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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