💾 Archived View for gemini.rmf-dev.com › repo › Vaati › RouterMonitor › files › 937630a00b1ba2d400dd… captured on 2022-07-16 at 17:11:55. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

0 if [ ! "$@" ]; then

1 echo "$0 <your.hostname>"

2 exit

3 fi

4 openssl genrsa -out private.key 4096

5 openssl req -new -key private.key -out server.csr -subj "/CN=$@"

6 openssl x509 -sha256 -req -days 365 \

7 -in server.csr \

8 -signkey private.key \

9 -out server.crt

10 mv private.key /etc/ssl/private/$@.key

11 mv server.crt /etc/ssl/$@.crt

12 chmod 600 /etc/ssl/$@.crt

13 chmod 600 /etc/ssl/private/$@.key

14