iron.git

ref: 2e6e0c288526cec62c5ac2906d3351e4d624a033

key_exchange/ecdh/kx-export-pub


#! /bin/bash 

cd $(dirname $0)
KEYS_DIR=./keys

if [ "$#" != 1 ]; then
	echo "Usage: $0 "
	exit 1
fi

test -d ${KEYS_DIR} || mkdir -p ${KEYS_DIR}

profile=$1

#openssl pkey -in ${KEYS_DIR}/"${profile}.pem" -pubout -out ${KEYS_DIR}/"${profile}-pub.pem"
openssl ec -in ${KEYS_DIR}/"${profile}.pem" -pubout -out ${KEYS_DIR}/"${profile}-pub.pem"