Permalink
Browse files

git-svn-id: svn://cherokee-project.com/cherokee/trunk@2517 5dc97367-9…

…7f1-0310-9951-d761b3857238
  • Loading branch information...
1 parent 2bc6739 commit f01463bf8e82445dc0f549c2a033c9ba1a496df1 @alobbs alobbs committed Dec 1, 2008
Showing with 32 additions and 27 deletions.
  1. +1 −26 Makefile.am
  2. +10 −1 contrib/Makefile.am
  3. +21 −0 contrib/make-cert.sh
View
@@ -52,12 +52,7 @@ config.h.win32
CLEANFILES = \
$(CONFS) \
-$(CONSTANTS) \
-server.pem \
-rand.dat \
-cakey.key \
-cakey.csr \
-cakey.pem
+$(CONSTANTS)
DISTCLEANFILES = \
cherokee.pc
@@ -129,23 +124,3 @@ uninstall-local: uninstall-local-config
test:
$(MAKE) -C qa test
-
-
-# SSL Certificate Generation:
-# It isn't user by default.
-#
-cert: server.pem
-
-cakey.key:
- $(RM) -f rand.dat
- dd if=/dev/random of=rand.dat bs=1024 count=1
- openssl genrsa -out cakey.key -rand rand.dat 2048
-
-cakey.csr: cakey.key
- openssl req -new -key cakey.key -out cakey.csr
-
-cakey.pem: cakey.key cakey.csr
- openssl x509 -req -days 1780 -set_serial 1 -in cakey.csr -signkey cakey.key -out $@
-
-server.pem: cakey.key cakey.pem
- cat cakey.key cakey.pem > server.pem
View
@@ -13,4 +13,13 @@ bin2buffer.py \
07to08.py \
08to09.py \
09to010.py \
-tracelor.py
+tracelor.py \
+make-cert.sh
+
+CLEANFILES = \
+server.pem \
+rand.dat \
+cakey.key \
+cakey.csr \
+cakey.pem
+
View
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# Generate some random data
+rm -f rand.dat
+dd if=/dev/random of=rand.dat bs=1024 count=1
+
+# cakey.key
+openssl genrsa -out cakey.key -rand rand.dat 2048
+
+# cakey.csr
+openssl req -new -key cakey.key -out cakey.csr
+
+# cakey.pem
+openssl x509 -req -days 1780 -set_serial 1 -in cakey.csr -signkey cakey.key -out cakey.pem
+
+# server.pem
+cat cakey.key cakey.pem > server.pem
+
+# Clean up
+rm -f rand.dat
+ls -l server.pem

0 comments on commit f01463b

Please sign in to comment.