Source code for my website.
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.
 
 
 
 
 

12 lines
461 B

  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2020 Dusan Mitrovic <dusan@dusanmitrovic.xyz>
  4. # Licensed under the terms of the GNU GPL version 3 only
  5. #
  6. # Generate a self signed certificate for use with express for local development
  7. certificate_directory="./certificates"
  8. [ ! -d $certificate_directory ] && mkdir $certificate_directory
  9. openssl req -x509 -nodes -newkey rsa:4096 -keyout "$certificate_directory/private.pem" -out "$certificate_directory/certificate.pem" -days 365