Skip to content
enginekit edited this page Oct 23, 2018 · 1 revision

see

  1. https://security.stackexchange.com/questions/106525/generate-csr-and-private-key-with-password-with-openssl
  2. https://nodejs.org/api/http2.html

eg .command lines:

  1. generate pem ...

    openssl req -x509 -newkey rsa:2048 -nodes -sha256 -subj '/CN=localhost' -keyout localhost-prikey.pem -out localhost-cert.pem

  2. generate .p12 file from .pem

    openssl pkcs12 -export -out example-cert.p12 -inkey localhost-prikey.pem -in localhost-cert.pem

Clone this wiki locally