Skip to content

Instantly share code, notes, and snippets.

@ian-r-rose
Created November 1, 2023 15:38
Show Gist options
  • Save ian-r-rose/35d49bd253194f57b57e9e59a595bed8 to your computer and use it in GitHub Desktop.
Save ian-r-rose/35d49bd253194f57b57e9e59a595bed8 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -euxo pipefail
openssl genrsa 2048 | openssl pkcs8 -topk8 -v2 des3 -inform PEM -out $1.p8 -nocrypt
openssl rsa -in $1.p8 -pubout -out $1.pub
cat $1.p8
cat $1.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment