zer.ooo-web/bin/create-csr
Corne Oppelaar 6cf8f4c8ca [wip]
2016-04-05 02:19:21 +02:00

7 lines
192 B
Bash
Executable file

#!/usr/bin/env bash
if [ -z "$3" ]; then
echo "Usage: $0 [commonname] [csr path] [key path]";
exit 1;
fi
openssl req -sha256 -keyout $3 -nodes -newkey rsa:2048 -out $2 -subj "/CN=$1"