03-custom_verify.cnf 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. # Generated with generate_ssl_tests.pl
  2. num_tests = 10
  3. test-0 = 0-verify-success
  4. test-1 = 1-verify-custom-reject
  5. test-2 = 2-verify-custom-allow
  6. test-3 = 3-verify-custom-retry
  7. test-4 = 4-noverify-success
  8. test-5 = 5-noverify-ignore-custom-reject
  9. test-6 = 6-noverify-accept-custom-allow
  10. test-7 = 7-verify-fail-no-root
  11. test-8 = 8-verify-custom-success-no-root
  12. test-9 = 9-verify-custom-fail-no-root
  13. # ===========================================================
  14. [0-verify-success]
  15. ssl_conf = 0-verify-success-ssl
  16. [0-verify-success-ssl]
  17. server = 0-verify-success-server
  18. client = 0-verify-success-client
  19. [0-verify-success-server]
  20. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  21. CipherString = DEFAULT
  22. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  23. [0-verify-success-client]
  24. CipherString = DEFAULT
  25. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  26. VerifyMode = Peer
  27. [test-0]
  28. ExpectedResult = Success
  29. # ===========================================================
  30. [1-verify-custom-reject]
  31. ssl_conf = 1-verify-custom-reject-ssl
  32. [1-verify-custom-reject-ssl]
  33. server = 1-verify-custom-reject-server
  34. client = 1-verify-custom-reject-client
  35. [1-verify-custom-reject-server]
  36. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  37. CipherString = DEFAULT
  38. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  39. [1-verify-custom-reject-client]
  40. CipherString = DEFAULT
  41. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  42. VerifyMode = Peer
  43. [test-1]
  44. ExpectedClientAlert = HandshakeFailure
  45. ExpectedResult = ClientFail
  46. client = 1-verify-custom-reject-client-extra
  47. [1-verify-custom-reject-client-extra]
  48. VerifyCallback = RejectAll
  49. # ===========================================================
  50. [2-verify-custom-allow]
  51. ssl_conf = 2-verify-custom-allow-ssl
  52. [2-verify-custom-allow-ssl]
  53. server = 2-verify-custom-allow-server
  54. client = 2-verify-custom-allow-client
  55. [2-verify-custom-allow-server]
  56. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  57. CipherString = DEFAULT
  58. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  59. [2-verify-custom-allow-client]
  60. CipherString = DEFAULT
  61. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  62. VerifyMode = Peer
  63. [test-2]
  64. ExpectedResult = Success
  65. client = 2-verify-custom-allow-client-extra
  66. [2-verify-custom-allow-client-extra]
  67. VerifyCallback = AcceptAll
  68. # ===========================================================
  69. [3-verify-custom-retry]
  70. ssl_conf = 3-verify-custom-retry-ssl
  71. [3-verify-custom-retry-ssl]
  72. server = 3-verify-custom-retry-server
  73. client = 3-verify-custom-retry-client
  74. [3-verify-custom-retry-server]
  75. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  76. CipherString = DEFAULT
  77. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  78. [3-verify-custom-retry-client]
  79. CipherString = DEFAULT
  80. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  81. VerifyMode = Peer
  82. [test-3]
  83. ExpectedResult = Success
  84. client = 3-verify-custom-retry-client-extra
  85. [3-verify-custom-retry-client-extra]
  86. VerifyCallback = RetryOnce
  87. # ===========================================================
  88. [4-noverify-success]
  89. ssl_conf = 4-noverify-success-ssl
  90. [4-noverify-success-ssl]
  91. server = 4-noverify-success-server
  92. client = 4-noverify-success-client
  93. [4-noverify-success-server]
  94. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  95. CipherString = DEFAULT
  96. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  97. [4-noverify-success-client]
  98. CipherString = DEFAULT
  99. [test-4]
  100. ExpectedResult = Success
  101. # ===========================================================
  102. [5-noverify-ignore-custom-reject]
  103. ssl_conf = 5-noverify-ignore-custom-reject-ssl
  104. [5-noverify-ignore-custom-reject-ssl]
  105. server = 5-noverify-ignore-custom-reject-server
  106. client = 5-noverify-ignore-custom-reject-client
  107. [5-noverify-ignore-custom-reject-server]
  108. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  109. CipherString = DEFAULT
  110. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  111. [5-noverify-ignore-custom-reject-client]
  112. CipherString = DEFAULT
  113. [test-5]
  114. ExpectedResult = Success
  115. client = 5-noverify-ignore-custom-reject-client-extra
  116. [5-noverify-ignore-custom-reject-client-extra]
  117. VerifyCallback = RejectAll
  118. # ===========================================================
  119. [6-noverify-accept-custom-allow]
  120. ssl_conf = 6-noverify-accept-custom-allow-ssl
  121. [6-noverify-accept-custom-allow-ssl]
  122. server = 6-noverify-accept-custom-allow-server
  123. client = 6-noverify-accept-custom-allow-client
  124. [6-noverify-accept-custom-allow-server]
  125. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  126. CipherString = DEFAULT
  127. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  128. [6-noverify-accept-custom-allow-client]
  129. CipherString = DEFAULT
  130. [test-6]
  131. ExpectedResult = Success
  132. client = 6-noverify-accept-custom-allow-client-extra
  133. [6-noverify-accept-custom-allow-client-extra]
  134. VerifyCallback = AcceptAll
  135. # ===========================================================
  136. [7-verify-fail-no-root]
  137. ssl_conf = 7-verify-fail-no-root-ssl
  138. [7-verify-fail-no-root-ssl]
  139. server = 7-verify-fail-no-root-server
  140. client = 7-verify-fail-no-root-client
  141. [7-verify-fail-no-root-server]
  142. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  143. CipherString = DEFAULT
  144. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  145. [7-verify-fail-no-root-client]
  146. CipherString = DEFAULT
  147. VerifyMode = Peer
  148. [test-7]
  149. ExpectedClientAlert = UnknownCA
  150. ExpectedResult = ClientFail
  151. # ===========================================================
  152. [8-verify-custom-success-no-root]
  153. ssl_conf = 8-verify-custom-success-no-root-ssl
  154. [8-verify-custom-success-no-root-ssl]
  155. server = 8-verify-custom-success-no-root-server
  156. client = 8-verify-custom-success-no-root-client
  157. [8-verify-custom-success-no-root-server]
  158. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  159. CipherString = DEFAULT
  160. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  161. [8-verify-custom-success-no-root-client]
  162. CipherString = DEFAULT
  163. VerifyMode = Peer
  164. [test-8]
  165. ExpectedResult = Success
  166. client = 8-verify-custom-success-no-root-client-extra
  167. [8-verify-custom-success-no-root-client-extra]
  168. VerifyCallback = AcceptAll
  169. # ===========================================================
  170. [9-verify-custom-fail-no-root]
  171. ssl_conf = 9-verify-custom-fail-no-root-ssl
  172. [9-verify-custom-fail-no-root-ssl]
  173. server = 9-verify-custom-fail-no-root-server
  174. client = 9-verify-custom-fail-no-root-client
  175. [9-verify-custom-fail-no-root-server]
  176. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  177. CipherString = DEFAULT
  178. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  179. [9-verify-custom-fail-no-root-client]
  180. CipherString = DEFAULT
  181. VerifyMode = Peer
  182. [test-9]
  183. ExpectedClientAlert = HandshakeFailure
  184. ExpectedResult = ClientFail
  185. client = 9-verify-custom-fail-no-root-client-extra
  186. [9-verify-custom-fail-no-root-client-extra]
  187. VerifyCallback = RejectAll