17-renegotiate.cnf 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. # Generated with generate_ssl_tests.pl
  2. num_tests = 15
  3. test-0 = 0-renegotiate-client-no-resume
  4. test-1 = 1-renegotiate-client-resume
  5. test-2 = 2-renegotiate-server-no-resume
  6. test-3 = 3-renegotiate-server-resume
  7. test-4 = 4-renegotiate-client-auth-require
  8. test-5 = 5-renegotiate-client-auth-once
  9. test-6 = 6-renegotiate-aead-to-non-aead
  10. test-7 = 7-renegotiate-non-aead-to-aead
  11. test-8 = 8-renegotiate-non-aead-to-non-aead
  12. test-9 = 9-renegotiate-aead-to-aead
  13. test-10 = 10-no-renegotiation-server-by-client
  14. test-11 = 11-no-renegotiation-server-by-server
  15. test-12 = 12-no-renegotiation-client-by-server
  16. test-13 = 13-no-renegotiation-client-by-client
  17. test-14 = 14-no-extms-on-renegotiation
  18. # ===========================================================
  19. [0-renegotiate-client-no-resume]
  20. ssl_conf = 0-renegotiate-client-no-resume-ssl
  21. [0-renegotiate-client-no-resume-ssl]
  22. server = 0-renegotiate-client-no-resume-server
  23. client = 0-renegotiate-client-no-resume-client
  24. [0-renegotiate-client-no-resume-server]
  25. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  26. CipherString = DEFAULT
  27. MaxProtocol = TLSv1.2
  28. Options = NoResumptionOnRenegotiation
  29. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  30. [0-renegotiate-client-no-resume-client]
  31. CipherString = DEFAULT
  32. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  33. VerifyMode = Peer
  34. [test-0]
  35. ExpectedResult = Success
  36. HandshakeMode = RenegotiateClient
  37. Method = TLS
  38. ResumptionExpected = No
  39. # ===========================================================
  40. [1-renegotiate-client-resume]
  41. ssl_conf = 1-renegotiate-client-resume-ssl
  42. [1-renegotiate-client-resume-ssl]
  43. server = 1-renegotiate-client-resume-server
  44. client = 1-renegotiate-client-resume-client
  45. [1-renegotiate-client-resume-server]
  46. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  47. CipherString = DEFAULT
  48. MaxProtocol = TLSv1.2
  49. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  50. [1-renegotiate-client-resume-client]
  51. CipherString = DEFAULT
  52. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  53. VerifyMode = Peer
  54. [test-1]
  55. ExpectedResult = Success
  56. HandshakeMode = RenegotiateClient
  57. Method = TLS
  58. ResumptionExpected = Yes
  59. # ===========================================================
  60. [2-renegotiate-server-no-resume]
  61. ssl_conf = 2-renegotiate-server-no-resume-ssl
  62. [2-renegotiate-server-no-resume-ssl]
  63. server = 2-renegotiate-server-no-resume-server
  64. client = 2-renegotiate-server-no-resume-client
  65. [2-renegotiate-server-no-resume-server]
  66. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  67. CipherString = DEFAULT
  68. MaxProtocol = TLSv1.2
  69. Options = NoResumptionOnRenegotiation
  70. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  71. [2-renegotiate-server-no-resume-client]
  72. CipherString = DEFAULT
  73. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  74. VerifyMode = Peer
  75. [test-2]
  76. ExpectedResult = Success
  77. HandshakeMode = RenegotiateServer
  78. Method = TLS
  79. ResumptionExpected = No
  80. # ===========================================================
  81. [3-renegotiate-server-resume]
  82. ssl_conf = 3-renegotiate-server-resume-ssl
  83. [3-renegotiate-server-resume-ssl]
  84. server = 3-renegotiate-server-resume-server
  85. client = 3-renegotiate-server-resume-client
  86. [3-renegotiate-server-resume-server]
  87. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  88. CipherString = DEFAULT
  89. MaxProtocol = TLSv1.2
  90. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  91. [3-renegotiate-server-resume-client]
  92. CipherString = DEFAULT
  93. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  94. VerifyMode = Peer
  95. [test-3]
  96. ExpectedResult = Success
  97. HandshakeMode = RenegotiateServer
  98. Method = TLS
  99. ResumptionExpected = Yes
  100. # ===========================================================
  101. [4-renegotiate-client-auth-require]
  102. ssl_conf = 4-renegotiate-client-auth-require-ssl
  103. [4-renegotiate-client-auth-require-ssl]
  104. server = 4-renegotiate-client-auth-require-server
  105. client = 4-renegotiate-client-auth-require-client
  106. [4-renegotiate-client-auth-require-server]
  107. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  108. CipherString = DEFAULT
  109. MaxProtocol = TLSv1.2
  110. Options = NoResumptionOnRenegotiation
  111. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  112. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/root-cert.pem
  113. VerifyMode = Require
  114. [4-renegotiate-client-auth-require-client]
  115. Certificate = ${ENV::TEST_CERTS_DIR}/ee-client-chain.pem
  116. CipherString = DEFAULT
  117. PrivateKey = ${ENV::TEST_CERTS_DIR}/ee-key.pem
  118. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  119. VerifyMode = Peer
  120. [test-4]
  121. ExpectedResult = Success
  122. HandshakeMode = RenegotiateServer
  123. Method = TLS
  124. ResumptionExpected = No
  125. # ===========================================================
  126. [5-renegotiate-client-auth-once]
  127. ssl_conf = 5-renegotiate-client-auth-once-ssl
  128. [5-renegotiate-client-auth-once-ssl]
  129. server = 5-renegotiate-client-auth-once-server
  130. client = 5-renegotiate-client-auth-once-client
  131. [5-renegotiate-client-auth-once-server]
  132. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  133. CipherString = DEFAULT
  134. MaxProtocol = TLSv1.2
  135. Options = NoResumptionOnRenegotiation
  136. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  137. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/root-cert.pem
  138. VerifyMode = Once
  139. [5-renegotiate-client-auth-once-client]
  140. Certificate = ${ENV::TEST_CERTS_DIR}/ee-client-chain.pem
  141. CipherString = DEFAULT
  142. PrivateKey = ${ENV::TEST_CERTS_DIR}/ee-key.pem
  143. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  144. VerifyMode = Peer
  145. [test-5]
  146. ExpectedResult = Success
  147. HandshakeMode = RenegotiateServer
  148. Method = TLS
  149. ResumptionExpected = No
  150. # ===========================================================
  151. [6-renegotiate-aead-to-non-aead]
  152. ssl_conf = 6-renegotiate-aead-to-non-aead-ssl
  153. [6-renegotiate-aead-to-non-aead-ssl]
  154. server = 6-renegotiate-aead-to-non-aead-server
  155. client = 6-renegotiate-aead-to-non-aead-client
  156. [6-renegotiate-aead-to-non-aead-server]
  157. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  158. CipherString = DEFAULT
  159. Options = NoResumptionOnRenegotiation
  160. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  161. [6-renegotiate-aead-to-non-aead-client]
  162. CipherString = AES128-GCM-SHA256
  163. MaxProtocol = TLSv1.2
  164. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  165. VerifyMode = Peer
  166. [test-6]
  167. ExpectedResult = Success
  168. HandshakeMode = RenegotiateClient
  169. Method = TLS
  170. ResumptionExpected = No
  171. client = 6-renegotiate-aead-to-non-aead-client-extra
  172. [6-renegotiate-aead-to-non-aead-client-extra]
  173. RenegotiateCiphers = AES128-SHA
  174. # ===========================================================
  175. [7-renegotiate-non-aead-to-aead]
  176. ssl_conf = 7-renegotiate-non-aead-to-aead-ssl
  177. [7-renegotiate-non-aead-to-aead-ssl]
  178. server = 7-renegotiate-non-aead-to-aead-server
  179. client = 7-renegotiate-non-aead-to-aead-client
  180. [7-renegotiate-non-aead-to-aead-server]
  181. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  182. CipherString = DEFAULT
  183. Options = NoResumptionOnRenegotiation
  184. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  185. [7-renegotiate-non-aead-to-aead-client]
  186. CipherString = AES128-SHA
  187. MaxProtocol = TLSv1.2
  188. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  189. VerifyMode = Peer
  190. [test-7]
  191. ExpectedResult = Success
  192. HandshakeMode = RenegotiateClient
  193. Method = TLS
  194. ResumptionExpected = No
  195. client = 7-renegotiate-non-aead-to-aead-client-extra
  196. [7-renegotiate-non-aead-to-aead-client-extra]
  197. RenegotiateCiphers = AES128-GCM-SHA256
  198. # ===========================================================
  199. [8-renegotiate-non-aead-to-non-aead]
  200. ssl_conf = 8-renegotiate-non-aead-to-non-aead-ssl
  201. [8-renegotiate-non-aead-to-non-aead-ssl]
  202. server = 8-renegotiate-non-aead-to-non-aead-server
  203. client = 8-renegotiate-non-aead-to-non-aead-client
  204. [8-renegotiate-non-aead-to-non-aead-server]
  205. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  206. CipherString = DEFAULT
  207. Options = NoResumptionOnRenegotiation
  208. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  209. [8-renegotiate-non-aead-to-non-aead-client]
  210. CipherString = AES128-SHA
  211. MaxProtocol = TLSv1.2
  212. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  213. VerifyMode = Peer
  214. [test-8]
  215. ExpectedResult = Success
  216. HandshakeMode = RenegotiateClient
  217. Method = TLS
  218. ResumptionExpected = No
  219. client = 8-renegotiate-non-aead-to-non-aead-client-extra
  220. [8-renegotiate-non-aead-to-non-aead-client-extra]
  221. RenegotiateCiphers = AES256-SHA
  222. # ===========================================================
  223. [9-renegotiate-aead-to-aead]
  224. ssl_conf = 9-renegotiate-aead-to-aead-ssl
  225. [9-renegotiate-aead-to-aead-ssl]
  226. server = 9-renegotiate-aead-to-aead-server
  227. client = 9-renegotiate-aead-to-aead-client
  228. [9-renegotiate-aead-to-aead-server]
  229. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  230. CipherString = DEFAULT
  231. Options = NoResumptionOnRenegotiation
  232. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  233. [9-renegotiate-aead-to-aead-client]
  234. CipherString = AES128-GCM-SHA256
  235. MaxProtocol = TLSv1.2
  236. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  237. VerifyMode = Peer
  238. [test-9]
  239. ExpectedResult = Success
  240. HandshakeMode = RenegotiateClient
  241. Method = TLS
  242. ResumptionExpected = No
  243. client = 9-renegotiate-aead-to-aead-client-extra
  244. [9-renegotiate-aead-to-aead-client-extra]
  245. RenegotiateCiphers = AES256-GCM-SHA384
  246. # ===========================================================
  247. [10-no-renegotiation-server-by-client]
  248. ssl_conf = 10-no-renegotiation-server-by-client-ssl
  249. [10-no-renegotiation-server-by-client-ssl]
  250. server = 10-no-renegotiation-server-by-client-server
  251. client = 10-no-renegotiation-server-by-client-client
  252. [10-no-renegotiation-server-by-client-server]
  253. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  254. CipherString = DEFAULT
  255. MaxProtocol = TLSv1.2
  256. Options = NoRenegotiation
  257. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  258. [10-no-renegotiation-server-by-client-client]
  259. CipherString = DEFAULT
  260. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  261. VerifyMode = Peer
  262. [test-10]
  263. ExpectedResult = ClientFail
  264. HandshakeMode = RenegotiateClient
  265. Method = TLS
  266. ResumptionExpected = No
  267. # ===========================================================
  268. [11-no-renegotiation-server-by-server]
  269. ssl_conf = 11-no-renegotiation-server-by-server-ssl
  270. [11-no-renegotiation-server-by-server-ssl]
  271. server = 11-no-renegotiation-server-by-server-server
  272. client = 11-no-renegotiation-server-by-server-client
  273. [11-no-renegotiation-server-by-server-server]
  274. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  275. CipherString = DEFAULT
  276. MaxProtocol = TLSv1.2
  277. Options = NoRenegotiation
  278. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  279. [11-no-renegotiation-server-by-server-client]
  280. CipherString = DEFAULT
  281. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  282. VerifyMode = Peer
  283. [test-11]
  284. ExpectedResult = ServerFail
  285. HandshakeMode = RenegotiateServer
  286. Method = TLS
  287. ResumptionExpected = No
  288. # ===========================================================
  289. [12-no-renegotiation-client-by-server]
  290. ssl_conf = 12-no-renegotiation-client-by-server-ssl
  291. [12-no-renegotiation-client-by-server-ssl]
  292. server = 12-no-renegotiation-client-by-server-server
  293. client = 12-no-renegotiation-client-by-server-client
  294. [12-no-renegotiation-client-by-server-server]
  295. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  296. CipherString = DEFAULT
  297. MaxProtocol = TLSv1.2
  298. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  299. [12-no-renegotiation-client-by-server-client]
  300. CipherString = DEFAULT
  301. Options = NoRenegotiation
  302. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  303. VerifyMode = Peer
  304. [test-12]
  305. ExpectedResult = ServerFail
  306. HandshakeMode = RenegotiateServer
  307. Method = TLS
  308. ResumptionExpected = No
  309. # ===========================================================
  310. [13-no-renegotiation-client-by-client]
  311. ssl_conf = 13-no-renegotiation-client-by-client-ssl
  312. [13-no-renegotiation-client-by-client-ssl]
  313. server = 13-no-renegotiation-client-by-client-server
  314. client = 13-no-renegotiation-client-by-client-client
  315. [13-no-renegotiation-client-by-client-server]
  316. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  317. CipherString = DEFAULT
  318. MaxProtocol = TLSv1.2
  319. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  320. [13-no-renegotiation-client-by-client-client]
  321. CipherString = DEFAULT
  322. Options = NoRenegotiation
  323. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  324. VerifyMode = Peer
  325. [test-13]
  326. ExpectedResult = ClientFail
  327. HandshakeMode = RenegotiateClient
  328. Method = TLS
  329. ResumptionExpected = No
  330. # ===========================================================
  331. [14-no-extms-on-renegotiation]
  332. ssl_conf = 14-no-extms-on-renegotiation-ssl
  333. [14-no-extms-on-renegotiation-ssl]
  334. server = 14-no-extms-on-renegotiation-server
  335. client = 14-no-extms-on-renegotiation-client
  336. [14-no-extms-on-renegotiation-server]
  337. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  338. CipherString = DEFAULT
  339. MaxProtocol = TLSv1.2
  340. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  341. [14-no-extms-on-renegotiation-client]
  342. CipherString = DEFAULT
  343. MaxProtocol = TLSv1.2
  344. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  345. VerifyMode = Peer
  346. [test-14]
  347. ExpectedResult = ServerFail
  348. HandshakeMode = RenegotiateClient
  349. Method = TLS
  350. ResumptionExpected = No
  351. client = 14-no-extms-on-renegotiation-client-extra
  352. [14-no-extms-on-renegotiation-client-extra]
  353. RenegotiateNoExtms = Yes