32-compressed-certificate.cnf.in 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. # -*- mode: perl; -*-
  2. # Copyright 2016-2016 The OpenSSL Project Authors. All Rights Reserved.
  3. #
  4. # Licensed under the OpenSSL license (the "License"). You may not use
  5. # this file except in compliance with the License. You can obtain a copy
  6. # in the file LICENSE in the source distribution or at
  7. # https://www.openssl.org/source/license.html
  8. ## SSL test configurations
  9. package ssltests;
  10. use OpenSSL::Test::Utils;
  11. our @tests = ();
  12. our @tests = (
  13. {
  14. name => "no-compressed-certificates",
  15. server => {
  16. "Options" => "-TxCertificateCompression,-RxCertificateCompression",
  17. },
  18. client => {
  19. "Options" => "-TxCertificateCompression,-RxCertificateCompression",
  20. "MinProtocol" => "TLSv1.3",
  21. },
  22. test => {
  23. "ExpectedResult" => "Success",
  24. "CompressCertificates" => "Yes",
  25. },
  26. },
  27. {
  28. name => "server-compressed-certificates",
  29. server => {
  30. "Options" => "TxCertificateCompression,RxCertificateCompression",
  31. },
  32. client => {
  33. "Options" => "-TxCertificateCompression,-RxCertificateCompression",
  34. "MinProtocol" => "TLSv1.3",
  35. },
  36. test => {
  37. "ExpectedResult" => "Success",
  38. "CompressCertificates" => "Yes",
  39. },
  40. },
  41. {
  42. name => "client-compressed-certificates",
  43. server => {
  44. "Options" => "-TxCertificateCompression,-RxCertificateCompression",
  45. },
  46. client => {
  47. "Options" => "TxCertificateCompression,RxCertificateCompression",
  48. "MinProtocol" => "TLSv1.3",
  49. },
  50. test => {
  51. "ExpectedResult" => "Success",
  52. "CompressCertificates" => "Yes",
  53. },
  54. },
  55. {
  56. name => "both-compressed-certificates",
  57. server => {
  58. "Options" => "TxCertificateCompression,RxCertificateCompression",
  59. },
  60. client => {
  61. "Options" => "TxCertificateCompression,RxCertificateCompression",
  62. "MinProtocol" => "TLSv1.3",
  63. },
  64. test => {
  65. "ExpectedResult" => "Success",
  66. "CompressCertificates" => "Yes",
  67. },
  68. },
  69. {
  70. name => "no-compressed-certificates-mtls",
  71. server => {
  72. "Options" => "-TxCertificateCompression,-RxCertificateCompression",
  73. "VerifyCAFile" => test_pem("root-cert.pem"),
  74. "VerifyMode" => "Request",
  75. },
  76. client => {
  77. "Options" => "-TxCertificateCompression,-RxCertificateCompression",
  78. "MinProtocol" => "TLSv1.3",
  79. "Certificate" => test_pem("ee-client-chain.pem"),
  80. "PrivateKey" => test_pem("ee-key.pem"),
  81. },
  82. test => {
  83. "ExpectedResult" => "Success",
  84. "CompressCertificates" => "Yes",
  85. },
  86. },
  87. {
  88. name => "server-compressed-certificates-mtls",
  89. server => {
  90. "Options" => "TxCertificateCompression,RxCertificateCompression",
  91. "VerifyCAFile" => test_pem("root-cert.pem"),
  92. "VerifyMode" => "Request",
  93. },
  94. client => {
  95. "Options" => "-TxCertificateCompression,-RxCertificateCompression",
  96. "MinProtocol" => "TLSv1.3",
  97. "Certificate" => test_pem("ee-client-chain.pem"),
  98. "PrivateKey" => test_pem("ee-key.pem"),
  99. },
  100. test => {
  101. "ExpectedResult" => "Success",
  102. "CompressCertificates" => "Yes",
  103. },
  104. },
  105. {
  106. name => "client-compressed-certificates-mtls",
  107. server => {
  108. "Options" => "-TxCertificateCompression,-RxCertificateCompression",
  109. "VerifyCAFile" => test_pem("root-cert.pem"),
  110. "VerifyMode" => "Request",
  111. },
  112. client => {
  113. "Options" => "TxCertificateCompression,RxCertificateCompression",
  114. "MinProtocol" => "TLSv1.3",
  115. "Certificate" => test_pem("ee-client-chain.pem"),
  116. "PrivateKey" => test_pem("ee-key.pem"),
  117. },
  118. test => {
  119. "ExpectedResult" => "Success",
  120. "CompressCertificates" => "Yes",
  121. },
  122. },
  123. {
  124. name => "both-compressed-certificates-mtls",
  125. server => {
  126. "Options" => "TxCertificateCompression,RxCertificateCompression",
  127. "VerifyCAFile" => test_pem("root-cert.pem"),
  128. "VerifyMode" => "Request",
  129. },
  130. client => {
  131. "Options" => "TxCertificateCompression,RxCertificateCompression",
  132. "MinProtocol" => "TLSv1.3",
  133. "Certificate" => test_pem("ee-client-chain.pem"),
  134. "PrivateKey" => test_pem("ee-key.pem"),
  135. },
  136. test => {
  137. "ExpectedResult" => "Success",
  138. "CompressCertificates" => "Yes",
  139. },
  140. },
  141. );