You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
386 B

# generate key
openssl ecparam -genkey -name secp256r1 -out k.pem
# print private key and public key
openssl ec -in k.pem -noout -text
# private key to a pem file
openssl ec -in k.pem -pubout -out p.pem
# create a certificate request for key
openssl req -new -key k.pem -out -config openssl-csr.conf
# rehash ca dir after installing certificate
c_rehash ./ca/