16 lines
297 B
Bash
Executable File
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
|