From f16802fb909b7f3e09d7cc1d81ed253d4b3b1298 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 7 Nov 2015 19:13:23 +0200
Subject: [PATCH] Add test and clean targets to Makefile.

---
 Makefile | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 25acbea..9f234f1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,15 @@
-.PHONY: install
+.PHONY: install clean test
 
 install:
 	cp ssl-ca /usr/local/bin/ssl-ca
 	chmod 755 /usr/local/bin/ssl-ca
+
+clean:
+	rm -rf openssl.cnf certs keys CA.key CA.crt
+
+test: clean
+	./ssl-ca init
+	./ssl-ca gen www
+	openssl genrsa -out keys/smtp
+	./ssl-ca sign
+	./ssl-ca resign
-- 
GitLab