Makefile.am 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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.nn-sv.crl \
  51. Server-localhost.nn-sv.crt \
  52. Server-localhost.nn-sv.csr \
  53. Server-localhost.nn-sv.der \
  54. Server-localhost.nn-sv.dhp \
  55. Server-localhost.nn-sv.key \
  56. Server-localhost.nn-sv.pem \
  57. Server-localhost.nn-sv.pub.der \
  58. Server-localhost.nn-sv.pub.pem \
  59. Server-localhost0h-sv.crl \
  60. Server-localhost0h-sv.crt \
  61. Server-localhost0h-sv.csr \
  62. Server-localhost0h-sv.der \
  63. Server-localhost0h-sv.dhp \
  64. Server-localhost0h-sv.key \
  65. Server-localhost0h-sv.pem \
  66. Server-localhost0h-sv.pub.der \
  67. Server-localhost0h-sv.pub.pem \
  68. Server-localhost-firstSAN-sv.crl \
  69. Server-localhost-firstSAN-sv.crt \
  70. Server-localhost-firstSAN-sv.csr \
  71. Server-localhost-firstSAN-sv.der \
  72. Server-localhost-firstSAN-sv.dhp \
  73. Server-localhost-firstSAN-sv.key \
  74. Server-localhost-firstSAN-sv.pem \
  75. Server-localhost-firstSAN-sv.pub.der \
  76. Server-localhost-firstSAN-sv.pub.pem \
  77. Server-localhost-lastSAN-sv.crl \
  78. Server-localhost-lastSAN-sv.crt \
  79. Server-localhost-lastSAN-sv.csr \
  80. Server-localhost-lastSAN-sv.der \
  81. Server-localhost-lastSAN-sv.dhp \
  82. Server-localhost-lastSAN-sv.key \
  83. Server-localhost-lastSAN-sv.pem \
  84. Server-localhost-lastSAN-sv.pub.der \
  85. Server-localhost-lastSAN-sv.pub.pem \
  86. stunnel-sv.crl \
  87. stunnel-sv.crt \
  88. stunnel-sv.csr \
  89. stunnel-sv.der \
  90. stunnel-sv.dhp \
  91. stunnel-sv.key \
  92. stunnel-sv.pem \
  93. stunnel-sv.der \
  94. stunnel-sv.pub.pem
  95. SRPFILES = \
  96. srp-verifier-conf \
  97. srp-verifier-db
  98. EXTRA_DIST = $(CERTCONFIGS) $(GENERATEDCERTS) $(SRPFILES)
  99. # Rebuild the certificates
  100. clean-certs:
  101. cd $(srcdir); rm -f $(GENERATEDCERTS)
  102. build-certs: $(srcdir)/EdelCurlRoot-ca.cacert $(srcdir)/Server-localhost-sv.pem \
  103. $(srcdir)/Server-localhost.nn-sv.pem $(srcdir)/Server-localhost0h-sv.pem \
  104. $(srcdir)/Server-localhost-firstSAN-sv.pem $(srcdir)/Server-localhost-lastSAN-sv.pem \
  105. $(srcdir)/stunnel-sv.pem ../stunnel.pem
  106. $(srcdir)/EdelCurlRoot-ca.cacert:
  107. cd $(srcdir); scripts/genroot.sh EdelCurlRoot
  108. $(srcdir)/Server-localhost-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
  109. cd $(srcdir); scripts/genserv.sh Server-localhost EdelCurlRoot
  110. $(srcdir)/Server-localhost.nn-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
  111. cd $(srcdir); scripts/genserv.sh Server-localhost.nn EdelCurlRoot
  112. $(srcdir)/Server-localhost0h-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
  113. cd $(srcdir); scripts/genserv.sh Server-localhost0h EdelCurlRoot
  114. $(srcdir)/Server-localhost-firstSAN-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
  115. cd $(srcdir); scripts/genserv.sh Server-localhost-firstSAN EdelCurlRoot
  116. $(srcdir)/Server-localhost-lastSAN-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
  117. cd $(srcdir); scripts/genserv.sh Server-localhost-lastSAN EdelCurlRoot
  118. $(srcdir)/stunnel-sv.pem: $(srcdir)/EdelCurlRoot-ca.cacert
  119. cd $(srcdir); scripts/genserv.sh stunnel EdelCurlRoot
  120. ../stunnel.pem: $(srcdir)/stunnel-sv.pem
  121. cp $< $@