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/bash | |
if [ $# -ne 1 ]; then | |
echo "usage: <hostname>" | |
exit 1 | |
fi | |
CN=$1 | |
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:4096 -out ${CN}.key | |
openssl req -new -sha256 -key ${CN}.key -out ${CN}.csr \ |
NewerOlder