Skip to content

Instantly share code, notes, and snippets.

@zenthangplus zenthangplus/rs256.sh
Last active Jan 15, 2019

Embed
What would you like to do?
How to generate RS256 Key Pair for Mac & Linux
#!/usr/bin/env bash
# Generate rsa keys pair
ssh-keygen -t rsa -b 4096 -f rs256.rsa
# Don't add passphrase
openssl rsa -in rs256.rsa -pubout -outform PEM -out rs256.rsa.pub
# Done
cat rs256.rsa
cat rs256.rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.