17-renegotiate.cnf 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  1. # Generated with generate_ssl_tests.pl
  2. num_tests = 18
  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-client-legacy-connect
  10. test-7 = 7-renegotiate-aead-to-non-aead
  11. test-8 = 8-renegotiate-non-aead-to-aead
  12. test-9 = 9-renegotiate-non-aead-to-non-aead
  13. test-10 = 10-renegotiate-aead-to-aead
  14. test-11 = 11-no-renegotiation-server-by-client
  15. test-12 = 12-no-renegotiation-server-by-server
  16. test-13 = 13-no-renegotiation-client-by-server
  17. test-14 = 14-no-renegotiation-client-by-client
  18. test-15 = 15-no-extms-on-renegotiation
  19. test-16 = 16-allow-client-renegotiation
  20. test-17 = 17-no-client-renegotiation
  21. # ===========================================================
  22. [0-renegotiate-client-no-resume]
  23. ssl_conf = 0-renegotiate-client-no-resume-ssl
  24. [0-renegotiate-client-no-resume-ssl]
  25. server = 0-renegotiate-client-no-resume-server
  26. client = 0-renegotiate-client-no-resume-client
  27. [0-renegotiate-client-no-resume-server]
  28. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  29. CipherString = DEFAULT
  30. MaxProtocol = TLSv1.2
  31. Options = NoResumptionOnRenegotiation
  32. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  33. [0-renegotiate-client-no-resume-client]
  34. CipherString = DEFAULT
  35. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  36. VerifyMode = Peer
  37. [test-0]
  38. ExpectedResult = Success
  39. HandshakeMode = RenegotiateClient
  40. Method = TLS
  41. ResumptionExpected = No
  42. # ===========================================================
  43. [1-renegotiate-client-resume]
  44. ssl_conf = 1-renegotiate-client-resume-ssl
  45. [1-renegotiate-client-resume-ssl]
  46. server = 1-renegotiate-client-resume-server
  47. client = 1-renegotiate-client-resume-client
  48. [1-renegotiate-client-resume-server]
  49. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  50. CipherString = DEFAULT
  51. MaxProtocol = TLSv1.2
  52. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  53. [1-renegotiate-client-resume-client]
  54. CipherString = DEFAULT
  55. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  56. VerifyMode = Peer
  57. [test-1]
  58. ExpectedResult = Success
  59. HandshakeMode = RenegotiateClient
  60. Method = TLS
  61. ResumptionExpected = Yes
  62. # ===========================================================
  63. [2-renegotiate-server-no-resume]
  64. ssl_conf = 2-renegotiate-server-no-resume-ssl
  65. [2-renegotiate-server-no-resume-ssl]
  66. server = 2-renegotiate-server-no-resume-server
  67. client = 2-renegotiate-server-no-resume-client
  68. [2-renegotiate-server-no-resume-server]
  69. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  70. CipherString = DEFAULT
  71. MaxProtocol = TLSv1.2
  72. Options = NoResumptionOnRenegotiation
  73. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  74. [2-renegotiate-server-no-resume-client]
  75. CipherString = DEFAULT
  76. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  77. VerifyMode = Peer
  78. [test-2]
  79. ExpectedResult = Success
  80. HandshakeMode = RenegotiateServer
  81. Method = TLS
  82. ResumptionExpected = No
  83. # ===========================================================
  84. [3-renegotiate-server-resume]
  85. ssl_conf = 3-renegotiate-server-resume-ssl
  86. [3-renegotiate-server-resume-ssl]
  87. server = 3-renegotiate-server-resume-server
  88. client = 3-renegotiate-server-resume-client
  89. [3-renegotiate-server-resume-server]
  90. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  91. CipherString = DEFAULT
  92. MaxProtocol = TLSv1.2
  93. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  94. [3-renegotiate-server-resume-client]
  95. CipherString = DEFAULT
  96. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  97. VerifyMode = Peer
  98. [test-3]
  99. ExpectedResult = Success
  100. HandshakeMode = RenegotiateServer
  101. Method = TLS
  102. ResumptionExpected = Yes
  103. # ===========================================================
  104. [4-renegotiate-client-auth-require]
  105. ssl_conf = 4-renegotiate-client-auth-require-ssl
  106. [4-renegotiate-client-auth-require-ssl]
  107. server = 4-renegotiate-client-auth-require-server
  108. client = 4-renegotiate-client-auth-require-client
  109. [4-renegotiate-client-auth-require-server]
  110. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  111. CipherString = DEFAULT
  112. MaxProtocol = TLSv1.2
  113. Options = NoResumptionOnRenegotiation
  114. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  115. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/root-cert.pem
  116. VerifyMode = Require
  117. [4-renegotiate-client-auth-require-client]
  118. Certificate = ${ENV::TEST_CERTS_DIR}/ee-client-chain.pem
  119. CipherString = DEFAULT
  120. PrivateKey = ${ENV::TEST_CERTS_DIR}/ee-key.pem
  121. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  122. VerifyMode = Peer
  123. [test-4]
  124. ExpectedResult = Success
  125. HandshakeMode = RenegotiateServer
  126. Method = TLS
  127. ResumptionExpected = No
  128. # ===========================================================
  129. [5-renegotiate-client-auth-once]
  130. ssl_conf = 5-renegotiate-client-auth-once-ssl
  131. [5-renegotiate-client-auth-once-ssl]
  132. server = 5-renegotiate-client-auth-once-server
  133. client = 5-renegotiate-client-auth-once-client
  134. [5-renegotiate-client-auth-once-server]
  135. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  136. CipherString = DEFAULT
  137. MaxProtocol = TLSv1.2
  138. Options = NoResumptionOnRenegotiation
  139. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  140. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/root-cert.pem
  141. VerifyMode = Once
  142. [5-renegotiate-client-auth-once-client]
  143. Certificate = ${ENV::TEST_CERTS_DIR}/ee-client-chain.pem
  144. CipherString = DEFAULT
  145. PrivateKey = ${ENV::TEST_CERTS_DIR}/ee-key.pem
  146. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  147. VerifyMode = Peer
  148. [test-5]
  149. ExpectedResult = Success
  150. HandshakeMode = RenegotiateServer
  151. Method = TLS
  152. ResumptionExpected = No
  153. # ===========================================================
  154. [6-renegotiate-client-legacy-connect]
  155. ssl_conf = 6-renegotiate-client-legacy-connect-ssl
  156. [6-renegotiate-client-legacy-connect-ssl]
  157. server = 6-renegotiate-client-legacy-connect-server
  158. client = 6-renegotiate-client-legacy-connect-client
  159. [6-renegotiate-client-legacy-connect-server]
  160. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  161. CipherString = DEFAULT
  162. MaxProtocol = TLSv1.2
  163. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  164. [6-renegotiate-client-legacy-connect-client]
  165. CipherString = DEFAULT
  166. Options = UnsafeLegacyServerConnect
  167. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  168. VerifyMode = Peer
  169. [test-6]
  170. ExpectedResult = Success
  171. HandshakeMode = RenegotiateClient
  172. Method = TLS
  173. ResumptionExpected = Yes
  174. # ===========================================================
  175. [7-renegotiate-aead-to-non-aead]
  176. ssl_conf = 7-renegotiate-aead-to-non-aead-ssl
  177. [7-renegotiate-aead-to-non-aead-ssl]
  178. server = 7-renegotiate-aead-to-non-aead-server
  179. client = 7-renegotiate-aead-to-non-aead-client
  180. [7-renegotiate-aead-to-non-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-aead-to-non-aead-client]
  186. CipherString = AES128-GCM-SHA256
  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-aead-to-non-aead-client-extra
  196. [7-renegotiate-aead-to-non-aead-client-extra]
  197. RenegotiateCiphers = AES128-SHA
  198. # ===========================================================
  199. [8-renegotiate-non-aead-to-aead]
  200. ssl_conf = 8-renegotiate-non-aead-to-aead-ssl
  201. [8-renegotiate-non-aead-to-aead-ssl]
  202. server = 8-renegotiate-non-aead-to-aead-server
  203. client = 8-renegotiate-non-aead-to-aead-client
  204. [8-renegotiate-non-aead-to-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-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-aead-client-extra
  220. [8-renegotiate-non-aead-to-aead-client-extra]
  221. RenegotiateCiphers = AES128-GCM-SHA256
  222. # ===========================================================
  223. [9-renegotiate-non-aead-to-non-aead]
  224. ssl_conf = 9-renegotiate-non-aead-to-non-aead-ssl
  225. [9-renegotiate-non-aead-to-non-aead-ssl]
  226. server = 9-renegotiate-non-aead-to-non-aead-server
  227. client = 9-renegotiate-non-aead-to-non-aead-client
  228. [9-renegotiate-non-aead-to-non-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-non-aead-to-non-aead-client]
  234. CipherString = AES128-SHA
  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-non-aead-to-non-aead-client-extra
  244. [9-renegotiate-non-aead-to-non-aead-client-extra]
  245. RenegotiateCiphers = AES256-SHA
  246. # ===========================================================
  247. [10-renegotiate-aead-to-aead]
  248. ssl_conf = 10-renegotiate-aead-to-aead-ssl
  249. [10-renegotiate-aead-to-aead-ssl]
  250. server = 10-renegotiate-aead-to-aead-server
  251. client = 10-renegotiate-aead-to-aead-client
  252. [10-renegotiate-aead-to-aead-server]
  253. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  254. CipherString = DEFAULT
  255. Options = NoResumptionOnRenegotiation
  256. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  257. [10-renegotiate-aead-to-aead-client]
  258. CipherString = AES128-GCM-SHA256
  259. MaxProtocol = TLSv1.2
  260. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  261. VerifyMode = Peer
  262. [test-10]
  263. ExpectedResult = Success
  264. HandshakeMode = RenegotiateClient
  265. Method = TLS
  266. ResumptionExpected = No
  267. client = 10-renegotiate-aead-to-aead-client-extra
  268. [10-renegotiate-aead-to-aead-client-extra]
  269. RenegotiateCiphers = AES256-GCM-SHA384
  270. # ===========================================================
  271. [11-no-renegotiation-server-by-client]
  272. ssl_conf = 11-no-renegotiation-server-by-client-ssl
  273. [11-no-renegotiation-server-by-client-ssl]
  274. server = 11-no-renegotiation-server-by-client-server
  275. client = 11-no-renegotiation-server-by-client-client
  276. [11-no-renegotiation-server-by-client-server]
  277. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  278. CipherString = DEFAULT
  279. MaxProtocol = TLSv1.2
  280. Options = NoRenegotiation
  281. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  282. [11-no-renegotiation-server-by-client-client]
  283. CipherString = DEFAULT
  284. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  285. VerifyMode = Peer
  286. [test-11]
  287. ExpectedResult = ClientFail
  288. HandshakeMode = RenegotiateClient
  289. Method = TLS
  290. ResumptionExpected = No
  291. # ===========================================================
  292. [12-no-renegotiation-server-by-server]
  293. ssl_conf = 12-no-renegotiation-server-by-server-ssl
  294. [12-no-renegotiation-server-by-server-ssl]
  295. server = 12-no-renegotiation-server-by-server-server
  296. client = 12-no-renegotiation-server-by-server-client
  297. [12-no-renegotiation-server-by-server-server]
  298. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  299. CipherString = DEFAULT
  300. MaxProtocol = TLSv1.2
  301. Options = NoRenegotiation
  302. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  303. [12-no-renegotiation-server-by-server-client]
  304. CipherString = DEFAULT
  305. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  306. VerifyMode = Peer
  307. [test-12]
  308. ExpectedResult = ServerFail
  309. HandshakeMode = RenegotiateServer
  310. Method = TLS
  311. ResumptionExpected = No
  312. # ===========================================================
  313. [13-no-renegotiation-client-by-server]
  314. ssl_conf = 13-no-renegotiation-client-by-server-ssl
  315. [13-no-renegotiation-client-by-server-ssl]
  316. server = 13-no-renegotiation-client-by-server-server
  317. client = 13-no-renegotiation-client-by-server-client
  318. [13-no-renegotiation-client-by-server-server]
  319. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  320. CipherString = DEFAULT
  321. MaxProtocol = TLSv1.2
  322. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  323. [13-no-renegotiation-client-by-server-client]
  324. CipherString = DEFAULT
  325. Options = NoRenegotiation
  326. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  327. VerifyMode = Peer
  328. [test-13]
  329. ExpectedResult = ServerFail
  330. HandshakeMode = RenegotiateServer
  331. Method = TLS
  332. ResumptionExpected = No
  333. # ===========================================================
  334. [14-no-renegotiation-client-by-client]
  335. ssl_conf = 14-no-renegotiation-client-by-client-ssl
  336. [14-no-renegotiation-client-by-client-ssl]
  337. server = 14-no-renegotiation-client-by-client-server
  338. client = 14-no-renegotiation-client-by-client-client
  339. [14-no-renegotiation-client-by-client-server]
  340. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  341. CipherString = DEFAULT
  342. MaxProtocol = TLSv1.2
  343. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  344. [14-no-renegotiation-client-by-client-client]
  345. CipherString = DEFAULT
  346. Options = NoRenegotiation
  347. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  348. VerifyMode = Peer
  349. [test-14]
  350. ExpectedResult = ClientFail
  351. HandshakeMode = RenegotiateClient
  352. Method = TLS
  353. ResumptionExpected = No
  354. # ===========================================================
  355. [15-no-extms-on-renegotiation]
  356. ssl_conf = 15-no-extms-on-renegotiation-ssl
  357. [15-no-extms-on-renegotiation-ssl]
  358. server = 15-no-extms-on-renegotiation-server
  359. client = 15-no-extms-on-renegotiation-client
  360. [15-no-extms-on-renegotiation-server]
  361. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  362. CipherString = DEFAULT
  363. MaxProtocol = TLSv1.2
  364. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  365. [15-no-extms-on-renegotiation-client]
  366. CipherString = DEFAULT
  367. MaxProtocol = TLSv1.2
  368. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  369. VerifyMode = Peer
  370. [test-15]
  371. ExpectedResult = ServerFail
  372. HandshakeMode = RenegotiateClient
  373. Method = TLS
  374. ResumptionExpected = No
  375. client = 15-no-extms-on-renegotiation-client-extra
  376. [15-no-extms-on-renegotiation-client-extra]
  377. RenegotiateNoExtms = Yes
  378. # ===========================================================
  379. [16-allow-client-renegotiation]
  380. ssl_conf = 16-allow-client-renegotiation-ssl
  381. [16-allow-client-renegotiation-ssl]
  382. server = 16-allow-client-renegotiation-server
  383. client = 16-allow-client-renegotiation-client
  384. [16-allow-client-renegotiation-server]
  385. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  386. CipherString = DEFAULT
  387. MaxProtocol = TLSv1.2
  388. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  389. [16-allow-client-renegotiation-client]
  390. CipherString = DEFAULT
  391. MaxProtocol = TLSv1.2
  392. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  393. VerifyMode = Peer
  394. [test-16]
  395. ExpectedResult = Success
  396. HandshakeMode = RenegotiateClient
  397. Method = TLS
  398. ResumptionExpected = Yes
  399. # ===========================================================
  400. [17-no-client-renegotiation]
  401. ssl_conf = 17-no-client-renegotiation-ssl
  402. [17-no-client-renegotiation-ssl]
  403. server = 17-no-client-renegotiation-server
  404. client = 17-no-client-renegotiation-client
  405. [17-no-client-renegotiation-server]
  406. Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
  407. CipherString = DEFAULT
  408. MaxProtocol = TLSv1.2
  409. Options = -ClientRenegotiation
  410. PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
  411. [17-no-client-renegotiation-client]
  412. CipherString = DEFAULT
  413. MaxProtocol = TLSv1.2
  414. VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
  415. VerifyMode = Peer
  416. [test-17]
  417. ExpectedResult = ClientFail
  418. ExpectedServerAlert = NoRenegotiation
  419. HandshakeMode = RenegotiateClient
  420. Method = TLS
  421. ResumptionExpected = No