Makefile.am 4.7 KB

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