Skip to content

Instantly share code, notes, and snippets.

@Bitnik212
Created July 4, 2022 12:16
Show Gist options
  • Save Bitnik212/223c42fdd4e96a3fc027eb38ff43d071 to your computer and use it in GitHub Desktop.
Save Bitnik212/223c42fdd4e96a3fc027eb38ff43d071 to your computer and use it in GitHub Desktop.
Gen private and public keys
#! /bin/bash
openssl genrsa -out rsaPrivateKey.pem 2048
openssl rsa -pubout -in rsaPrivateKey.pem -out publicKey.pem
openssl pkcs8 -topk8 -nocrypt -inform pem -in rsaPrivateKey.pem -outform pem -out privateKey.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment