Skip to content

Instantly share code, notes, and snippets.

@kephin
Created October 24, 2019 08:44
Show Gist options
  • Save kephin/df884e2f6390e3d1de4fc841fbb08fcf to your computer and use it in GitHub Desktop.
Save kephin/df884e2f6390e3d1de4fc841fbb08fcf to your computer and use it in GitHub Desktop.

Revisions

  1. kephin created this gist Oct 24, 2019.
    7 changes: 7 additions & 0 deletions genKeys.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # openssl
    openssl genrsa -out private.pem 2048
    openssl rsa -in private.pem -pubout -out public.pem

    # ssh-keygen
    ssh-keygen -t rsa -P "" -b 4096 -m PEM -f jwtRS256.key
    ssh-keygen -e -m PEM -f jwtRS256.key > jwtRS256.key.pub