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

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. # generate key
  2. openssl ecparam -genkey -name secp256r1 -out k.pem
  3. # print private key and public key
  4. openssl ec -in k.pem -noout -text
  5. # private key to a pem file
  6. openssl ec -in k.pem -pubout -out p.pem
  7. # create a certificate request for key
  8. openssl req -new -key k.pem -out call.ampr.org.req.pem -config openssl-csr.conf
  9. # rehash ca dir after installing certificate
  10. c_rehash ./ca/