Bladeren bron

Add generate_certificates script

master
dusnm 1 jaar geleden
bovenliggende
commit
a09198a7bb
1 gewijzigde bestanden met toevoegingen van 11 en 0 verwijderingen
  1. +11
    -0
      generate_certificate

+ 11
- 0
generate_certificate Bestand weergeven

@@ -0,0 +1,11 @@
#!/bin/sh
#
# Copyright (C) 2020 Dusan Mitrovic <dusan@dusanmitrovic.xyz>
# Licensed under the terms of the GNU GPL version 3 only
#
# Generate a self signed certificate for use with express for local development
certificate_directory="./certificates"

[ ! -d $certificate_directory ] && mkdir $certificate_directory

openssl req -x509 -nodes -newkey rsa:4096 -keyout "$certificate_directory/private.pem" -out "$certificate_directory/certificate.pem" -days 365

Laden…
Annuleren
Opslaan