Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create self signed SSL certificate for test purposes? [closed]

How to easily create self signed SSL certificate for testing purposes?

like image 626
Dima Stopel Avatar asked Jan 10 '13 20:01

Dima Stopel


Video Answer


1 Answers

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

like image 57
Dima Stopel Avatar answered Nov 11 '22 17:11

Dima Stopel