Gemini/scripts/server-shavit-gencerts.sh
2023-05-01 11:13:12 +03:00

16 lines
297 B
Bash
Executable File

#!/bin/sh
# Generate certs & key for Shavit server
# remove old files
rm server.{key,crt}
# generate new cert & key
openssl req -new -newkey rsa:4096 -x509 -sha256 \
-days 1 -nodes \
-out server.crt -keyout server.key \
-subj '/CN=localhost'
# setting true rights
chmod 400 server.key