Automated certs

darta 2021-05-28 13:39:30 +00:00
parent 0a695041fc
commit d6adcb7866
1 changed files with 7 additions and 1 deletions

8
admin/src/nextcloud_gencerts.sh Normal file → Executable file
View File

@ -1,4 +1,10 @@
cd saml_certs
openssl req -nodes -new -x509 -keyout private.key -out public.cert
C=CA
L=Barcelona
O=localdomain
CN_CA=$O
CN_HOST=*.$O
OU=$O
openssl req -nodes -new -x509 -keyout private.key -out public.cert -subj "/C=$C/L=$L/O=$O/CN=$CN_CA"
cd ..
echo "Now run the python nextcloud script"