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 28CERTCONFIGS = \ 29 EdelCurlRoot-ca.prm \ 30 EdelCurlRoot-ca.cnf \ 31 Server-localhost-sv.prm \ 32 Server-localhost.nn-sv.prm \ 33 Server-localhost0h-sv.prm \ 34 Server-localhost-firstSAN-sv.prm \ 35 Server-localhost-lastSAN-sv.prm \ 36 stunnel-sv.prm 37 38GENERATEDCERTS = \ 39 EdelCurlRoot-ca.cacert \ 40 EdelCurlRoot-ca.crt \ 41 EdelCurlRoot-ca.csr \ 42 EdelCurlRoot-ca.der \ 43 EdelCurlRoot-ca.key \ 44 Server-localhost-sv.crl \ 45 Server-localhost-sv.crt \ 46 Server-localhost-sv.csr \ 47 Server-localhost-sv.der \ 48 Server-localhost-sv.dhp \ 49 Server-localhost-sv.key \ 50 Server-localhost-sv.pem \ 51 Server-localhost-sv.pub.der \ 52 Server-localhost-sv.pub.pem \ 53 Server-localhost-sv.pubkey-pinned \ 54 Server-localhost.nn-sv.crl \ 55 Server-localhost.nn-sv.crt \ 56 Server-localhost.nn-sv.csr \ 57 Server-localhost.nn-sv.der \ 58 Server-localhost.nn-sv.dhp \ 59 Server-localhost.nn-sv.key \ 60 Server-localhost.nn-sv.pem \ 61 Server-localhost.nn-sv.pub.der \ 62 Server-localhost.nn-sv.pub.pem \ 63 Server-localhost.nn-sv.pubkey-pinned \ 64 Server-localhost0h-sv.crl \ 65 Server-localhost0h-sv.crt \ 66 Server-localhost0h-sv.csr \ 67 Server-localhost0h-sv.der \ 68 Server-localhost0h-sv.dhp \ 69 Server-localhost0h-sv.key \ 70 Server-localhost0h-sv.pem \ 71 Server-localhost0h-sv.pub.der \ 72 Server-localhost0h-sv.pub.pem \ 73 Server-localhost0h-sv.pubkey-pinned \ 74 Server-localhost-firstSAN-sv.crl \ 75 Server-localhost-firstSAN-sv.crt \ 76 Server-localhost-firstSAN-sv.csr \ 77 Server-localhost-firstSAN-sv.der \ 78 Server-localhost-firstSAN-sv.dhp \ 79 Server-localhost-firstSAN-sv.key \ 80 Server-localhost-firstSAN-sv.pem \ 81 Server-localhost-firstSAN-sv.pub.der \ 82 Server-localhost-firstSAN-sv.pub.pem \ 83 Server-localhost-firstSAN-sv.pubkey-pinned \ 84 Server-localhost-lastSAN-sv.crl \ 85 Server-localhost-lastSAN-sv.crt \ 86 Server-localhost-lastSAN-sv.csr \ 87 Server-localhost-lastSAN-sv.der \ 88 Server-localhost-lastSAN-sv.dhp \ 89 Server-localhost-lastSAN-sv.key \ 90 Server-localhost-lastSAN-sv.pem \ 91 Server-localhost-lastSAN-sv.pub.der \ 92 Server-localhost-lastSAN-sv.pub.pem \ 93 Server-localhost-lastSAN-sv.pubkey-pinned \ 94 stunnel-sv.crl \ 95 stunnel-sv.crt \ 96 stunnel-sv.csr \ 97 stunnel-sv.der \ 98 stunnel-sv.dhp \ 99 stunnel-sv.key \ 100 stunnel-sv.pem \ 101 stunnel-sv.der \ 102 stunnel-sv.pub.der \ 103 stunnel-sv.pub.pem \ 104 stunnel-sv.pubkey-pinned 105 106SRPFILES = \ 107 srp-verifier-conf \ 108 srp-verifier-db 109 110EXTRA_DIST = $(CERTCONFIGS) $(GENERATEDCERTS) $(SRPFILES) 111 112# Rebuild the certificates 113 114clean-certs: 115 cd $(srcdir); rm -f $(GENERATEDCERTS) 116 117build-certs: $(srcdir)/EdelCurlRoot-ca.cacert $(srcdir)/Server-localhost-sv.pem \ 118 $(srcdir)/Server-localhost.nn-sv.pem $(srcdir)/Server-localhost0h-sv.pem \ 119 $(srcdir)/Server-localhost-firstSAN-sv.pem $(srcdir)/Server-localhost-lastSAN-sv.pem \ 120 $(srcdir)/stunnel-sv.pem ../stunnel.pem 121 122$(srcdir)/EdelCurlRoot-ca.cacert: 123 cd $(srcdir); scripts/genroot.sh EdelCurlRoot 124 125$(srcdir)/Server-localhost-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert 126 cd $(srcdir); scripts/genserv.sh Server-localhost EdelCurlRoot 127 128$(srcdir)/Server-localhost.nn-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert 129 cd $(srcdir); scripts/genserv.sh Server-localhost.nn EdelCurlRoot 130 131$(srcdir)/Server-localhost0h-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert 132 cd $(srcdir); scripts/genserv.sh Server-localhost0h EdelCurlRoot 133 134$(srcdir)/Server-localhost-firstSAN-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert 135 cd $(srcdir); scripts/genserv.sh Server-localhost-firstSAN EdelCurlRoot 136 137$(srcdir)/Server-localhost-lastSAN-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert 138 cd $(srcdir); scripts/genserv.sh Server-localhost-lastSAN EdelCurlRoot 139 140$(srcdir)/stunnel-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert 141 cd $(srcdir); scripts/genserv.sh stunnel EdelCurlRoot 142 143../stunnel.pem: $(srcdir)/stunnel-sv.pem 144 cp $< $@ 145