diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-01-29 17:44:29 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-02-12 17:34:10 +0000 |
commit | dc583b1054d1cde492f0d33095a3dea2c8a2ac14 (patch) | |
tree | 5bb1bda5def96626ad7c19e25bacab66939c6789 /bins | |
parent | 2963562ec73e7b6a3994255358502a3cac039b50 (diff) | |
download | trove-setup-dc583b1054d1cde492f0d33095a3dea2c8a2ac14.tar.gz |
Make trove-early-setup generate certificate
Diffstat (limited to 'bins')
-rwxr-xr-x | bins/trove-early-setup | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bins/trove-early-setup b/bins/trove-early-setup index 6d7f9ef..eea068d 100755 --- a/bins/trove-early-setup +++ b/bins/trove-early-setup @@ -18,7 +18,7 @@ # -*- Make -*- -all: substitutions-done gitano-configured lorry-configured cache-configured mason-configured nfs-configured +all: substitutions-done gitano-configured lorry-configured cache-configured mason-configured nfs-configured cert-generated USERS := git lorry cache mason @@ -134,3 +134,13 @@ mason-configured: /home/git/.mason-setup .PHONY: nfs-configured nfs-configured: /etc/exports + +/home/git/.cert-generated: + mkdir -p /etc/lighttpd/certs + echo -ne '\n\n\n\n\n\n\n' | openssl req -new -x509 \ + -keyout /etc/lighttpd/certs/lighttpd.pem \ + -out /etc/lighttpd/certs/lighttpd.pem -days 36525 -nodes + touch $@ + +.PHONY: cert-generated +cert-generated: /home/git/.cert-generated |