makecert 349 B

12345678
  1. #!/bin/sh
  2. #
  3. # Use this script to create a self-signed certificate (ssl.crt) and key file (ssl.key)
  4. # Replace "example.com" with the host name you'd like for your certificate.
  5. #
  6. openssl genrsa -out ssl.key 2048
  7. openssl req -new -key ssl.key -out ssl.csr -subj "/CN=example.com"
  8. openssl x509 -req -days 365 -in ssl.csr -signkey ssl.key -out ssl.crt