Gemini/gen-certs.sh

16 lines
297 B
Bash
Raw Normal View History

2022-01-14 00:48:56 +03:00
#!/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