113498266Sopenharmony_ci#***************************************************************************
213498266Sopenharmony_ci#                                  _   _ ____  _
313498266Sopenharmony_ci#  Project                     ___| | | |  _ \| |
413498266Sopenharmony_ci#                             / __| | | | |_) | |
513498266Sopenharmony_ci#                            | (__| |_| |  _ <| |___
613498266Sopenharmony_ci#                             \___|\___/|_| \_\_____|
713498266Sopenharmony_ci#
813498266Sopenharmony_ci# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
913498266Sopenharmony_ci#
1013498266Sopenharmony_ci# This software is licensed as described in the file COPYING, which
1113498266Sopenharmony_ci# you should have received as part of this distribution. The terms
1213498266Sopenharmony_ci# are also available at https://curl.se/docs/copyright.html.
1313498266Sopenharmony_ci#
1413498266Sopenharmony_ci# You may opt to use, copy, modify, merge, publish, distribute and/or sell
1513498266Sopenharmony_ci# copies of the Software, and permit persons to whom the Software is
1613498266Sopenharmony_ci# furnished to do so, under the terms of the COPYING file.
1713498266Sopenharmony_ci#
1813498266Sopenharmony_ci# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
1913498266Sopenharmony_ci# KIND, either express or implied.
2013498266Sopenharmony_ci#
2113498266Sopenharmony_ci# SPDX-License-Identifier: curl
2213498266Sopenharmony_ci#
2313498266Sopenharmony_ci###########################################################################
2413498266Sopenharmony_ciAUTOMAKE_OPTIONS = foreign
2513498266Sopenharmony_ci
2613498266Sopenharmony_ciSUBDIRS = scripts
2713498266Sopenharmony_ci
2813498266Sopenharmony_ciCERTCONFIGS = \
2913498266Sopenharmony_ci  EdelCurlRoot-ca.prm \
3013498266Sopenharmony_ci  EdelCurlRoot-ca.cnf \
3113498266Sopenharmony_ci  Server-localhost-sv.prm \
3213498266Sopenharmony_ci  Server-localhost.nn-sv.prm \
3313498266Sopenharmony_ci  Server-localhost0h-sv.prm \
3413498266Sopenharmony_ci  Server-localhost-firstSAN-sv.prm \
3513498266Sopenharmony_ci  Server-localhost-lastSAN-sv.prm \
3613498266Sopenharmony_ci  stunnel-sv.prm
3713498266Sopenharmony_ci
3813498266Sopenharmony_ciGENERATEDCERTS = \
3913498266Sopenharmony_ci  EdelCurlRoot-ca.cacert \
4013498266Sopenharmony_ci  EdelCurlRoot-ca.crt \
4113498266Sopenharmony_ci  EdelCurlRoot-ca.csr \
4213498266Sopenharmony_ci  EdelCurlRoot-ca.der \
4313498266Sopenharmony_ci  EdelCurlRoot-ca.key \
4413498266Sopenharmony_ci  Server-localhost-sv.crl \
4513498266Sopenharmony_ci  Server-localhost-sv.crt \
4613498266Sopenharmony_ci  Server-localhost-sv.csr \
4713498266Sopenharmony_ci  Server-localhost-sv.der \
4813498266Sopenharmony_ci  Server-localhost-sv.dhp \
4913498266Sopenharmony_ci  Server-localhost-sv.key \
5013498266Sopenharmony_ci  Server-localhost-sv.pem \
5113498266Sopenharmony_ci  Server-localhost-sv.pub.der \
5213498266Sopenharmony_ci  Server-localhost-sv.pub.pem \
5313498266Sopenharmony_ci  Server-localhost.nn-sv.crl \
5413498266Sopenharmony_ci  Server-localhost.nn-sv.crt \
5513498266Sopenharmony_ci  Server-localhost.nn-sv.csr \
5613498266Sopenharmony_ci  Server-localhost.nn-sv.der \
5713498266Sopenharmony_ci  Server-localhost.nn-sv.dhp \
5813498266Sopenharmony_ci  Server-localhost.nn-sv.key \
5913498266Sopenharmony_ci  Server-localhost.nn-sv.pem \
6013498266Sopenharmony_ci  Server-localhost.nn-sv.pub.der \
6113498266Sopenharmony_ci  Server-localhost.nn-sv.pub.pem \
6213498266Sopenharmony_ci  Server-localhost0h-sv.crl \
6313498266Sopenharmony_ci  Server-localhost0h-sv.crt \
6413498266Sopenharmony_ci  Server-localhost0h-sv.csr \
6513498266Sopenharmony_ci  Server-localhost0h-sv.der \
6613498266Sopenharmony_ci  Server-localhost0h-sv.dhp \
6713498266Sopenharmony_ci  Server-localhost0h-sv.key \
6813498266Sopenharmony_ci  Server-localhost0h-sv.pem \
6913498266Sopenharmony_ci  Server-localhost0h-sv.pub.der \
7013498266Sopenharmony_ci  Server-localhost0h-sv.pub.pem \
7113498266Sopenharmony_ci  Server-localhost-firstSAN-sv.crl \
7213498266Sopenharmony_ci  Server-localhost-firstSAN-sv.crt \
7313498266Sopenharmony_ci  Server-localhost-firstSAN-sv.csr \
7413498266Sopenharmony_ci  Server-localhost-firstSAN-sv.der \
7513498266Sopenharmony_ci  Server-localhost-firstSAN-sv.dhp \
7613498266Sopenharmony_ci  Server-localhost-firstSAN-sv.key \
7713498266Sopenharmony_ci  Server-localhost-firstSAN-sv.pem \
7813498266Sopenharmony_ci  Server-localhost-firstSAN-sv.pub.der \
7913498266Sopenharmony_ci  Server-localhost-firstSAN-sv.pub.pem \
8013498266Sopenharmony_ci  Server-localhost-lastSAN-sv.crl \
8113498266Sopenharmony_ci  Server-localhost-lastSAN-sv.crt \
8213498266Sopenharmony_ci  Server-localhost-lastSAN-sv.csr \
8313498266Sopenharmony_ci  Server-localhost-lastSAN-sv.der \
8413498266Sopenharmony_ci  Server-localhost-lastSAN-sv.dhp \
8513498266Sopenharmony_ci  Server-localhost-lastSAN-sv.key \
8613498266Sopenharmony_ci  Server-localhost-lastSAN-sv.pem \
8713498266Sopenharmony_ci  Server-localhost-lastSAN-sv.pub.der \
8813498266Sopenharmony_ci  Server-localhost-lastSAN-sv.pub.pem \
8913498266Sopenharmony_ci  stunnel-sv.crl \
9013498266Sopenharmony_ci  stunnel-sv.crt \
9113498266Sopenharmony_ci  stunnel-sv.csr \
9213498266Sopenharmony_ci  stunnel-sv.der \
9313498266Sopenharmony_ci  stunnel-sv.dhp \
9413498266Sopenharmony_ci  stunnel-sv.key \
9513498266Sopenharmony_ci  stunnel-sv.pem \
9613498266Sopenharmony_ci  stunnel-sv.der \
9713498266Sopenharmony_ci  stunnel-sv.pub.pem
9813498266Sopenharmony_ci
9913498266Sopenharmony_ciSRPFILES = \
10013498266Sopenharmony_ci  srp-verifier-conf \
10113498266Sopenharmony_ci  srp-verifier-db
10213498266Sopenharmony_ci
10313498266Sopenharmony_ciEXTRA_DIST = $(CERTCONFIGS) $(GENERATEDCERTS) $(SRPFILES)
10413498266Sopenharmony_ci
10513498266Sopenharmony_ci# Rebuild the certificates
10613498266Sopenharmony_ci
10713498266Sopenharmony_ciclean-certs:
10813498266Sopenharmony_ci	cd $(srcdir); rm -f $(GENERATEDCERTS)
10913498266Sopenharmony_ci
11013498266Sopenharmony_cibuild-certs: $(srcdir)/EdelCurlRoot-ca.cacert $(srcdir)/Server-localhost-sv.pem \
11113498266Sopenharmony_ci	$(srcdir)/Server-localhost.nn-sv.pem $(srcdir)/Server-localhost0h-sv.pem \
11213498266Sopenharmony_ci	$(srcdir)/Server-localhost-firstSAN-sv.pem $(srcdir)/Server-localhost-lastSAN-sv.pem \
11313498266Sopenharmony_ci	$(srcdir)/stunnel-sv.pem ../stunnel.pem
11413498266Sopenharmony_ci
11513498266Sopenharmony_ci$(srcdir)/EdelCurlRoot-ca.cacert:
11613498266Sopenharmony_ci	cd $(srcdir); scripts/genroot.sh EdelCurlRoot
11713498266Sopenharmony_ci
11813498266Sopenharmony_ci$(srcdir)/Server-localhost-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
11913498266Sopenharmony_ci	cd $(srcdir); scripts/genserv.sh Server-localhost EdelCurlRoot
12013498266Sopenharmony_ci
12113498266Sopenharmony_ci$(srcdir)/Server-localhost.nn-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
12213498266Sopenharmony_ci	cd $(srcdir); scripts/genserv.sh Server-localhost.nn EdelCurlRoot
12313498266Sopenharmony_ci
12413498266Sopenharmony_ci$(srcdir)/Server-localhost0h-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
12513498266Sopenharmony_ci	cd $(srcdir); scripts/genserv.sh Server-localhost0h EdelCurlRoot
12613498266Sopenharmony_ci
12713498266Sopenharmony_ci$(srcdir)/Server-localhost-firstSAN-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
12813498266Sopenharmony_ci	cd $(srcdir); scripts/genserv.sh Server-localhost-firstSAN EdelCurlRoot
12913498266Sopenharmony_ci
13013498266Sopenharmony_ci$(srcdir)/Server-localhost-lastSAN-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
13113498266Sopenharmony_ci	cd $(srcdir); scripts/genserv.sh Server-localhost-lastSAN EdelCurlRoot
13213498266Sopenharmony_ci
13313498266Sopenharmony_ci$(srcdir)/stunnel-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
13413498266Sopenharmony_ci	cd $(srcdir); scripts/genserv.sh stunnel EdelCurlRoot
13513498266Sopenharmony_ci
13613498266Sopenharmony_ci../stunnel.pem: $(srcdir)/stunnel-sv.pem
13713498266Sopenharmony_ci	cp $< $@
138