xref: /curl/tests/certs/Makefile.am (revision fa461b4e)
1#***************************************************************************
2#                                  _   _ ____  _
3#  Project                     ___| | | |  _ \| |
4#                             / __| | | | |_) | |
5#                            | (__| |_| |  _ <| |___
6#                             \___|\___/|_| \_\_____|
7#
8# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
9#
10# This software is licensed as described in the file COPYING, which
11# you should have received as part of this distribution. The terms
12# are also available at https://curl.se/docs/copyright.html.
13#
14# You may opt to use, copy, modify, merge, publish, distribute and/or sell
15# copies of the Software, and permit persons to whom the Software is
16# furnished to do so, under the terms of the COPYING file.
17#
18# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19# KIND, either express or implied.
20#
21# SPDX-License-Identifier: curl
22#
23###########################################################################
24AUTOMAKE_OPTIONS = foreign
25
26SUBDIRS = scripts
27
28include Makefile.inc
29
30EXTRA_DIST = $(CERTCONFIGS) $(GENERATEDCERTS) $(SRPFILES) CMakeLists.txt
31
32# Rebuild the certificates
33
34clean-certs:
35	cd $(srcdir); rm -f $(GENERATEDCERTS)
36
37build-certs: $(srcdir)/EdelCurlRoot-ca.cacert $(srcdir)/Server-localhost-sv.pem \
38	$(srcdir)/Server-localhost.nn-sv.pem $(srcdir)/Server-localhost0h-sv.pem \
39	$(srcdir)/Server-localhost-firstSAN-sv.pem $(srcdir)/Server-localhost-lastSAN-sv.pem \
40	$(srcdir)/stunnel-sv.pem $(srcdir)/../stunnel.pem
41
42$(srcdir)/EdelCurlRoot-ca.cacert:
43	cd $(srcdir); scripts/genroot.sh EdelCurlRoot
44
45$(srcdir)/Server-localhost-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
46	cd $(srcdir); scripts/genserv.sh Server-localhost EdelCurlRoot
47
48$(srcdir)/Server-localhost.nn-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
49	cd $(srcdir); scripts/genserv.sh Server-localhost.nn EdelCurlRoot
50
51$(srcdir)/Server-localhost0h-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
52	cd $(srcdir); scripts/genserv.sh Server-localhost0h EdelCurlRoot
53
54$(srcdir)/Server-localhost-firstSAN-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
55	cd $(srcdir); scripts/genserv.sh Server-localhost-firstSAN EdelCurlRoot
56
57$(srcdir)/Server-localhost-lastSAN-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
58	cd $(srcdir); scripts/genserv.sh Server-localhost-lastSAN EdelCurlRoot
59
60$(srcdir)/stunnel-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
61	cd $(srcdir); scripts/genserv.sh stunnel EdelCurlRoot
62
63 $(srcdir)/../stunnel.pem: $(srcdir)/stunnel-sv.pem
64	cp $< $@
65