Skip to content

Instantly share code, notes, and snippets.

@jasonkit
Created November 9, 2020 09:30
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 jasonkit/73d41aa8076de394e67b0bdee24a1731 to your computer and use it in GitHub Desktop.
Save jasonkit/73d41aa8076de394e67b0bdee24a1731 to your computer and use it in GitHub Desktop.
Create CSR and plain-text private key
#!/bin/sh
CERT_NAME=$1
openssl req -new \
-keyout ${CERT_NAME}.key -nodes \
-out ${CERT_NAME}.csr \
-subj "/CN=${CERT_NAME}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment