Skip to content

Instantly share code, notes, and snippets.

@Bradley-D
Last active August 31, 2022 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bradley-D/903e7489c705fa1bec546dd4d1c8e4a9 to your computer and use it in GitHub Desktop.
Save Bradley-D/903e7489c705fa1bec546dd4d1c8e4a9 to your computer and use it in GitHub Desktop.
This will help generate a private pem and then you can extract the public key and save it
// This will generate a private PEM
openssl genrsa -out PATH-LOCATION/file_name_private.pem 1024
// Now extract public key from the private pem and save it to a file
openssl rsa -in PATH-LOCATION/file_name_private.pem -pubout > PATH-LOCATION/file_name_public.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment