Created
November 9, 2020 09:30
-
-
Save jasonkit/73d41aa8076de394e67b0bdee24a1731 to your computer and use it in GitHub Desktop.
Create CSR and plain-text private key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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