Source

bin / gencert

Full commit
1
2
3
4
5
6
7
8
#!/bin/bash
# Generate key and certificate for Apache.

openssl genrsa -des3 -out server.key 2048
openssl req -new -key server.key -out server.csr
cp server.key server.key.org
openssl rsa -in server.key.org -out server.key
openssl x509 -req -days 3660 -in server.csr -signkey server.key -out server.crt