1 2 3 4
#!/bin/sh openssl ecparam -name prime256v1 -genkey -noout -out $1-private.pem openssl ec -in $1-private.pem -pubout -out $1.pem