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.
 
 
 
 
 
 

23 lines
596 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 call.ampr.org.req.pem -config openssl-csr.conf
# print request
openssl req -noout -text -in call.ampr.org.req.pem
# rehash ca dir after installing certificate
c_rehash ./ca/
# self sign a cert (not recommended)
openssl req -x509 -key k.pem -out call.ampr.org.cert.pem -config openssl-csr.conf -extensions v3_req