blob: e54b56b681d800fe88bea996cd1c31907eb9818b (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
set -o errexit
set -o nounset
[ -f $1-private.pem ] && { echo "$0: $1-private.pem exists, exiting"; exit 1; }
touch $1-private.pem
chmod 600 $1-private.pem
openssl ecparam -name prime256v1 -genkey -noout -out $1-private.pem
openssl ec -in $1-private.pem -pubout -out $1.pem
|