aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_tls_SUITE_data
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-10-03 00:56:18 +0200
committerAnders Svensson <[email protected]>2011-10-06 16:29:46 +0200
commit8998476269bf308e92b004f00e5ae3636f08541e (patch)
tree37f3e2d74d36d21c6129aee99b366230f24c0e1e /lib/diameter/test/diameter_tls_SUITE_data
parent30a7d3935e57bd4c6b7e64f8b25eb0a11c0e7c80 (diff)
downloadotp-8998476269bf308e92b004f00e5ae3636f08541e.tar.gz
otp-8998476269bf308e92b004f00e5ae3636f08541e.tar.bz2
otp-8998476269bf308e92b004f00e5ae3636f08541e.zip
Add tls testsuite
Diffstat (limited to 'lib/diameter/test/diameter_tls_SUITE_data')
-rw-r--r--lib/diameter/test/diameter_tls_SUITE_data/Makefile.ca43
1 files changed, 43 insertions, 0 deletions
diff --git a/lib/diameter/test/diameter_tls_SUITE_data/Makefile.ca b/lib/diameter/test/diameter_tls_SUITE_data/Makefile.ca
new file mode 100644
index 0000000000..3f2645add0
--- /dev/null
+++ b/lib/diameter/test/diameter_tls_SUITE_data/Makefile.ca
@@ -0,0 +1,43 @@
+# -*- makefile -*-
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2011. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+
+#
+# Certificates are now generated from the suite itself but the
+# makefile itself is still useful.
+#
+
+KEYS = $(HOSTS:%=%_key.pem)
+CERTS = $(HOSTS:%=%_ca.pem)
+
+all: $(CERTS)
+
+%_ca.pem: %_key.pem
+ openssl req -new -x509 -key $< -out $@ -days 1095 \
+ -subj '/C=SE/ST=./L=Stockholm/CN=www.erlang.org'
+
+%_key.pem:
+ openssl genrsa -out $@ 2048
+
+clean:
+ rm -f $(CERTS)
+
+realclean: clean
+ rm -f $(KEYS)
+
+.PRECIOUS: $(KEYS)
+.PHONY: all clean realclean