You can do this via openssl:

  1. Install openssl package (if you are using Windows, download binaries here).
  2. Generate private key: openssl genrsa 2048 > private.pem
  3. Generate the self signed certificate: openssl req -x509 -days 1000 -new -key private.pem -out public.pem
  4. If needed, create PFX: openssl pkcs12 -export -in public.pem -inkey private.pem -out mycert.pfx

Note: Use Windows command prompt.

Sources:

https://stackoverflow.com/questions/14267010/how-to-create-self-signed-ssl-certificate-for-test-purposes

Last modified: December 2, 2020

Author

Comments

Write a Reply or Comment