23-srp.conf.in 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # -*- mode: perl; -*-
  2. # Copyright 2017 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. use strict;
  9. use warnings;
  10. package ssltests;
  11. # SRP is only supported up to TLSv1.2
  12. our @tests = (
  13. {
  14. name => "srp",
  15. server => {
  16. "CipherString" => "SRP",
  17. "MaxProtocol" => "TLSv1.2",
  18. extra => {
  19. "SRPUser" => "user",
  20. "SRPPassword" => "password",
  21. },
  22. },
  23. client => {
  24. "CipherString" => "SRP",
  25. "MaxProtocol" => "TLSv1.2",
  26. extra => {
  27. "SRPUser" => "user",
  28. "SRPPassword" => "password",
  29. },
  30. },
  31. test => {
  32. "ExpectedResult" => "Success"
  33. },
  34. },
  35. {
  36. name => "srp-bad-password",
  37. server => {
  38. "CipherString" => "SRP",
  39. "MaxProtocol" => "TLSv1.2",
  40. extra => {
  41. "SRPUser" => "user",
  42. "SRPPassword" => "password",
  43. },
  44. },
  45. client => {
  46. "CipherString" => "SRP",
  47. "MaxProtocol" => "TLSv1.2",
  48. extra => {
  49. "SRPUser" => "user",
  50. "SRPPassword" => "passw0rd",
  51. },
  52. },
  53. test => {
  54. # Server fails first with bad client Finished.
  55. "ExpectedResult" => "ServerFail"
  56. },
  57. },
  58. {
  59. name => "srp-auth",
  60. server => {
  61. "CipherString" => "aSRP",
  62. "MaxProtocol" => "TLSv1.2",
  63. extra => {
  64. "SRPUser" => "user",
  65. "SRPPassword" => "password",
  66. },
  67. },
  68. client => {
  69. "CipherString" => "aSRP",
  70. "MaxProtocol" => "TLSv1.2",
  71. extra => {
  72. "SRPUser" => "user",
  73. "SRPPassword" => "password",
  74. },
  75. },
  76. test => {
  77. "ExpectedResult" => "Success"
  78. },
  79. },
  80. {
  81. name => "srp-auth-bad-password",
  82. server => {
  83. "CipherString" => "aSRP",
  84. "MaxProtocol" => "TLSv1.2",
  85. extra => {
  86. "SRPUser" => "user",
  87. "SRPPassword" => "password",
  88. },
  89. },
  90. client => {
  91. "CipherString" => "aSRP",
  92. "MaxProtocol" => "TLSv1.2",
  93. extra => {
  94. "SRPUser" => "user",
  95. "SRPPassword" => "passw0rd",
  96. },
  97. },
  98. test => {
  99. # Server fails first with bad client Finished.
  100. "ExpectedResult" => "ServerFail"
  101. },
  102. },
  103. );